-
Notifications
You must be signed in to change notification settings - Fork 190
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
No Username or Password #195
Comments
You wanna have specific username and password set or default admin/admin will do you good? |
I would like the login to work in any way possible. After a fresh install with only the base environment variables of flox_db_init and tmdb_api_key, it will not allow me to log in using admin/admin. This is why I went down a long troubleshooting journey to figure out why I am not able to log in and began experimenting with username environment variables and inspecting the users database. I just want the damn thing to work. lol Any guidance will be greatly appreciated. I am clueless as what to do next. |
What about container logs, can you share them here? |
Here you go: https://pastebin.com/Bky4yPd2 Thank you for helping me. 🙏 |
It's weird cause now I installed the Flox on a new VPS and got the same problem as you, logs are the same but not with the working one so I'm assuming it's got something to do with docker and it's recent updates. Working Flox logs:
Problematic Flox logs:
|
At a quick glance between those two logs you provided, I notice no discrepancies. If it is some kind of docker compatibility issue, that is outside of my scope, as I am new to docker. I guess I can install the service at the OS layer and bypass containerization. Just kind of a pain when it comes to service management, as I have everything in portainer and would have to remember that this service is running outside of that environment and manage it in a separate ssh session. A side note: if you provide me any direction on what to look for and where to look, I can try to support troubleshoot efforts. As always, I appreciate all of your support thus far. 🙏 |
@cupanoodles So I found a solution for you. I created a backup of the working Flox directory, the one that is bound to /flox on the container side, and installed Flox on another server and it wasn't working (same login problem). Then I stopped the container and moved the backup file to the new server and replaced it with new ones and after I started the container again I was able to login and everything seemed to be working perfectly. You can download the backup file from here: You can extract it with P.S. I might delete the file later so download it ASAP. |
I downloaded your archive and replaced the files in the /flox directory as you instructed and this did not resolve the problem for me. According to what I am reading per your description, I believe your troubleshoot approach was to run a non-containerized and functional version of flux then copy and overwrite the container data directory with the data from the functioning application. I thought to myself that perhaps I could replicate this process by just deleting all files in the /flox folder then pulling a fresh repo into the directory. I did this and ran the container and this did not solve the missing login credentials issue either. The issue keeps pointing to some process failing to populate the database with the user data on initialization. I then read through and followed the instructions for a non container install in accordance to: https://github.com/devfake/flox. While walking through this process, I found out that composer wasn't installed && that flox requires PHP 7.2 while my environment runs on 8.1.2. I installed composer and tried modifying the composer file to use 8.1 and got stuck on laravel 6.8 refusing to work with php 8.1. At this point I don't want to modify my environment any further, because I have way too many services running on the current configuration. I guess I am unable to use flox in my environment due to its outdated PHP requirements. I am sorry that I did not have the time to walk through this process before so that I did not waste any of your time. I assumed it would have been an easy fix, but determined otherwise. As always, I appreciate all of your attempts to help me. 😊 |
@cupanoodles Why you make it hard for yourself? :D Okay I'm gonna say it more clearly this time which might help you to place it correctly. The file I gave you containing of a folder called flox with all the thing you need First install it like this:
Then stop the container and delete the flox folder and then copy paste the flox folder I send you and then start the container again. |
@AuthorShin thank you so much! 🥳 I am always busy doing many things, so my head wasn't clear when I made things difficult on myself. Thank you for taking the time to give me that clear instruction. I got it working. 😁 Let me know if I can buy you a cup of coffee to thank you 😊 |
You're very welcome :) @cupanoodles |
Fresh install in docker container (olofvndrhr/flox-dockerized), there is no username and password for login page.
Added environment variables for user and password and admin password, modified .env file, created docker-compose.yml. Nothing is working.
Checked db with sqlite and see users database contains no data.
What do I do?
The text was updated successfully, but these errors were encountered: