obsidian-livesync icon indicating copy to clipboard operation
obsidian-livesync copied to clipboard

Error when trying to start livesync

Open haladslader opened this issue 1 year ago • 3 comments

I attempted to run this command

docker run --rm -it -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -v /livesync/local.ini:/opt/couchdb/etc/local.ini -p 5984:5984 couchdb

And then i get this error

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/livesync/local.ini" to rootfs at "/opt/couchdb/etc/local.ini": mount /livesync/local.ini:/opt/couchdb/etc/local.ini (via /proc/self/fd/8), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type. ERRO[0000] error waiting for container

haladslader avatar Aug 19 '23 04:08 haladslader

I attempted to run this command

docker run --rm -it -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -v /livesync/local.ini:/opt/couchdb/etc/local.ini -p 5984:5984 couchdb

And then i get this error

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/livesync/local.ini" to rootfs at "/opt/couchdb/etc/local.ini": mount /livesync/local.ini:/opt/couchdb/etc/local.ini (via /proc/self/fd/8), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type. ERRO[0000] error waiting for container

hello,where is your /livesync/local.ini,That doesn't seem to be your absolute path.

blackconsine avatar Aug 20 '23 03:08 blackconsine

Thank you, that was the issue. Im new-ish to cli version of linux and didnt know there a path before what it showed when i was in the directory

haladslader avatar Aug 20 '23 17:08 haladslader

Hey want do you mean by absolute path? I'm facing the same issue

 ⠸ Container obsidian-livesync  Starting                                    0.3s 
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/root/docker/obsidian-livesync/local.ini" to rootfs at "/opt/couchdb/etc/local.ini": mount /root/docker/obsidian-livesync/local.ini:/opt/couchdb/etc/local.ini (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

sonikun avatar Oct 18 '23 12:10 sonikun