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

Unable to login to Unraid Container #608

Open
awra2001 opened this issue Dec 31, 2024 · 10 comments
Open

Unable to login to Unraid Container #608

awra2001 opened this issue Dec 31, 2024 · 10 comments

Comments

@awra2001
Copy link

(this is my first bug I'm doing... ever, so forgive me if it's not what it should be!)

Describe the bug
I am unable to login to demo login.

Version
Unraid docker version latest.

To Reproduce
Steps to reproduce the behavior:

  1. Attempted to login after installation.
  2. Used "[email protected] / password" and it says it is incorrect.
  3. I followed the FAQ to try to change the password and had the following:

[1] pry(main)> User.find_by(email: '[email protected]').update(password: 'new_password', password_confirmation: 'new_password')
D, [2024-12-31T17:47:22.599026 #147] DEBUG -- : User Load (3.7ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "[email protected]"], ["LIMIT", 1]]
NoMethodError: undefined method `update' for nil

Expected behavior
The ability to log in, and I can't.

Additional context
I also attempted to use my own email, hoping there might be some magic, but there wasn't.

I suppose if I understood Ruby better I could just add a user via the console.

@ahatdude
Copy link

ahatdude commented Jan 1, 2025

hey,
I'm sorry to hijack the thread but I'm also on unraid and I get issues when trying to get the container to work in the first place.
I get this:

01:17:32 web.1 | E, [2025-01-01T01:17:32.982764 #11] ERROR -- : Failed enqueuing Cache::CleaningJob to Sidekiq(default): RedisClient::CommandError (NOAUTH HELLO must be called with the client already authenticated, otherwise the HELLO <proto> AUTH <user> <pass> option can be used to authenticate the client and select the RESP protocol version at the same time (redis://redis:6379))

Did you also deal with this? My redis container is accessible and working.

Thank you very much and happy new year!

@awra2001
Copy link
Author

awra2001 commented Jan 1, 2025

Heya:

I didn’t have that issue. Postgres gave me some trouble but it was as much a matter of checking URLs and some trial and error. Redis went though right away. That almost looks like an issue with maybe what you might be using as authentication?

@ahatdude
Copy link

ahatdude commented Jan 1, 2025

Heya:

I didn’t have that issue. Postgres gave me some trouble but it was as much a matter of checking URLs and some trial and error. Redis went though right away. That almost looks like an issue with maybe what you might be using as authentication?

I actually removed the password from my redis container and it worked.
Not a great solution, I wonder if there's something I can do about that, but for now it'll work.

Thanks and sorry for the hijack :-)

EDIT: what URL did you put for the postgres? was it http:// or postres:// ?

@Freika
Copy link
Owner

Freika commented Jan 1, 2025

I can't really support on Unraid related questions as I'm not familiar with it that much, but @awra2001 your problem seems like the demo user wasn't created in the database. You can do the following in the console:

User.create!(email: '[email protected]', password: 'new_password', admin: true)

@ahatdude I probably will have to see what needs to be done to support redis auth to resolve that, thanks for pointing out

@matthewdavis
Copy link

I can also confirm that the initial user is not created when using this on unraid (this may be specific to the unraid deployment, but I'm not seeing anything in the docker-compose.yml file that stood out that was different from what was used in the unraid deployment).

When we start dawarich, it prompts to run db:migrate (either from browser or cli), but no user is added to the users table.

@benjaminmchale
Copy link

Also having the same issue with UNRAID. I tried executing the command line in the Dawarich console and receive the following error. Any help with how to create a user would be greatly appreciated!

sh: syntax error: unexpected word (expecting ")")

@matthewdavis
Copy link

Also having the same issue with UNRAID. I tried executing the command line in the Dawarich console and receive the following error. Any help with how to create a user would be greatly appreciated!

sh: syntax error: unexpected word (expecting ")")

Make sure you are in the dawarich console before executing the user.create command. See FAQ.

@delta0815
Copy link

delta0815 commented Jan 3, 2025

While I get dawarich's Unraid Community Template to work (it is missing a DATABASE_PORT variable and it also has the above user-issue) I still can't use the application as expected. E.g. the file-import for GPX files doesn't give me an error (neither on the webfront-end nor on the console, the import results in an entry with 0 points. The GPX file is an actually recorded track and not a planned route.

So my assumption is, that the Docker Community Template has more flaws then the above ones.

Just to verify. Is there any way to test if dawarich runs as expected?

I have added the gpx file for reference just to ensure it's not the cause of the issue.

23.07.2017_9_58_46_vorm..gpx.zip

I just tried to edit this "0 points import" and I get an error... maybe this helps to identify if it has to do with the Unraid Template

Bildschirmfoto 2025-01-03 um 18 07 57

@ahatdude
Copy link

ahatdude commented Jan 3, 2025

While I get dawarich's Unraid Community Template to work (it is missing a DATABASE_PORT variable and it also has the above user-issue) I still can't use the application as expected. E.g. the file-import for GPX files doesn't give me an error (neither on the webfront-end nor on the console, the import results in an entry with 0 points. The GPX file is an actually recorded track and not a planned route.

Could you specify how you added the postgres adress? I'm struggling to get it connected to the postgres database.
If it's not too much to ask, maybe share your docker compose?

Thanks!

@delta0815
Copy link

I am usings the Community App Template. So no docker-compose file. But if it helps: These are my settings
Bildschirmfoto 2025-01-04 um 13 52 49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants