You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know there has been a previous raised issue here, however the issue is still there on 0.2.7.
I can attempt any image or video upload from public URL or internal IP and it fails.
Does this regardless of Chromium or Firefox.
Having to place URLs to images which is very clunky, will this be fixed soon?
I had the same problem and following points fixed it:
If you use bind mounts instead of named volumes for the "/app/data/storage" volume, you need to set the User UID /GID in Docker Compose file: on host's console use "id" to find out the UID and GID of root (or the user that runs docker) and add the parameter user: "{UID}:{GID}" to the "docmost" service in docker compose. Otherwise the app cannot create the necessary directories and files under the bind-mount directory. If you use named volumes it should work without the parameter.
If you use NGINX-Proxy-Manager for SSL and public URL, you need to activate "Websockets Support" on the "Details" tab of your proxy host. Without that I had problems to upload files and import md/html-based content.
Hopefully this helps!
By the way, a note to the development team: VERY COOL TOOL!!!! Thanks a lot for this great work!!!
Can't believe I didn't think of that, I had the GID and UID set but the docker ignores it.
Checked and runs as 1000:1000 so a permission tweak and now it works.
Thanks @SteveSmall2024
I had the same problem and following points fixed it:
If you use bind mounts instead of named volumes for the "/app/data/storage" volume, you need to set the User UID /GID in Docker Compose file: on host's console use "id" to find out the UID and GID of root (or the user that runs docker) and add the parameter user: "{UID}:{GID}" to the "docmost" service in docker compose. Otherwise the app cannot create the necessary directories and files under the bind-mount directory. If you use named volumes it should work without the parameter.
If you use NGINX-Proxy-Manager for SSL and public URL, you need to activate "Websockets Support" on the "Details" tab of your proxy host. Without that I had problems to upload files and import md/html-based content.
Hopefully this helps!
By the way, a note to the development team: VERY COOL TOOL!!!! Thanks a lot for this great work!!!
Im sorry to necro a old issue but can you please show me an example of adding uid gid to a docker compose file? I tried everything I can think of and I keep getting permission errors.... I like using bind mounts because I find it easier to back up. I would really appreciate the help.
@Rom0067 Here is an excerpt of my docker compose.
In my case, I run it as a Stack in Portainer:
(...)
ports:
- "3000:3000"
restart: unless-stopped
# Determine UID and GID of the root User on the console via command "id"
# You must be logged in or sudo'ed as root or the user who runs Portainer!
# Example Result of "id" on console: uid=0(root) gid=0(root) Gruppen=0(root)
user: "0:0"
volumes:
- /yourpathto/docmost/app_storage:/app/data/storage
(...)
@Rom0067 Here is an excerpt of my docker compose.
In my case, I run it as a Stack in Portainer:
(...)
ports:
- "3000:3000"
restart: unless-stopped
# Determine UID and GID of the root User on the console via command "id"
# You must be logged in or sudo'ed as root or the user who runs Portainer!
# Example Result of "id" on console: uid=0(root) gid=0(root) Gruppen=0(root)
user: "0:0"
volumes:
- /yourpathto/docmost/app_storage:/app/data/storage
(...)
Hope that helps!
Thank you for the reply. I tried doing user: 1000:1000, user: 0:0 but neither worked. I ended up removing bind mounts in compose file and created the default volumes. The permission errors went away and it's working fine.
Activity
SteveSmall2024 commentedon Jul 23, 2024
I had the same problem and following points fixed it:
Hopefully this helps!
By the way, a note to the development team: VERY COOL TOOL!!!! Thanks a lot for this great work!!!
hao159 commentedon Jul 24, 2024
just type:
sudo chown -R user:user ./path-to-docmost-data(user runer docker)
ados8 commentedon Jul 25, 2024
Can't believe I didn't think of that, I had the GID and UID set but the docker ignores it.
Checked and runs as 1000:1000 so a permission tweak and now it works.
Thanks @SteveSmall2024
Rom0067 commentedon Oct 13, 2024
Im sorry to necro a old issue but can you please show me an example of adding uid gid to a docker compose file? I tried everything I can think of and I keep getting permission errors.... I like using bind mounts because I find it easier to back up. I would really appreciate the help.
SteveSmall2024 commentedon Oct 14, 2024
@Rom0067 Here is an excerpt of my docker compose.
In my case, I run it as a Stack in Portainer:
Hope that helps!
Rom0067 commentedon Oct 14, 2024
Thank you for the reply. I tried doing user: 1000:1000, user: 0:0 but neither worked. I ended up removing bind mounts in compose file and created the default volumes. The permission errors went away and it's working fine.
kevinjalbert commentedon Oct 22, 2024
Just adding here, I was coming at this from Unraid.
I saw (https://forums.unraid.net/topic/170592-support-devzwf-docmost/), which seems to suggest some improvements to either the dockerfile or the template.
I just
chmod 777the directory to get past this and get it working, so I can test out Docmost.Merge pull request docmost#111 from hugokindel/hugokindel
Merge pull request 'docmost#111 feat(ai-chat): collapse-on-page-focus…