Lost access to all my images #5642
-
Hello, I have ran 2 wiki.js instances hosting (maybe unfortunately) on the same server without any problems for the last 2 years. After the summer break I realized both of the wikis stopped to render all the uploaded images. I basically use those wikis as a single user who is the admin and belongs to the Administrators group. I do not remember playing around with the permissions recently and surely not on both wikis. I have already spent few hours on it but without any success. I installed brand new wiki to have a comparison. There I upload an image, go to the page source, copy its URL (sits in the root), paste it to new browser tab and it displays. If I do the same with an image on the broken wiki I will get back "Forbidden". The same if I put that URL into Postman. It happens even with newly uploaded images! The system let's me to upload a new image, inject it to the page but then it always renders broken image symbol instead of the image itself. I do not understand the root cause. One of my theories is that my server provider changed the (virtual) machine and something happened with the permissions. But that is only a theory. Where are the images actually uploaded? I did not find them on the disk. Are they in the database? I did checked the wiki.js permissions but that is probably useless as my user is admin who should have access to everything by default. In the worse case I manually migrate to the new instance but without understanding the root cause I am worried this happens again in the future. Out of the ideas by now... Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
As so many times before it seems I (partially) solved the problem 15 minutes after posting the question here :) Short summary of what helped to solve the problem if somebody experience anything similar:
Longer 'investigation' text: The other wiki has bit more advanced permissions setup so page rules had to be changed but again... I had and have page rules only for Guests. If anybody can explain the above please do! Note: I found elsewhere the confirmation that the images (assets) are stored in the database, not directly on the disk (with the exception of their cached form). Update: After I upgraded wiki to 2.5.287 version this problem does not reproduce anymore. Can it be this has been fixed relatively recently, @NGPixel ? I do not remember the exact previous version but it was from January 2022, now we have September 2022. By now I also understand that assets follow their own naming. For the sake of simplicity I will sync my pages and assets structure, i.e. images for /internal/xyz page I will upload into newly created /internal asset folder. Would not it make sense that these are synced by default? I do not find the current state very intuitive, it took me a while to discover this... |
Beta Was this translation helpful? Give feedback.
As so many times before it seems I (partially) solved the problem 15 minutes after posting the question here :)
Short summary of what helped to solve the problem if somebody experience anything similar: