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

🤗 [Question]: admn credentials docker #80

Closed
3 tasks done
coderofsalvation opened this issue Jan 1, 2024 · 1 comment
Closed
3 tasks done

🤗 [Question]: admn credentials docker #80

coderofsalvation opened this issue Jan 1, 2024 · 1 comment
Labels
🤔 Question Further information is requested

Comments

@coderofsalvation
Copy link

coderofsalvation commented Jan 1, 2024

first of all thank you for this project

Question Description

Is it possible that the docker image isn't primed with admin data?
Even after running the docker init or restarting I can't seem to login with [email protected] / Pass123

error:

🛒 litecart - open source shopping-cart in 1 file
├─ Cart UI: http://0.0.0.0:8080/
└─ Admin UI: http://0.0.0.0:8080/_/
{"level":"info","latency":"1.511822ms","status":200,"method":"GET","url":"/_/signin","time":1704103392,"message":"Success"}
{"level":"error","caller":"/home/runner/work/litecart/litecart/internal/handlers/private/auth.go:36","error":"user with the given email is not found","time":1704103400}
{"level":"error","latency":"16.248537ms","status":500,"method":"POST","url":"/api/sign/in","time":1704103400,"message":"Server error"}

shellscript to reproduce:

test -d lc_base || {
  mkdir -p lc_base lc_digitals lc_uploads site || true
  docker run \
    -v ./lc_base:/lc_base \
    -v ./lc_digitals:/lc_digitals \
    -v ./lc_uploads:/lc_uploads \
    -v ./site:/site \
    --rm shurco/litecart:latest init
}

docker run -d \
  --name litecart \
  --restart unless-stopped \
  -p '8090:8080' \
  -v ./lc_base:/lc_base \
  -v ./lc_digitals:/lc_digitals \
  -v ./lc_uploads:/lc_uploads \
  -v ./site:/site \
  shurco/litecart:latest

Checklist:

  • I agree to follow litecart's Code of Conduct.
  • I have checked for existing issues that describe my questions prior to opening this one.
  • I understand that improperly formatted questions may be closed without explanation.
@coderofsalvation coderofsalvation added the 🤔 Question Further information is requested label Jan 1, 2024
@coderofsalvation
Copy link
Author

coderofsalvation commented Jan 1, 2024

nevermind, the [email protected]/Pass123 from the docs got me confused (error is on my side).
The right sequence is:

  • run docker init
  • run docker normally
  • create a user/pw
  • restart the docker because issue 22
  • login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant