requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
100 stars 75 forks source link

Document Uploads Failing plus 1 Instance Errors on Startup #195

Open vicchi opened 5 years ago

vicchi commented 5 years ago

Actual behavior

Documents/images upload successfully and exist in ./repo/uploads but the Unable to fetch updated listing error (mentioned in #10 and #66 amongst others) occurs and the uploaded file never appears in the Insert File screen.

This is a recent occurrence, our wiki install has been working flawlessly until last week, with no changes to OS, packages or configuration. mathjax is also set to false in config.yml

Expected behavior

Document upload successfully and are available to insert into a page from the Insert File screen.

Steps to reproduce the behavior

Attempt to upload document!

Furthermore, doing a pm2 status shows one wiki instance errors a few seconds after startup via node wiki.js start (or npm run start). No output is written to ./logs/wiki-error-0.log but monitoring startup via pm2 logs wiki --lines 100 shows the following ...

0|wiki  | 2019-04-15T07:21:40.565Z - info: [SERVER] Wiki.js is initializing...
1|wiki  | Usage: node node_modules/pm2/lib/ProcessContainerFork.js <cmd> [args]
1|wiki  | Commands:
1|wiki  |   start             Start Wiki.js process
1|wiki  |   stop              Stop Wiki.js process
1|wiki  |   restart           Restart Wiki.js process
1|wiki  |   configure [port]  Configure Wiki.js using the web-based setup wizard
1|wiki  | Options:
1|wiki  |   --help     Show help                                                 [boolean]
1|wiki  |   --version  Show version number                                       [boolean]
1|wiki  | Read the docs at https://wiki.requarks.io
1|wiki  | You must provide one of the accepted commands above.
0|wiki  | 2019-04-15T07:21:40.820Z - info: [SERVER] Checking data directories...
0|wiki  | 2019-04-15T07:21:40.832Z - info: [SERVER] Data and Repository directories are OK.
1|wiki  | Usage: node node_modules/pm2/lib/ProcessContainerFork.js <cmd> [args]
1|wiki  | Commands:
1|wiki  |   start             Start Wiki.js process
1|wiki  |   stop              Stop Wiki.js process
1|wiki  |   restart           Restart Wiki.js process
1|wiki  |   configure [port]  Configure Wiki.js using the web-based setup wizard
1|wiki  | Options:
1|wiki  |   --help     Show help                                                 [boolean]
1|wiki  |   --version  Show version number                                       [boolean]
1|wiki  | Read the docs at https://wiki.requarks.io
1|wiki  | You must provide one of the accepted commands above.
0|wiki  | 2019-04-15T07:21:41.407Z - info: [SERVER] Checking Git repository...
1|wiki  | Usage: node node_modules/pm2/lib/ProcessContainerFork.js <cmd> [args]
1|wiki  | Commands:
1|wiki  |   start             Start Wiki.js process
1|wiki  |   stop              Stop Wiki.js process
1|wiki  |   restart           Restart Wiki.js process
1|wiki  |   configure [port]  Configure Wiki.js using the web-based setup wizard
1|wiki  | Options:
1|wiki  |   --help     Show help                                                 [boolean]
1|wiki  |   --version  Show version number                                       [boolean]
1|wiki  | Read the docs at https://wiki.requarks.io
1|wiki  | You must provide one of the accepted commands above.
1|wiki  | Usage: node node_modules/pm2/lib/ProcessContainerFork.js <cmd> [args]
1|wiki  | Commands:
1|wiki  |   start             Start Wiki.js process
1|wiki  |   stop              Stop Wiki.js process
1|wiki  |   restart           Restart Wiki.js process
1|wiki  |   configure [port]  Configure Wiki.js using the web-based setup wizard
1|wiki  | Options:
1|wiki  |   --help     Show help                                                 [boolean]
1|wiki  |   --version  Show version number                                       [boolean]
1|wiki  | Read the docs at https://wiki.requarks.io
1|wiki  | You must provide one of the accepted commands above.
1|wiki  | Usage: node node_modules/pm2/lib/ProcessContainerFork.js <cmd> [args]
1|wiki  | Commands:
1|wiki  |   start             Start Wiki.js process
1|wiki  |   stop              Stop Wiki.js process
1|wiki  |   restart           Restart Wiki.js process
1|wiki  |   configure [port]  Configure Wiki.js using the web-based setup wizard
1|wiki  | Options:
1|wiki  |   --help     Show help                                                 [boolean]
1|wiki  |   --version  Show version number                                       [boolean]
1|wiki  | Read the docs at https://wiki.requarks.io
1|wiki  | You must provide one of the accepted commands above.
0|wiki  | 2019-04-15T07:21:43.856Z - info: [SERVER] Starting HTTP/WS server on port 3000...
0|wiki  | 2019-04-15T07:21:43.896Z - info: [SERVER] HTTP/WS server started successfully! [RUNNING]
0|wiki  | 2019-04-15T07:21:43.950Z - info: [SERVER] Search index flushed and ready.
0|wiki  | 2019-04-15T07:21:44.035Z - info: [SERVER] Git repository is OK.
0|wiki  | 2019-04-15T07:21:44.075Z - info: [AGENT] Background Agent is initializing...
0|wiki  | 2019-04-15T07:21:44.726Z - info: [AGENT] Checking Git repository...
0|wiki  | 2019-04-15T07:21:45.246Z - info: [AGENT] Running all jobs...
0|wiki  | 2019-04-15T07:21:45.246Z - info: [AGENT] Performing pull from remote Git repository...
0|wiki  | 2019-04-15T07:21:45.280Z - info: [AGENT] Git repository is OK.
0|wiki  | 2019-04-15T07:21:45.502Z - info: [AGENT] Git Pull completed.
0|wiki  | 2019-04-15T07:21:45.509Z - info: [AGENT] Git Push skipped. Repository is already in sync.
0|wiki  | 2019-04-15T07:21:47.845Z - info: [AGENT] All jobs completed successfully! Going to sleep for now.
0|wiki  | 2019-04-15T07:25:00.670Z - info: [AGENT] Running all jobs...
0|wiki  | 2019-04-15T07:25:00.670Z - info: [AGENT] Performing pull from remote Git repository...
0|wiki  | 2019-04-15T07:25:00.964Z - info: [AGENT] Git Pull completed.
0|wiki  | 2019-04-15T07:25:00.979Z - info: [AGENT] Performing push to remote Git repository...
0|wiki  | 2019-04-15T07:25:03.752Z - info: [AGENT] Git Push completed.
0|wiki  | 2019-04-15T07:25:03.768Z - info: [AGENT] All jobs completed successfully! Going to sleep for now.
0|wiki  | 2019-04-15T07:30:00.671Z - info: [AGENT] Running all jobs...
0|wiki  | 2019-04-15T07:30:00.671Z - info: [AGENT] Performing pull from remote Git repository...
0|wiki  | 2019-04-15T07:30:00.914Z - info: [AGENT] Git Pull completed.
0|wiki  | 2019-04-15T07:30:00.927Z - info: [AGENT] Git Push skipped. Repository is already in sync.
0|wiki  | 2019-04-15T07:30:00.947Z - info: [AGENT] All jobs completed successfully! Going to sleep for now.
Sv3n commented 5 years ago

I have the same issue. Probably also the same / related: #47 #169 #98