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

Clicking Save Changes results in 'Error: undefined' popup #135

Open powerusewiki opened 5 years ago

powerusewiki commented 5 years ago

Actual behavior

Expected behavior

Save page when I click save changes.

Steps to reproduce the behavior

I do not know how to reproduce this. But it does happen often (every day).

Firefox developer console output

Usage of window.controllers/Controllers is not supported anylonger. Do not use this for UA detection. vendor.js line 1 > Function:3:17840 The connection with ws://[my VPS IP adress]:2086/socket.io/?EIO=3&transport=websocket&sid=__i8W58O-j4TVoMhAABI was interrupted during page load. vendor.js:1:472056

How I run wiki.js

Probably it has something to do with the nginx and virtualhost config settings

I followed tutorials to get the wiki working, but I do not know the ratio behind every command I copied into my config files.

Virtual host settings in nginx config (the one in /sites-available, which is symlinked to /sites-enable):

server { root /var/www/html; listen 80; listen [::]:80; server_name wikijs; location / { proxy_pass http://localhost:2086; try_files $uri $uri/ =404; } add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload"; add_header X-Frame-Options SAMEORIGIN; add_header X-Content-Type-Options nosniff; }

Main nginx config file settings -> /etc/nginx/nginx.conf:

user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf;

events { worker_connections 768;

multi_accept on;

}

http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    gzip on;
    gzip_disable "msie6";

    include /etc/nginx/sites-enabled/*;

}

Nginx error log -> nano /var/log/nginx/error.log

Nginx access log -> nano /var/log/nginx/access.log

image

12:55: ran command pm2 show wiki

image

Approx 13.00: Logs wiki –-lines output -> pm2 logs wiki --lines 100 [part of it]

[TAILING] Tailing last 100 lines for [wiki] process (change the value with --lin es option) /srv/wikijs/logs/wiki-error-0.log last 100 lines:

0|wiki | (node:12108) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated 0|wiki | (node:14352) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated

/srv/wikijs/logs/wiki-output-0.log last X lines: 0|wiki | 2018-11-18T11:39:29.518Z - info: [SERVER] Starting HTTP/WS server on port 2086... 0|wiki | 2018-11-18T11:39:29.559Z - info: [SERVER] HTTP/WS server started successfully! [RUNNING] 0|wiki | 2018-11-18T11:39:29.700Z - info: [SERVER] Search index flushed and ready. 0|wiki | 2018-11-18T11:39:29.848Z - info: [SERVER] Git repository is OK. 0|wiki | 2018-11-18T11:39:29.975Z - info: [AGENT] Background Agent is initializing... 0|wiki | 2018-11-18T11:39:31.485Z - info: [AGENT] Checking Git repository... 0|wiki | 2018-11-18T11:39:32.365Z - info: [AGENT] Running all jobs... 0|wiki | 2018-11-18T11:39:32.366Z - info: [AGENT] Performing pull from remote Git repository... 0|wiki | 2018-11-18T11:39:32.415Z - info: [AGENT] Git repository is OK. 0|wiki | 2018-11-18T11:39:33.761Z - info: [AGENT] Git Pull completed. 0|wiki | 2018-11-18T11:39:33.768Z - info: [AGENT] Git Push skipped. Repository is already in sync.

13.20: Logs wiki –-lines output (no change wrt when I ran the command at 13.00):

image

NGPixel commented 5 years ago

How much RAM do you have?

powerusewiki commented 5 years ago

Excuse me for my late reaction, I am currently working/studying a lot.

This cloud VPS from OVH has 2GB RAM.