Closed kajalshah closed 6 years ago
If you restart your wiki, do you still have the same issue?
yes
To add to this answer, at the end of my work on wiki i close it and every day when i start work i relogin. On relogin i see the same issue.
any updates?
@kajalshah check the permissions of the folder its being uploaded to
@Bamieh can you share with me how can i check permissions?
@kajalshah which OS do you use?
@Bamieh windows 8
@kajright check this link or just google
how to change permissions of a folder in windows.
try to make the file public at first, then reduce permissions as needed if it works.
@Bamieh thanks for sharing this link. i checked the permission and it is fine. I was able to upload images earlier and suddenly after the image is uploaded on wiki page, i dont see them. refer the screen i attached with the issue above.
If the uploaded image already exists then where is it, why cant i see that image along with other images and insert it on the page?
Does the image exists on disk? (In your repo folder > uploads)
yes it exists on disk
Seems like the worker is unable to process your image then. Have you tried with other images? Do you get the same result?
i have tried with different images. existing images and even with new images which were not uploaded. all the time it completes uploading and then i dont see any image uploaded on the screen i showed you. If i cant see image i uploaded how can i select it and insert it.
can i get any solution on this issue?
You can't see them in the list because it was unable to generate the thumbnail. Error during parsing / thumbnail generation = not listed in the UI.
Yet you still get a "File already exists" error because the file does exist on disk.
Do you have any error in the logs?
cant you get the error log? i dont have one. Its now a week i am trying to upload image yet cannot insert images on wiki pages. is there a solution to this issue. i just want to insert image on wiki pages
No I can't get your error log, this isn't a service, you host it yourself. Logs are located in the /logs
folder where you installed Wiki.js.
If there was a quick solution, it would be fixed already. I can't reproduce your issue and this isn't a widespread problem, so it takes time to find the cause.
I had the same issue. Very annoying!
I experience this issue with docker. After the initial install, first upload worked. All new files triggered the error that the first uploaded file already exists althought the new files all have other names. Also the two first files are not showing up in the menu. When I access the image folder manually, I only get the error that it contains errors.
I've had exactly this behaviour while using the Docker container, and found a resolution. Mounting the logs directory was what got me on the right path.
The problem was caused by the remote repository first of all not being accessible as I hadn't mounted the Git SSH key correctly, and then once I resolved that another issue:... Because the remote repository was empty, I needed to log into the container and manually push the repository using the mounted Git SSH key. This manifested as an error stating that WikiJS couldn't find the remote master branch.
The former is just PICNIC, but the latter looks more like a bug, as surely we expect the repository to be empty under most circumstances when spinning up a new instance.
All working great now I've taken the above steps though.
Thanks to n00bsys0p 's hint, I was able to fix this as well. To be more specific, I was able to make it work with http but not ssh. Here's how:
Edit your config.yml file: (Normally shown as "git clone http://[username]@[repo address]" on your git server) url: http://[repo address] branch: master auth: type: basic username: [username] password: [password]
A problem related to this is #327 which is a bug in the thumbnail generation, causing existing images to not get listed
Actual behavior
When I upload image to be inserted in the wiki page, i dont see the newly uploaded image.
Expected behavior
Any uploaded image should be listed so that it can be inserted in the page.
Steps to reproduce the behavior