requarks / wiki-v1

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

Background Agent.js is not running #114

Open Atomis70 opened 6 years ago

Atomis70 commented 6 years ago

Actual behavior

The background .js agent does not run every five minutes as expected in the servers / agent.js file. (According to the output logs)

Expected behavior

Synchronization is done every five minutes by the .js agent

Steps to reproduce the behavior

Install:

Using a Master Branch on gitlab.

Using wiki.js on ubuntu16.04 ( node wiki start / stop) in a unprivileged LXC on Proxmox

There are no errors in the error log file, I tried several solutions, such as using previous git versions or even trying out with another GIT server. The error is persistent.

The only way to sync with my remote branch is to restart the wiki.js server or to manually do git pull origin master and git push origin master.

NGPixel commented 6 years ago

Run wiki.js in interactive mode and look for errors: node server

Atomis70 commented 6 years ago

Hello @NGPixel , Thank you for your reply! By performing the node server command, the agent.js seems to work properly, but when the wiki.js is started, the log files show that the agent.js is not running.

Atomis70 commented 6 years ago

I confirm, with the node server command, the agent.js works fine, but with the node wiki.js start command, the agent.js does not work. I made changes and after 1 hour no push / pull was done

atlemagnussen commented 6 years ago

I also experience this problem, it syncs when just started and then I get get this: 2018-09-14T18:35:23.864Z - info: [AGENT] Git Push skipped. Repository is already in sync. now 12 hours have passed and it has not started syncing again

atlemagnussen commented 6 years ago

I also get this log consistantly in the error log

tail wiki-error-0.log
    at Function.WAITEXECUTE (file:///home/atle/wiki/node_modules/mathjax/unpacked/MathJax.js:348:50)
    at cb (file:///home/atle/wiki/node_modules/mathjax/unpacked/MathJax.js:225:59)
    at Object.Execute (file:///home/atle/wiki/node_modules/mathjax/unpacked/MathJax.js:426:36)
    at Object.loadComplete (file:///home/atle/wiki/node_modules/mathjax/unpacked/MathJax.js:968:35)
    at file:///home/atle/wiki/node_modules/mathjax/unpacked/jax/element/mml/optable/GeneralPunctuation.js?V=2.7.1:40:16
    at file:///home/atle/wiki/node_modules/mathjax/unpacked/jax/element/mml/optable/GeneralPunctuation.js?V=2.7.1:42:3
    at ContextifyScript.Script.runInContext (vm.js:59:29)
    at Object.runInContext (vm.js:120:6)
    at processJavaScript (/home/atle/wiki/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:128:10)
    at HTMLScriptElementImpl._eval (/home/atle/wiki/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:65:7)
NGPixel commented 6 years ago

@atlemagnussen Try disabling mathjax in your config.yml and restart Wiki.js