{"action":"created","issue":{"url":"https://api.github.com/repos/Requarks/wiki/issues/702","repository_url":"https://api.github.com/repos/Requarks/wiki","labels_url":"https://api.github.com/repos/Requarks/wiki/issues/702/labels{/name}","comments_url":"https://api.github.com/repos/Requarks/wiki/issues/702/comments","events_url":"https://api.github.com/repos/Requarks/wiki/issues/702/events","html_url":"https://github.com/Requarks/wiki/issues/702","id":381956396,"node_id":"MDU6SXNzdWUzODE5NTYzOTY=","number":702,"title":"Clicking Save Changes results in 'Error: undefined' popup","user":{"login":"powerusewiki","id":45083892,"node_id":"MDQ6VXNlcjQ1MDgzODky","avatar_url":"https://avatars1.githubusercontent.com/u/45083892?v=4","gravatar_id":"","url":"https://api.github.com/users/powerusewiki","html_url":"https://github.com/powerusewiki","followers_url":"https://api.github.com/users/powerusewiki/followers","following_url":"https://api.github.com/users/powerusewiki/following{/other_user}","gists_url":"https://api.github.com/users/powerusewiki/gists{/gist_id}","starred_url":"https://api.github.com/users/powerusewiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powerusewiki/subscriptions","organizations_url":"https://api.github.com/users/powerusewiki/orgs","repos_url":"https://api.github.com/users/powerusewiki/repos","events_url":"https://api.github.com/users/powerusewiki/events{/privacy}","received_events_url":"https://api.github.com/users/powerusewiki/received_events","type":"User","site_admin":false},"labels":[{"id":986396677,"node_id":"MDU6TGFiZWw5ODYzOTY2Nzc=","url":"https://api.github.com/repos/Requarks/wiki/labels/1.x","name":"1.x","color":"bfdadc","default":false},{"id":425873368,"node_id":"MDU6TGFiZWw0MjU4NzMzNjg=","url":"https://api.github.com/repos/Requarks/wiki/labels/help","name":"help","color":"cc317c","default":false},{"id":553211011,"node_id":"MDU6TGFiZWw1NTMyMTEwMTE=","url":"https://api.github.com/repos/Requarks/wiki/labels/triaged","name":"triaged","color":"BF360C","default":false}],"state":"open","locked":false,"assignee":{"login":"NGPixel","id":15522395,"node_id":"MDQ6VXNlcjE1NTIyMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/15522395?v=4","gravatar_id":"","url":"https://api.github.com/users/NGPixel","html_url":"https://github.com/NGPixel","followers_url":"https://api.github.com/users/NGPixel/followers","following_url":"https://api.github.com/users/NGPixel/following{/other_user}","gists_url":"https://api.github.com/users/NGPixel/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPixel/subscriptions","organizations_url":"https://api.github.com/users/NGPixel/orgs","repos_url":"https://api.github.com/users/NGPixel/repos","events_url":"https://api.github.com/users/NGPixel/events{/privacy}","received_events_url":"https://api.github.com/users/NGPixel/received_events","type":"User","site_admin":false},"assignees":[{"login":"NGPixel","id":15522395,"node_id":"MDQ6VXNlcjE1NTIyMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/15522395?v=4","gravatar_id":"","url":"https://api.github.com/users/NGPixel","html_url":"https://github.com/NGPixel","followers_url":"https://api.github.com/users/NGPixel/followers","following_url":"https://api.github.com/users/NGPixel/following{/other_user}","gists_url":"https://api.github.com/users/NGPixel/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPixel/subscriptions","organizations_url":"https://api.github.com/users/NGPixel/orgs","repos_url":"https://api.github.com/users/NGPixel/repos","events_url":"https://api.github.com/users/NGPixel/events{/privacy}","received_events_url":"https://api.github.com/users/NGPixel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-11-18T12:40:03Z","updated_at":"2018-11-21T05:17:03Z","closed_at":null,"author_association":"NONE","body":"### Actual behavior\r\n- Clicking Save Changes results in 'Error: undefined' popup and hang for between 30 seconds and a minute.\r\n- Next, the wiki will be down completely for a few minutes. Firefox will show the standard error: we cannot find this page.\r\n- After a couple of minutes (approx. 10 minutes), the login screen will appear [we are back online] and I have to login again. Time is approx. 12.40.\r\n- I have four pages on my Wiki. But the [restarted?] wiki will now only show two pages: Home and Hosting.\r\n- 12:58: In ‘All Pages’ view, the wiki will still only show pages Home and Hosting. I can however access my page ‘Study’ directly via http://[my IP address]:2086/study. \r\n- 13:21: In ‘All Pages’ view, the wiki will now show 3 pages: Home, Hosting and Study. The fourth and last page still does not show up in ‘All pages’ view.\r\n- 13:25: I restart nginx and wiki.js.\r\n\r\n### Expected behavior\r\nSave page when I click save changes. \r\n\r\n### Steps to reproduce the behavior\r\nI do not know how to reproduce this. But it does happen often (every day).\r\n\r\n### Firefox developer console output\r\nUsage of window.controllers/Controllers is not supported anylonger. Do not use this for UA detection. vendor.js line 1 > Function:3:17840 \r\nThe 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 \r\n\r\n### How I run wiki.js\r\n- I run wiki.js behind nginx on a VPS, on Ubuntu 18.04. I access wiki.js from [my VPS IP address]:2086. Port 2086 is open in ufw.\r\n- I use a bitbucket free private repository and use the master branch. I use login with username and password instead of private key. \r\n- wikijs v1.0.102\r\n- git v2.11.0\r\n- nginx v1.10.3\r\n- Nodejs v10.13.0\r\n\r\n### Probably it has something to do with the nginx and virtualhost config settings\r\nI followed tutorials to get the wiki working, but I do not know the ratio behind every command I copied into my config files.\r\n\r\n### Virtual host settings in nginx config (the one in /sites-available, which is symlinked to /sites-enable):\r\nserver { \r\n       root /var/www/html;\r\n        listen 80;\r\n        listen [::]:80;\r\n       server_name wikijs;\r\n        location / {\r\n                proxy_pass http://localhost:2086;\r\n                try_files $uri $uri/ =404;\r\n        }\r\n       add_header Strict-Transport-Security \"max-age=15768000; includeSubdomains; preload\";\r\n        add_header X-Frame-Options SAMEORIGIN;\r\n        add_header X-Content-Type-Options nosniff;\r\n}\r\n\r\n### Main nginx config file settings -> /etc/nginx/nginx.conf:\r\nuser www-data;\r\nworker_processes auto;\r\npid /run/nginx.pid;\r\ninclude /etc/nginx/modules-enabled/*.conf;\r\n\r\nevents {\r\n        worker_connections 768;\r\n        # multi_accept on;\r\n}\r\n\r\nhttp {\r\n        sendfile on;\r\n        tcp_nopush on;\r\n        tcp_nodelay on;\r\n        keepalive_timeout 65;\r\n        types_hash_max_size 2048;\r\n\r\n        include /etc/nginx/mime.types;\r\n        default_type application/octet-stream;\r\n\r\n        access_log /var/log/nginx/access.log;\r\n        error_log /var/log/nginx/error.log;\r\n\r\n        gzip on;\r\n        gzip_disable \"msie6\";\r\n\r\n        include /etc/nginx/sites-enabled/*;\r\n}\r\n\r\n###  Nginx error log -> nano /var/log/nginx/error.log\r\n- Empty\r\n\r\n###  Nginx access log -> nano /var/log/nginx/access.log\r\n![image](https://i.imgur.com/Rb7FEhJ.png)\r\n\r\n### 12:55: ran command pm2 show wiki \r\n![image](https://i.imgur.com/UzzIzOe.png)\r\n\r\n### Approx 13.00: Logs wiki –-lines output -> pm2 logs wiki --lines 100 [part of it]\r\n[TAILING] Tailing last 100 lines for [wiki] process (change the value with --lin                                                                                                                                                             es option)\r\n/srv/wikijs/logs/wiki-error-0.log last 100 lines:\r\n\r\n0|wiki     | (node:12108) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated\r\n0|wiki     | (node:14352) [DEP0079] DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated\r\n\r\n/srv/wikijs/logs/wiki-output-0.log last X lines:\r\n0|wiki     | 2018-11-18T11:39:29.518Z - info: [SERVER] Starting HTTP/WS server on port 2086...\r\n0|wiki     | 2018-11-18T11:39:29.559Z - info: [SERVER] HTTP/WS server started successfully! [RUNNING]\r\n0|wiki     | 2018-11-18T11:39:29.700Z - info: [SERVER] Search index flushed and ready.\r\n0|wiki     | 2018-11-18T11:39:29.848Z - info: [SERVER] Git repository is OK.\r\n0|wiki     | 2018-11-18T11:39:29.975Z - info: [AGENT] Background Agent is initializing...\r\n0|wiki     | 2018-11-18T11:39:31.485Z - info: [AGENT] Checking Git repository...\r\n0|wiki     | 2018-11-18T11:39:32.365Z - info: [AGENT] Running all jobs...\r\n0|wiki     | 2018-11-18T11:39:32.366Z - info: [AGENT] Performing pull from remote Git repository...\r\n0|wiki     | 2018-11-18T11:39:32.415Z - info: [AGENT] Git repository is OK.\r\n0|wiki     | 2018-11-18T11:39:33.761Z - info: [AGENT] Git Pull completed.\r\n0|wiki     | 2018-11-18T11:39:33.768Z - info: [AGENT] Git Push skipped. Repository is already in sync.\r\n\r\n### 13.20: Logs wiki –-lines output (no change wrt when I ran the command at 13.00):\r\n![image](https://i.imgur.com/5R7aVdv.png)\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Requarks/wiki/issues/comments/440534004","html_url":"https://github.com/Requarks/wiki/issues/702#issuecomment-440534004","issue_url":"https://api.github.com/repos/Requarks/wiki/issues/702","id":440534004,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDUzNDAwNA==","user":{"login":"NGPixel","id":15522395,"node_id":"MDQ6VXNlcjE1NTIyMzk1","avatar_url":"https://avatars3.githubusercontent.com/u/15522395?v=4","gravatar_id":"","url":"https://api.github.com/users/NGPixel","html_url":"https://github.com/NGPixel","followers_url":"https://api.github.com/users/NGPixel/followers","following_url":"https://api.github.com/users/NGPixel/following{/other_user}","gists_url":"https://api.github.com/users/NGPixel/gists{/gist_id}","starred_url":"https://api.github.com/users/NGPixel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NGPixel/subscriptions","organizations_url":"https://api.github.com/users/NGPixel/orgs","repos_url":"https://api.github.com/users/NGPixel/repos","events_url":"https://api.github.com/users/NGPixel/events{/privacy}","received_events_url":"https://api.github.com/users/NGPixel/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T05:17:03Z","updated_at":"2018-11-21T05:17:03Z","author_association":"MEMBER","body":"How much RAM do you have?"}}
{"actor":{"display_login":"NGPixel"}}