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

What is the default admin account? #68

Open
vuens opened this issue Apr 23, 2021 · 13 comments
Open

What is the default admin account? #68

vuens opened this issue Apr 23, 2021 · 13 comments

Comments

@vuens
Copy link

vuens commented Apr 23, 2021

App key exists -- skipping
Migrating database
Creating default admin account
Seeding initial data
The absolute path to your media directory. If this is skipped (left blank) now, you can set it later via the web interface.
 Media path [/music]:
 > 
Now to front-end stuff
Oops! Koel installation or upgrade didn't finish successfully.
Please try again, or visit https://docs.koel.dev for manual installation.
😥 Sorry for this. You deserve better.

Creating default admin account
What is the default admin account?
The first run didn't let me create a new account

@samstarnes
Copy link

Username: admin@koel.dev
Password: KoelIsCool

@Hyzual
Copy link
Collaborator

Hyzual commented Apr 28, 2021

Hi,
It's unusual that it just created a default admin account, usually it asks for your email and password (twice). Indeed @samstarnes is correct, those are the default credentials (see the command's code).

If you need, there is also a command to reset the admin password, check out the docs here

@Hyzual
Copy link
Collaborator

Hyzual commented Apr 28, 2021

I just tried from a new installation and indeed it no longer asks what the admin account should be 😕

@Hyzual
Copy link
Collaborator

Hyzual commented Apr 28, 2021

So it turns out it was a feature from v5.1.0 I was unaware of. I've updated the README to explain that koel:init now creates a default admin account.

@C-Fu
Copy link

C-Fu commented Aug 24, 2021

Thank you for this! Been searching the username and password for a while!

Maybe consider adding this bit in this repo's github page?

@blmhemu
Copy link

blmhemu commented Dec 13, 2021

Just ran koel on docker and was NOT able to login without running the init command. But it is said the default user/pass would work. Any help here please ?

@Hyzual
Copy link
Collaborator

Hyzual commented Dec 13, 2021

Hi @blmhemu it's the expected outcome. You still need to run koel:init and then enter the default username and password

@blmhemu
Copy link

blmhemu commented Dec 13, 2021

Hi @Hyzual thanks for the clarification. I was wondering if it is possible to automate this, say, by adding the command in Dockerfile itself instead of user needing to manually execing into the container (which IMO is not a good practice)

@Hyzual
Copy link
Collaborator

Hyzual commented Dec 13, 2021

It should be possible, I'll look into it when I do the koel version bump

@Hyzual
Copy link
Collaborator

Hyzual commented Dec 30, 2021

Hi @blmhemu, so I tried changing the entrypoint script to run koel:init automatically but it does not work. If I just put the command in the entrypoint, it fails because connection to the database is refused. It is expected that it fails because the database can take some time to spin up and be ready to accept connections (for example, the mysql database container needs about 10 seconds before it's ready).

I could not find a Laravel command to verify that the database is ready 😕. Since this image supports both postgreSQL and MySQL, I cannot hardcode a command with one of those clients to check the database. So I'm out of reliable options, I don't know how to wait for the database to be ready before running koel:init. If you have an idea, do not hesitate to share it here.

So, for the time being, I'm afraid I cannot automate this. People will still need to run koel:init manually...

@blmhemu
Copy link

blmhemu commented Dec 31, 2021

Hey ! Thanks for the effort @Hyzual ! I remember seeing a similar issue elsewhere... I think they got around it by using some kind of bash script which waits for the DB to be up and running before running the commands. Let me check if I can find it.

@blmhemu
Copy link

blmhemu commented Dec 31, 2021

@Hyzual
Copy link
Collaborator

Hyzual commented Jan 3, 2022

Thanks for the links, I didn't know those existed ! I don't know when I'll have time but I'll try those

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

5 participants