Blanking out entry
Describe the bug When returning to Dumbpad, several previously entered items, are now blank
To Reproduce Steps to reproduce the behavior:
- Go to dumbpad docker container (web interface)
- click previously save item
- It is blank
Expected behavior There should be the previously entered item shown
Screenshots
Desktop (please complete the following information):
- OS: running in Unraid accessed by Brave browser, from a windows 11 machine Have tried other browsers
This is interesting. To confirm, you have mounted/mapped the volume path correct?
using the default that installed with Unraid
Other items, are still there. I have had this happen 3 times so far. The first two, I thought I had maybe cut instead of copy when I would refer to the info for other things I was working on. But the third time, I knew something was wrong. I currently have a total of 11 items
Same here, setup in Portainer. After the recent update changes were not saved anymore, even so the "saved" message popped up. No errors in the container log file.
volumes:
- /opt/docker/dumbpad/data:/app/data
Solution: For some reasons i had to change the permissions to my app folder from root to my user:
after chown 1000:1000 /opt/docker/dumbpad/ -R it worked again
after these changes: https://github.com/DumbWareio/DumbPad/pull/76
- requires change ownership of the data directory like mentioned by @OldBavarian
sudo chown -R 1000:1000 /path/to/dumbpad/dataDirectory
we'll keep this open until this is properly documented in the readme
I modified the permissions, but the notes I had issues with previously, I re-entered the data, and it went missing again. I had to delete the note, and create a new one.
Been dealing with this for some time. Finally ran across this thread. It should be added to the documentation.
So that's why!
I've spent several hours thinking I've lost my mind and I'm dumb AF, experimenting and tinkering with older build of the image that worked ... please, add this to the documentation asap, as it is hair-pulling experience for the uninitiated who just want to use your app.
Thank you!
For those who didn't catch the memo and/or just stumbled upon this, once again, the latest version of DumbPad won't start correctly unless you execute this command on your host machine (credit to @gitmotion from above):
sudo chown -R 1000:1000 /path/to/dumbpad/dataDirectory
Symptoms you have the same problem -> Open the logs of the container and if you see this you haven't fixed the above:
Error: EACCES: permission denied, open '/app/data/notepads.json'
at async open (node:internal/fs/promises:641:25)
at async Object.writeFile (node:internal/fs/promises:1215:14)
at async ensureDataDir (/app/server.js:562:13)
at async getNotepadsFromDir (/app/server.js:581:5)
at async loadNotepadsList (/app/server.js:576:26)
at async /app/server.js:739:22 {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/app/data/notepads.json'
}
God bless @gitmotion!
Anddddd 84 years later it has been added to the readme!