yetanalytics / lrsql

A SQL-based Learning Record Store
https://www.sqllrs.com
Apache License 2.0
91 stars 17 forks source link

Can't login for the first time with initial credentials #339

Closed mateusnazarioc closed 1 year ago

mateusnazarioc commented 1 year ago

Hello, everyone! I'm following the documentation about providing the first credentials, but I'm getting an unexpected error everytime. I'm using the following commands and json:

docker run \
-it \ -p 50000:8080 \ -v /lrssql-docker/lrsql.json \ yetanalytics/lrsql

{
  "lrs": {
    "adminUserDefault": "testeUser",
    "adminPassDefault": "testeUser",
    "authorityUrl": "http://mydomain.com"
  },
  "webserver": {
    "httpHost": "0.0.0.0",
    "httpPort": 8080,
    "sslPort": 8443,
    "allowAllOrigins": true
  }
}

image

Thanks! :)

cliffcaseyyet commented 1 year ago

@mateusnazarioc Are you accessing this via localhost/0.0.0.0 or did you set a domain? If you setup a domain or proxy this can commonly be a CORS issue if it is not setup in config. Let me know how you are accessing it and I should have a few options to fix it.

mateusnazarioc commented 1 year ago

hey @cliffcaseyyet, thanks for the fast response. I'm acessing via localhost, just for testing.

invaliduser commented 1 year ago

@mateusnazarioc Assuming your lrsql.json is in /lrssql-docker, try modifying your -v option to /lrssql-docker:lrsql/config, for

docker run \
-it
-p 50000:8080
-v /lrssql-docker:lrsql/config
yetanalytics/lrsql
mateusnazarioc commented 1 year ago

@invaliduser @cliffcaseyyet thanks for the response! was truly the missing part of the -v argument. Was trying fast and this error passed me by. Thanks for the fast reply and the project :)