Mattermost Peer-to-Peer Forum

[SOLVED] 404 page not found


#1

Summary

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

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 -X ‘github.com/mattermost/platform/model.BuildDate=Tue, Jun 27, 2017 5:19:46 PM’ -X github.com/mattermost/platform/model.BuildHash=28bf900205c71259369f9a05b349786a39084f5d -X github.com/mattermost/platform/model.BuildHashEnterprise=none -X 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.


#2

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


#3

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!


#4

Thanks @santos22,

Pleased you’ve resolved your issue!


#5

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


#6

Hi @mkvaghani,

Can you help review this page and send us the relevant additional details on your environment, logs, config settings, etc., as these will help us diagnose the issue?


#7

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/)

Screenshot here

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

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
It shows
{"AndroidLatestVersion":"","AndroidMinVersion":"","DesktopLatestVersion":"","DesktopMinVersion":"","IosLatestVersion":"","IosMinVersion":"","status":"OK"}

But when 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."}

#8

Hi @mkvaghani,

Wondering if this documentation will help: 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.


#9

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/
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 a404 Not Foundstatus, 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)

#10

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.