requarks / wiki

Wiki.js | A modern and powerful wiki app built on Node.js
https://js.wiki
GNU Affero General Public License v3.0
24.33k stars 2.69k forks source link

Uploaded images are not showing up #216

Closed kajalshah closed 6 years ago

kajalshah commented 7 years ago

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

  1. Create new Wiki page or either edit existing wiki page
  2. Click on insert image icon
  3. Upload new image from the computer
  4. Once image uploading process is done, I cannot see the image uploaded. If i re-upload image i see error but not the image. I closed the popup and returned to upload image and got error shown in the image. issue-image upload
NGPixel commented 7 years ago

If you restart your wiki, do you still have the same issue?

kajalshah commented 7 years ago

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.

kajalshah commented 7 years ago

any updates?

Bamieh commented 7 years ago

@kajalshah check the permissions of the folder its being uploaded to

kajalshah commented 7 years ago

@Bamieh can you share with me how can i check permissions?

Bamieh commented 7 years ago

@kajalshah which OS do you use?

kajalshah commented 7 years ago

@Bamieh windows 8

Bamieh commented 7 years ago

@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.

kajalshah commented 7 years ago

@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?

NGPixel commented 7 years ago

Does the image exists on disk? (In your repo folder > uploads)

kajalshah commented 7 years ago

yes it exists on disk

NGPixel commented 7 years ago

Seems like the worker is unable to process your image then. Have you tried with other images? Do you get the same result?

kajalshah commented 7 years ago

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.

kajalshah commented 7 years ago

can i get any solution on this issue?

NGPixel commented 7 years ago

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?

kajalshah commented 7 years ago

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

NGPixel commented 7 years ago

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.

ixdarchitects commented 6 years ago

I had the same issue. Very annoying!

cybre-finn commented 6 years ago

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.

n00bsys0p commented 6 years ago

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.

tanyeun commented 6 years ago

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]

sindunuragarp commented 5 years ago

A problem related to this is #327 which is a bug in the thumbnail generation, causing existing images to not get listed