go-shiori / shiori

Simple bookmark manager built with Go
MIT License
9.28k stars 551 forks source link

SQLite Bind Address already in use #853

Closed ordinarysimplicity closed 4 months ago

ordinarysimplicity commented 7 months ago

Data

This probably isn't actually an issue with Shiori, but some kind of screw up on my part. I am trying to set up Shiori in a Docker container using SQLite, however, I realized that the .db file is not being created. So I tried running " docker exec -it shiori shiori serve" to see if I could get it to start/create the .db file, but I get an error message: "INFO[2024-03-04T05:11:08Z] Serve shiori in :8080 /
FATA[2024-03-04T05:11:08Z] Server error: listen tcp :8080: bind: address already in use "

docker-compose.yml: ` shiori: image: ghcr.io/go-shiori/shiori:latest container_name: shiori restart: "unless-stopped" networks:

I'm not sure how to fix this. I thought maybe it was a conflict with another docker container that also uses SQLite, so I stopped that container with docker compose down command. But that doesn't seem to fix the error.

Monirzadeh commented 7 months ago

about database I think it is duplicate #546 What's output of docker ps? It seams shiori use 8080 inside container so you can't use 8080 again. You can see everythings from inside of container with docker exec -it /bin/sh and than something like netstat -a -b

ordinarysimplicity commented 7 months ago

docker ps output: https://gist.github.com/ordinarysimplicity/6cf7f3ad9111c259c7ac73bf0f92ab2a

I have several services that use 8080 internally, but I didn't think the internal ports could conflict across containers... maybe I'm wrong in thinking that? Though this would be the first time I've had this issue.

Monirzadeh commented 7 months ago

When you run docker exec -it shiori shiori serve you run shiori again inside container that shiori already run and used 8080. If docker exec -it shiori /bin/sh you can see container from inside. Do you check that issue I mention?

fmartingr commented 6 months ago

Using docker exec -it shiori shiori serve over the running shiori container won't work because Shiori is already running on port 8080. Can you share the container logs?

stale[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had any activity for quite some time. It will be closed if no further activity occurs. Thank you for your contributions.