File lost in the wiki
Actual behavior
The file exists in the repo folder. And it exists in the git remote repo. But cannot see it from wiki
Expected behavior
Wiki should see the file
Steps to reproduce the behavior
Not able to reproduce/not sure how it happened.
The way to sort it out is manually delete the file in the repo, and re-add it in wiki.
What's the filename of the file? If it doesn't conform to kebab-case naming, it will be ignored by Wiki.js.
Also check the logs when starting Wiki.js for any errors.
Can't remember exactly the file name now. But the file was showed up in wiki before. After restart service, it disappeared.
The file was created by wiki itself.
Same issue for me, after a restart too. Pages still available by typing the right http adress but invisible from main menu. I checked logs and it seems to be due to an issue on access right to the remote git repository :
2018-05-17T14:27:07.710Z - ^[[31merror^[[39m: [AGENT] One or more jobs have failed:
{ code: ^[[33m128^[[39m,
message: ^[[32m'`git --git-dir=repo/.git --work-tree=repo push origin master` failed with code 128'^[[39m,
stderr: ^[[32m'ERROR: Repository not found.\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n'^[[39m,
stdout: ^[[32m''^[[39m }
I checked also that commit have been done locally; was ok but my dedicated user could not push changes to the remote repo. I fixed it by giving read/write access to my dedicated git user and manually set remote repo.
git push --set-upstream origin master
And then stop/start the service. It worked for me.
@RomanWlm Probably we experienced similar issue but different cause. I've checked my git repo, nothing wrong local nor remote.
What's the filename of the file? If it doesn't conform to kebab-case naming, it will be ignored by Wiki.js. i think this should be written in the documentation somewhere?