Christmas-Community icon indicating copy to clipboard operation
Christmas-Community copied to clipboard

Default Admin Credentials

Open peskyAdmin opened this issue 1 year ago • 13 comments

I cant not find default admin credentials or place to set them. tried going to "/" on http but that just forwards to /login.

image

having default admin credentials in docker or env file would be nice

peskyAdmin avatar Aug 28 '24 23:08 peskyAdmin

okay i got in using what is displayed in the prompt. that should atleats be added to the readme.

peskyAdmin avatar Aug 28 '24 23:08 peskyAdmin

Going to / should redirect to the setup page. This sounds like a bug.

Wingysam avatar Sep 02 '24 10:09 Wingysam

Just found this application via Community Application in Unraid. Having the same issue, any attempt to go to / redirects back to the /login page, with no ability to login.

Is there a default admin login that can be used to start?

kfoxton avatar Sep 26 '24 13:09 kfoxton

There is not a default admin password. It's meant to redirect you to /setup if there are no accounts.

Wingysam avatar Sep 26 '24 13:09 Wingysam

I've got the same problem. I can't set any credentials. / or /setup doesn't work.

Nevarro avatar Sep 27 '24 11:09 Nevarro

Can it be reproduced with an empty docker container of Christmas Community? Like

docker run -p 8081:80 --rm -it  wingysam/christmas-community:latest

Wingysam avatar Sep 27 '24 11:09 Wingysam

For those using the unraid template one of the fields is "Login Failure Redirect" it defaults to /login . Change this to /setup Once the container starts up you can go to the page and enter your new admin user and password. This will update the db with the new admin user and then the page will crash. Edit the settings on the app again and change it back to /login .

This will get you in.

Side note the dbs directory where the sql lite databases are store have a field where it says the dbs are in path /dbs but this is inside the container. If you want this to live on outside of the container I'd recommend putting it in /data/dbs since the /data path is setup to be in your appsdata directory. That way the DB lives on between containers.

JohnGrosshans avatar Sep 27 '24 14:09 JohnGrosshans

Oh okay, who maintains the Unraid template? Is that something automatically done that I can fix or is there someone I can contact?

Wingysam avatar Sep 27 '24 15:09 Wingysam

Click on show more settings to see the "login failure redirect" variable. But it doesn't work for me : error 302 not found

image image

bckthomas avatar Sep 27 '24 15:09 bckthomas

For those using the unraid template one of the fields is "Login Failure Redirect" it defaults to /login . Change this to /setup Once the container starts up you can go to the page and enter your new admin user and password. This will update the db with the new admin user and then the page will crash. Edit the settings on the app again and change it back to /login .

This will get you in.

Side note the dbs directory where the sql lite databases are store have a field where it says the dbs are in path /dbs but this is inside the container. If you want this to live on outside of the container I'd recommend putting it in /data/dbs since the /data path is setup to be in your appsdata directory. That way the DB lives on between containers.

I followed these settings after doing a fresh install on UnRaid and they worked! I will put in a issue with the user that contributed the template.

kfoxton avatar Sep 27 '24 20:09 kfoxton

Oh okay, who maintains the Unraid template? Is that something automatically done that I can fix or is there someone I can contact?

Hey there, I'm the guy who made the Unraid template, apologies for the error. I just patched the template with these fixes, should populate in a few hours for new users.

nwithan8 avatar Sep 27 '24 20:09 nwithan8

Its awesome that there is a template!

I'm not an Unraid user myself but I wonder if we could link to this in the README for those that are?

cj13579 avatar Sep 27 '24 20:09 cj13579

Good idea. Can just say that it can be found by searching "Christmas Community" in the Community Apps store and installing it from grtgbln's repository (the only one that will pop up on the search results page), then follow the instructions to configure.

Unraid users will know what that all means.

nwithan8 avatar Sep 27 '24 21:09 nwithan8

The unraid app has been added to the README.

Wingysam avatar Dec 30 '24 00:12 Wingysam