wiki-v1 icon indicating copy to clipboard operation
wiki-v1 copied to clipboard

File lost in the wiki

Open stevenxi opened this issue 7 years ago • 5 comments

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.

stevenxi avatar May 01 '18 15:05 stevenxi

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.

NGPixel avatar May 09 '18 01:05 NGPixel

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.

stevenxi avatar May 10 '18 08:05 stevenxi

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 avatar May 17 '18 15:05 RomanWlm

@RomanWlm Probably we experienced similar issue but different cause. I've checked my git repo, nothing wrong local nor remote.

stevenxi avatar May 17 '18 16:05 stevenxi

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?

ghost avatar Apr 03 '19 13:04 ghost