sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.1k stars 1.28k forks source link

Error when running the Basic docker cmd for installation #33445

Open HafdhiAtef opened 2 years ago

HafdhiAtef commented 2 years ago

Hello , when i run the docker cmd docker run --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:3.38.0 . the container is up for 10 seconds then goes down , i tried to debug and run the container without -d and this is what i got :

image

camdencheek commented 2 years ago

Hi @HafdhiAtef! Thanks for reporting, and sorry you're having issues running the docker image locally.

I'm unable to reproduce this locally now, but I've seen that message before. My guess is that postgres is just taking longer than expected to start up. I've had this happen before when my computer has crashed and postgres needs to do some cleanup and checks before saying it's ready. It usually takes ~5-10 minutes.

If you're still hitting this, I'd recommend deleting the data directory (rm -rf ~/.sourcegraph/data) and trying again.

malomarrec commented 2 years ago

Hey @quinnhare, it looks like this issue was created by someone outside Sourcegraph. Assigning you to triage it! Please answer and route to the right team by adding their team label.

sourcegraph-bot-2 commented 2 years ago

Heads up @sourcegraph/delivery - the "team/delivery" label was applied to this issue.