Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database "lizmap" does not exist #36

Open
run4gis opened this issue Sep 14, 2022 · 4 comments
Open

database "lizmap" does not exist #36

run4gis opened this issue Sep 14, 2022 · 4 comments

Comments

@run4gis
Copy link

run4gis commented Sep 14, 2022

Hi to all!

Using Windows 10 + Docker Desktop.
When run "docker compose up", get an error: database "lizmap" does not exist.
What did I do wrong?

Thank you!

@dmarteau
Copy link
Member

The lizmap database is created at startup from the postgres container only ithe first time the postgres service is configured.

  • Check for errors at startup in the contaner's logs
  • Clean up installation and volumes with docker compose down --volumes (caution this will wipeout the database in case you have any data in it).

@rashidhaffadi
Copy link

rashidhaffadi commented Jan 12, 2023

same problem on windows10 + docker desktop
it gives me this error:

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/run/desktop/mnt/host/d/lizmap/lizmap-docker-compose-master/lizmap/etc/nginx.conf" to rootfs at "/etc/nginx/nginx.conf": mount /run/desktop/mnt/host/d/lizmap/lizmap-docker-compose-master/lizmap/etc/nginx.conf:/etc/nginx/nginx.conf (via /proc/self/fd/14), 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

@dmarteau
Copy link
Member

@rashidhaffadi your clearly have a path issue: check the mounted directories as stated in the error message.

@SirD91
Copy link

SirD91 commented Apr 25, 2023

Hello / Bonjour @dmarteau

I have the same two issues mentioned above in this discussion :

  • lizmap-docker-compose-master-postgis-1 | ... FATAL: database "lizmap" does not exist
    For this, I tried the command docker compose down --volumes but it ended with an error :
    error decoding 'Volumes[0]': invalid spec: :/srv/projects: empty section between colons

  • Same path issue with the mounted directories
    I'm not sure to understand the solution proposed, I created a folder named "nginx" in the "etc" folder but it obviously didn't solve anything. My question here is : How can I "check the mounted directories" ? What does it mean please ?

So in Docker Desktop, the container nginx:alpine is the only one which can't run. Is that the reason why I can't access to the lizmap administration panel yet ? (With the link http://localhost:8090/admin.php/admin/maps/)

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants