# \[SOLVED\] 404 page not found

**URL:** <https://forum.mattermost.com/t/solved-404-page-not-found/3451>\
**Category:** Troubleshooting\
**Created:** [June 27, 2017, 5:36pm UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451 "2017-06-27T17:36:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![santos22](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@santos22](https://forum.mattermost.com/u/santos22)\
**Post date:** [June 27, 2017, 5:36pm UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/1 "2017-06-27T17:36:52Z")

</div>

#### Summary

[http://localhost:8065](http://localhost:8065) shows “ **404 page not found** ”

#### Steps to reproduce

I am using Windows 10 Home edition and using the Docker Quickstart Terminal and have set **C:\Program Files (x86)\GnuWin32\bin** as a System Variable under PATH.  
`cd` into `src/github.com/mattermost/platform` and run the command: `make run`

#### Expected behavior

Mattermost should be available at [http://localhost:8065](http://localhost:8065)

#### Observed behavior

_ **Here is the error message I am getting - I believe the “404 page not found” is because of the syntax error in bold:** _  
Santos@DESKTOP-6BNQR0D MINGW64 ~/workspace/src/github.com/mattermost/platform  
$ make run  
Starting docker containers  
Running mattermost for development  
mkdir -p ./webapp/dist/files  
go run -ldflags “-X [github.com/mattermost/platform/model.BuildNumber=dev](http://github.com/mattermost/platform/model.BuildNumber=dev) -X ‘[github.com/mattermost/platform/model.BuildDate=Tue](http://github.com/mattermost/platform/model.BuildDate=Tue), Jun 27, 2017 5:19:46 PM’ -X [github.com/mattermost/platform/model.BuildHash=28bf900205c71259369f9a05b349786a39084f5d](http://github.com/mattermost/platform/model.BuildHash=28bf900205c71259369f9a05b349786a39084f5d) -X [github.com/mattermost/platform/model.BuildHashEnterprise=none](http://github.com/mattermost/platform/model.BuildHashEnterprise=none) -X [github.com/mattermost/platform/model.BuildEnterpriseReady=false](http://github.com/mattermost/platform/model.BuildEnterpriseReady=false)” ./cmd/platform/\*.go --disableconfigwatch &  
**Running mattermost client for development**  
**cd ./webapp && C:/Program Files (x86)/GnuWin32/bin/make run**  
**/usr/bin/sh: -c: line 0: syntax error near unexpected token `('** **/usr/bin/sh: -c: line 0:`cd ./webapp && C:/Program Files (x86)/GnuWin32/bin/make run’**  
**make: \*\*\* [run-client] Error 1**  
…  
…  
…  
[2017/06/27 12:20:01 CDT] [INFO] Server is listening on :8065  
[2017/06/27 12:20:01 CDT] [INFO] Starting jobs  
[2017/06/27 12:20:01 CDT] [DEBG] Cleaning up token store.

---

<div class="post-metadata">

**Author:** ![JeffSchering](https://avatars.discourse-cdn.com/v4/letter/j/a9adbd/32.png) [@JeffSchering](https://forum.mattermost.com/u/JeffSchering)\
**Post date:** [June 27, 2017, 6:03pm UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/2 "2017-06-27T18:03:38Z")

</div>

Maybe the spaces in the path are causing the problem. `C:/Program Files (x86)/...`

---

<div class="post-metadata">

**Author:** ![santos22](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@santos22](https://forum.mattermost.com/u/santos22)\
**Post date:** [June 27, 2017, 6:31pm UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/3 "2017-06-27T18:31:59Z")

</div>

Hi Jeff,

I think I fixed it by changing **C:\Program Files (x86)\GnuWin32\bin** to **C:\Progra~2\GnuWin32\bin** , where Progra~2 = ‘Program Files(x86)’ for Windows users on 64-bit systems

Cheers!

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [June 30, 2017, 8:07am UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/4 "2017-06-30T08:07:29Z")

</div>

Thanks @santos22,

Pleased you’ve resolved your issue!

---

<div class="post-metadata">

**Author:** ![mkvaghani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/mkvaghani/32/2544_2.png) [@mkvaghani](https://forum.mattermost.com/u/mkvaghani)\
**Post date:** [November 20, 2018, 5:52am UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/5 "2018-11-20T05:52:33Z")

</div>

404 page not found  
Using Windows 10 and installed cygwin and Path is installed correctly.  
Problem is still there

![Untitled](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex020/uploads/mattermost/original/2X/3/37764c9ba79d8ec140a3df5f99acfe5d563287eb.png)

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [November 20, 2018, 1:07pm UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/6 "2018-11-20T13:07:36Z")

</div>

Hi @mkvaghani,

Can you help review [this page](https://docs.mattermost.com/process/support.html#general-questions-for-any-issues) and send us the relevant additional details on your environment, logs, config settings, etc., as these will help us diagnose the issue?

---

<div class="post-metadata">

**Author:** ![mkvaghani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/mkvaghani/32/2544_2.png) [@mkvaghani](https://forum.mattermost.com/u/mkvaghani)\
**Post date:** [November 21, 2018, 8:25am UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/7 "2018-11-21T08:25:50Z")

</div>

Thanks @amy.blais

### What OS and version is the Mattermost server installed?

Windows 10 , Bootcamp on (Mac Pro Touchbar Model July 2018)

### What is your Mattermost server version?

Mattremost Server [v5.5.0] ([https://github.com/mattermost/mattermost-server/](https://github.com/mattermost/mattermost-server/))

Screenshot here

> **[Screenshot](https://prnt.sc/ll0zw0)**
>
> Captured with Lightshot

### Are you experiencing the issues with the browser webapp, if so which one?

Chrome , mattermost-webapp test fail , (Test Suites: 267 failed, 267 total)

Screenshot here

> **[Screenshot](https://prnt.sc/ll10fm)**
>
> Captured with Lightshot

### Can you send a snippet of the Mattermost server logs around the time of the incident?

Attached Log of CLIENT WEB APP

```
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'test' ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose run-script ['pretest', 'test', 'posttest']
5 info lifecycle mattermost-webapp@0.0.1~pretest: mattermost-webapp@0.0.1
6 info lifecycle mattermost-webapp@0.0.1~test: mattermost-webapp@0.0.1
7 verbose lifecycle mattermost-webapp@0.0.1~test: unsafe-perm in lifecycle true
8 verbose lifecycle mattermost-webapp@0.0.1~test: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;c:\Go\src\github.com\mattermost\mattermost-webapp\node_modules\.bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\Mahesh Vaghani\AppData\Local\Microsoft\WindowsApps;C:\Users\Mahesh Vaghani\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Yarn\bin;C:\Go\bin;C:\Program Files\nodejs;C:\Users\Mahesh Vaghani\AppData\Local\Microsoft\WindowsApps;C:\Users\Mahesh Vaghani\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Mahesh Vaghani\AppData\Local\.meteor;C:\Users\Mahesh Vaghani\AppData\Local\Yarn\bin;C:\Go\bin;C:\Users\Mahesh Vaghani\.babun;C:\cygwin64\bin;C:\Users\Mahesh Vaghani\AppData\Roaming\npm
9 verbose lifecycle mattermost-webapp@0.0.1~test: CWD: c:\Go\src\github.com\mattermost\mattermost-webapp
10 silly lifecycle mattermost-webapp@0.0.1~test: Args: ['/d /s /c', 'jest --forceExit --detectOpenHandles']
11 silly lifecycle mattermost-webapp@0.0.1~test: Returned: code: 1 signal: null
12 info lifecycle mattermost-webapp@0.0.1~test: Failed to exec test script
13 verbose stack Error: mattermost-webapp@0.0.1 test: `jest --forceExit --detectOpenHandles`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:915:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid mattermost-webapp@0.0.1
15 verbose cwd c:\Go\src\github.com\mattermost\mattermost-webapp
16 verbose Windows_NT 10.0.17134
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test"
18 verbose node v8.12.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error mattermost-webapp@0.0.1 test: `jest --forceExit --detectOpenHandles`
22 error Exit status 1
23 error Failed at the mattermost-webapp@0.0.1 test script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [1, true]

```

### Are you running Mattermost in a container and/or using container orchestration?

Docker Desktop Community  
Version 2.0.0.0-win78 (28905)  
Channel: stable  
Build: c404a62  
Engine : 18.09.0

NOTE : When I visit,  
[http://localhost:8065/api/v4/system/ping](http://localhost:8065/api/v4/system/ping)  
It shows  
`{"AndroidLatestVersion":"","AndroidMinVersion":"","DesktopLatestVersion":"","DesktopMinVersion":"","IosLatestVersion":"","IosMinVersion":"","status":"OK"}`

But when [http://localhost:8065](http://localhost:8065)  
it says  
`404 page not found`

Here mattermost.log

```
{"level":"info","ts":1542791001.8683445,"caller":"utils/i18n.go:78","msg":"Loaded system translations for 'en' from 'c:\\Go\\src\\github.com\\mattermost\\mattermost-server\\i18n\\en.json'"}

{"level":"info","ts":1542791001.868845,"caller":"app/app.go:147","msg":"Server is initializing..."}

{"level":"info","ts":1542791001.8753455,"caller":"sqlstore/supplier.go:207","msg":"Pinging SQL master database"}

{"level":"info","ts":1542791001.9544451,"caller":"commands/server.go:82","msg":"Current version is 5.5.0 (dev/Wed Nov 21 09:02:49 UTC 2018/a78913178c68220cb9bd105cab5d7fad4d697161/none)"}

{"level":"info","ts":1542791001.9544451,"caller":"commands/server.go:83","msg":"Enterprise Enabled: false"}

{"level":"info","ts":1542791001.9549434,"caller":"commands/server.go:84","msg":"Current working directory is c:\\Go\\src\\github.com\\mattermost\\mattermost-server"}

{"level":"info","ts":1542791001.9564466,"caller":"commands/server.go:85","msg":"Loaded config file from c:\\Go\\src\\github.com\\mattermost\\mattermost-server\\config\\config.json"}

{"level":"info","ts":1542791001.9574468,"caller":"filesstore/localstore.go:33","msg":"Able to write files to local storage."}

{"level":"info","ts":1542791001.9584432,"caller":"app/plugin.go:130","msg":"Starting up plugins"}

{"level":"error","ts":1542791001.960442,"caller":"app/plugin.go:138","msg":"Failed to start up plugins","error":"mkdir ./client/plugins: The system cannot find the path specified."}

{"level":"info","ts":1542791001.960442,"caller":"app/server.go:168","msg":"Starting Server..."}

{"level":"info","ts":1542791001.960942,"caller":"app/server.go:228","msg":"Server is listening on [::]:8065"}

{"level":"info","ts":1542791001.9649415,"caller":"app/web_hub.go:75","msg":"Starting 24 websocket hubs"}

{"level":"info","ts":1542791002.0702229,"caller":"sqlstore/post_store.go:1297","msg":"Post.Message supports at most 16383 characters (65535 bytes)"}

{"level":"info","ts":1542791002.0707226,"caller":"app/plugin.go:130","msg":"Starting up plugins"}

{"level":"error","ts":1542791002.0797253,"caller":"app/plugin.go:138","msg":"Failed to start up plugins","error":"mkdir ./client/plugins: The system cannot find the path specified."}

{"level":"info","ts":1542791002.094721,"caller":"app/plugin.go:130","msg":"Starting up plugins"}

{"level":"error","ts":1542791002.094721,"caller":"app/plugin.go:138","msg":"Failed to start up plugins","error":"mkdir ./client/plugins: The system cannot find the path specified."}

{"level":"info","ts":1542791002.103721,"caller":"app/plugin.go:130","msg":"Starting up plugins"}

{"level":"error","ts":1542791002.103721,"caller":"app/plugin.go:138","msg":"Failed to start up plugins","error":"mkdir ./client/plugins: The system cannot find the path specified."}

{"level":"info","ts":1542791002.1047232,"caller":"jobs/workers.go:68","msg":"Starting workers"}

{"level":"info","ts":1542791002.105219,"caller":"jobs/schedulers.go:72","msg":"Starting schedulers."}
```

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [November 21, 2018, 3:55pm UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/8 "2018-11-21T15:55:05Z")

</div>

Hi @mkvaghani,

Wondering if this documentation will help: [https://developers.mattermost.com/contribute/server/developer-setup/](https://developers.mattermost.com/contribute/server/developer-setup/)? If not, please let me know and I’ll ask our devs to take a look at the errors you’re getting.

---

<div class="post-metadata">

**Author:** ![mkvaghani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/mkvaghani/32/2544_2.png) [@mkvaghani](https://forum.mattermost.com/u/mkvaghani)\
**Post date:** [November 22, 2018, 6:57am UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/9 "2018-11-22T06:57:17Z")

</div>

Thanks @amy.blais .  
Yes, I have read the documentation many many times, and install mattermost-server on two different computer and two different OS many many times.

1. Windows 10 with Docker on my bootcamp . NOT SUCCESS
2. Ubunbut 18.04 X 64 . With Docker CE Install Docker version 18.09.0 . NOT SUCCESS

Mattermost keeps `404 page not found` on [http://localhost:8065/](http://localhost:8065/)  
Log says `"Failed to start up plugins","error":"mkdir ./client/plugins: no such file or directory"`

Document Says

`The server should return a JSON object containing`“status”:"OK"`. **Notice:** The server root will return a`404 Not Found`status, since the web app is not configured as part of the server setup. Please refer to the [Web App Developer Setup](https://developers.mattermost.com/contribute/webapp/developer-setup/) and [Mobile App Developer Setup](https://developers.mattermost.com/contribute/mobile/developer-setup/) for the setup steps.`

I also tried to install Mattermost WEBAPP  
Does not work at all.

Here’s Log

```
0 info it worked if it ends with ok
1 verbose cli ['/usr/bin/node', '/usr/bin/npm', 'run', 'test']
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose run-script ['pretest', 'test', 'posttest']
5 info lifecycle mattermost-webapp@0.0.1~pretest: mattermost-webapp@0.0.1
6 info lifecycle mattermost-webapp@0.0.1~test: mattermost-webapp@0.0.1
7 verbose lifecycle mattermost-webapp@0.0.1~test: unsafe-perm in lifecycle true
8 verbose lifecycle mattermost-webapp@0.0.1~test: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/smart0/go/src/github.com/mattermost/mattermost-webapp/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/smart0/go/bin:/usr/local/go/bin
9 verbose lifecycle mattermost-webapp@0.0.1~test: CWD: /home/smart0/go/src/github.com/mattermost/mattermost-webapp
10 silly lifecycle mattermost-webapp@0.0.1~test: Args: ['-c', 'jest --forceExit --detectOpenHandles']
11 silly lifecycle mattermost-webapp@0.0.1~test: Returned: code: 1 signal: null
12 info lifecycle mattermost-webapp@0.0.1~test: Failed to exec test script
13 verbose stack Error: mattermost-webapp@0.0.1 test: `jest --forceExit --detectOpenHandles`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:915:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid mattermost-webapp@0.0.1
15 verbose cwd /home/smart0/go/src/github.com/mattermost/mattermost-webapp
16 verbose Linux 4.15.0-39-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "test"
18 verbose node v8.12.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error mattermost-webapp@0.0.1 test: `jest --forceExit --detectOpenHandles`
22 error Exit status 1
23 error Failed at the mattermost-webapp@0.0.1 test script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [1, true]

```

Another Log when I do “npm install”

```
Unhandled rejection Error: Command failed: /usr/bin/git clone --depth=1 -q -b mm9547 git://github.com/mattermost/marked.git /home/smart0/.npm/_cacache/tmp/git-clone-244245f4
/home/smart0/.npm/_cacache/tmp/git-clone-244245f4/.git: Permission denied

    at ChildProcess.exithandler (child_process.js:276:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Socket.stream.socket.on (internal/child_process.js:336:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:561:12)

Unhandled rejection Error: Command failed: /usr/bin/git clone --depth=1 -q -b master https://github.com/enahum/redux-offline.git /home/smart0/.npm/_cacache/tmp/git-clone-dc6415fb-d8818703 (107ms)
/home/smart0/.npm/_cacache/tmp/git-clone-dc6415fb/.git: Permission denied

    at ChildProcess.exithandler (child_process.js:276:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Socket.stream.socket.on (internal/child_process.js:336:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:561:12)
```

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [November 30, 2018, 8:20pm UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/10 "2018-11-30T20:20:36Z")

</div>

Hi @mkvaghani,

I asked our team about this and one of our community members was wondering about which command you were using for the first output? He also noticed that you’re using `node v8.12.0` - would you be able to try with node 10? They also feel that it should be save to remove `.npm/_cacache` to fix the error you’re seeing.

---

<div class="post-metadata">

**Author:** ![sushant](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@sushant](https://forum.mattermost.com/u/sushant)\
**Post date:** [December 20, 2018, 12:02am UTC](https://forum.mattermost.com/t/solved-404-page-not-found/3451/11 "2018-12-20T00:02:00Z")

</div>

{“level”:“debug”,“ts”:1545153363.2955465,“caller”:“web/handlers.go:50”,“msg”:“GET - /”}

[http://localhost:8065/](http://localhost:8065/)  
404 page not found
