Pictures disappeared after reboot #5266
Replies: 10 comments 9 replies
-
I'm having the same problem. This is the third time I've noticed it. |
Beta Was this translation helpful? Give feedback.
-
I don't understand. |
Beta Was this translation helpful? Give feedback.
-
Is it the same files? or are you noticing that once you upload the files and reboot, that they are missing altogether after the reboot? |
Beta Was this translation helpful? Give feedback.
-
We got the same in our company. When container is restarted, images broke. I've checked paths, permissions, file owner... everything is fine. File paths aren't changing when I restart the container, it's confusing why they're broking. Path example:
nginx access.log: External images don't face this problem. Server: EC2 - Ubuntu 20.04 |
Beta Was this translation helpful? Give feedback.
-
We are having the same issue after upgrading wiki.js to the latest version - I can't figure out why none of my images will display in articles and I get the same error on the console: error: path must be absolute or specify root to res.sendFile One error for each image on an article. Has anyone been able to resolve this? The images files are back in the root after the upgrade (upgrade has the folder deleted and completely replaced) but they do not show up and telling the browser to view the image directly loads the correct path however it only shows "internal server error" when trying to render the image. |
Beta Was this translation helpful? Give feedback.
-
I was able to fix this error by modifying the server/models/assets.js file as follows: Change the line at 204 (in static async getAssetFromCache function) from: To: await sendFile(cachePath, { dot files: 'deny' }) }catch (error) { await sendFile(cachePath, { dot files: 'deny', root: '/var/www/wiki/' }) }` Note that the /var/www/wiki/ needs to match the root folder where your wiki lives on your system. This was snagged from another discussion thread here: #3322 I'm just adding some additional context to the answer provided within that thread - wiki.js should pull this code change in and make the path pulled from the system or a config.yml setting. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the suggestion. I had to replace "dot files" with "dotfiles" but then wiki.js started. Did this solution maybe help with others? |
Beta Was this translation helpful? Give feedback.
-
Good evening, I just installed the wiki on an Ubuntu server, and every time I restart the server, the images remain as a broken link and do not open, can anyone help me? |
Beta Was this translation helpful? Give feedback.
-
same issue here... And there don't seem to be a solution apparently!!! |
Beta Was this translation helpful? Give feedback.
-
Try to "Flush Pages and Assets Cache", from Admin > Utilities > Flush Cache. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have installed wiki.js with SQLServer on my win10 server.
Everything is working fine, but when I restart the server, all images created with "Insert Asset" are gone. Only the Broken Link icon is displayed.
In the meantime I updated to version 2.5.280, but that didn't help.
In the log it says for each access to an image:
[MASTER] error: path must be absolute or specify root to res.sendfile
What am I doing wrong?
Thanks
Edit: moved to Error / Bug Report
Beta Was this translation helpful? Give feedback.
All reactions