-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Container hangs, on startup #37
Comments
Hi @YouveGotMeowxy, it seems that it gets stuck while downloading some packages, can you make sure you have enough space, also check is it timing out or just crashes. some extra points :
|
Tyvm for such a fast response :)
Plenty of space; I have a 12 TB HDD.
Is there another way for me to be able to tell? All I see in the log is this:
Ok , ty for letting me know. I didn't understand why, since I was already adding the values for the specific database. The is where I saw that, though, right down in the docker compose example: https://hubgw.docker.com/r/cybrarist/discount-bandit
ok, I just also saw that in the example from the link above. I mostly did a copy/paste of the config and just tweaked my system's unique settings. |
Another quick question; does this container accept docker secrets in it's compose? |
Update: I got it! :D Turned out my modem needed a reboot because it was downloading super slow. I've never had that happen before. I think i may have identified a bug though? my email user name has a plus sign in it, and even though it matches exactly with what I have in my config, it tells me it doesn't recognize it. "These credentials do not match our records." UPDATE: I guess not. I deleted that user from the db, and created a new one in the environment variable without the plus sign, and for some reason I still can't login with it. I could login with the test@ account though? A couple more questions: I also keep seeing this in the log, does it mean anything, or would it help improve anything by setting it in my compose?
and 2.6 GB is a lot of memory for a container to eat up, is there a way to trim it down? Maybe adjust the number of laravel workers or something, via an environment variable? |
aaaaaand I still get the login form. |
yea it shouldn't be there, i'll remove it.
i didn't try tbh so i guess not.
yea, i guess it might cause an issue since i add the user as command, didn't really think someone might use + in email, but i'll add a fix for it as i think wrapping it with "" should be enough.
i'll investigate further to see if there's a way i can get rid of it.
yes, please disable all stores that you don't need from the the system, then restart the container, so the container won't create supervisors for the stores that are disabled. i thought i have put this info on the website, but apparently i didn't, so i will add it later. but that should reduce the ram usage.
yea this is the default, so it doesn't really matter to me tbh. it's just a logo in the end :D
hmmm, i assume you restarted the container after you passed the env or after you edited it, right ? and of course you are using the latest. |
Yes, the latest, and I've restarted the container several times and it still shows up. I also still can't login, even when I remove the plus sign from my email address. Any idea on that? For shits n grins I optimized the logo as well if you want to use it. trimmed off about 12kb |
ok, i'll double check it. can you send me the log you are getting when you start the container with the email that doesn't contain '+' please |
@Cybrarist Here's the entire log I have (the email is on line 87): https://pastebin.com/s7rgUF94 the pw doesn't seem to matter. For a test case I even just set it to 1234567890. Here's the entire compose I'm using: Expand
It's definitely creating the info in the db: Another question: the very first time I created a container it auto-added a "[email protected]" account that worked, but since then it never does? Even when I drop all tables and restart the container so it re-seeds everything. I was going to try just logging into that account and changing everything, but can't. |
'DEAFULT_PASSWORD' can you double check this one please, it should be DEFAULT_PASSWORD. [email protected] is created when environment is local, so i can test it. but it's not recommended to be there if the website is public facing. |
i have just noticed this one, if you login locally without authentik, does it work ? i tested it for both images and it works fine for me, but i didn't try it with authentik tbh. |
OOOO MMMMM GGGGGGG!!! I feel like a huuuuge idiot right now! lolll It worked and I'm an idiot for not seeing that stupid typo! I'm so sorry for all of this. I guess my eyes are just burnt out and needed a fresh pair of eyes. Thank you for spotting it! :) |
dw, it was a typo from my side on the docker hub description. I fixed it. in regarding to login without authentication, is it working for you ? locally or through authentik ? |
the Some other issues I've noticed:
|
don't delete the stores, you need to change their status to disabled.
i'll fix this, but one of them is for USA and the other for germany
you are right, i will make the status change to be from outside, and also as bulked action.
i can add countries to stores so user can filter them based on that, and then disable the one he doesn't want.
sadly this option is not a custom color, because the package i am using supports custom preset of colors, you can check the available colors from the following links https://discount-bandit.cybrarist.com/environments.html#change-the-theme-color |
Out of curiosity, why is there the ability to delete a store if it/they just get re-added on container startup?
It's not a huge deal at all, since the colors only really affect a small handful of things. I'd actually like to do a whole CSS facelift to the UI, lol. I'm a bit of a style freak. Down the road are there already plans to let us be able to add in more stores to the list? Like Home Depot, Menards, Old Navy, etc.? |
it comes by default, but probably i should change it to disable in the upcoming update.
if you want to do a whole facelift, you can always clone the repo. then check the following link to change whatever you want
sadly, no. that'll be a lot of work to create an "engine" that allows all different options available for store to be crawled. as some websites requires multiple steps too. so each store must be done manually by someone. but you can always make a PR for a store and i will happily merge it, and if you need any help regarding PR, feel free to dm on discord too. |
i have been testing DISABLE_AUTH and it seems working fine for me. can you try to run the following in the running container and check if it works.
|
ok, I'm trying but ran into another issue. lol I was logged into my user, tried clicking the logout item and it took me here: clicked "send anyway" and got this: ran the command anyway: restarted the container, loaded up https://discount-bandit.mydomain.com, and it redirected me to: https://discount-bandit.mydomain.com/login Curious, how does your app know which user's items/stuff to use when disable login is set to true/1? |
Also, it's not saving my "per page" choices between container restarts. Can that be fixed so it remembers those? |
probably the issue is the following:
it doesn't, the app is meant to be used by one user, you can add other users but all have access to everything. there are no roles, no restrictions, nothing.
not sure what you mean by that as for disable auth, i have no idea why it's not working, i need to investigate it more tbh. |
Are there plans on making it so individual users get their own stuff? I was hoping to add my mom for her own account to manage her own stuff. :)
This: 2 more new questions :) Is this supposed to look like this? and, is there a way we can test our apprise settings? Like, send a test notification via DB? |
not really since you're the first who requested it :D , but i'll add it to my todo list.
this is managed by the package i am using, i will see if there's a way to make it persistent or make it a cookie at least.
no, that was a bug from the package responsible, it's fixed in 3.4, but if you want a quick fix, run 'composer update' then 'php artisan optimize:clear'.
yes, you can run 'php artisan discount:test-notify' |
Didn't work, lol. Untitled.Project.mp4 |
hmm that's weird, that's how i fixed it on my instance. no issues, just give me some time until i push 3.4 and then it should be fine hopefully. |
I'm trying to give this app a try but having no luck. It always gets to this line:
hangs for quite awhile, then the container crashes/stops. Here's my compose, any ideas?
``
discount-bandit:
hostname: 'discount-bandit'
image: 'cybrarist/discount-bandit'
environment:
APP_TIMEZONE: 'America/Chicago'
APP_PORT: '80'
APP_URL: 'http://discount-bandit:80'
ASSET_URL: 'http://discount-bandit:80'
APP_ENV: 'production'
APP_DEBUG: 'false'
DB_CONNECTION: 'mysql'
DB_HOST: 'mariadb'
DB_DATABASE: 'discountbandit'
DB_PORT: '3306'
DB_USERNAME: 'bandit'
DB_PASSWORD: 'redacted'
MYSQL_ROOT_PASSWORD: 'redacted' # Why?
DEFAULT_USER: 'KC'
DEFAULT_EMAIL: '[email protected]'
DEAFULT_PASSWORD: 'redacted'
APPRISE_URL: 'apprise'
networks:
- 'misc'
- 'security'
- 'swag'
labels:
swag.uptime-kuma.enabled: "true"
swag.uptime-kuma.monitor.name: "Discount Bandit"
swag.uptime-kuma.monitor.url: "https://discountbandit.domain.rocks"
swag.uptime-kuma.monitor.description: "Best Price Finder"
swag.uptime-kuma.monitor.parent: "SHOPPING"
deploy:
mode: 'replicated'
replicas: 1
placement:
constraints:
- 'node.labels.Cloud == true'
restart_policy:
condition: 'any'
The text was updated successfully, but these errors were encountered: