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

Container hangs, on startup #37

Open
YouveGotMeowxy opened this issue Jan 18, 2025 · 6 comments
Open

Container hangs, on startup #37

YouveGotMeowxy opened this issue Jan 18, 2025 · 6 comments

Comments

@YouveGotMeowxy
Copy link

I'm trying to give this app a try but having no luck. It always gets to this line:

Downloading spatie/laravel-feed (4.4.0)

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'

@Cybrarist
Copy link
Owner

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 :

  • you don't need to pass port 80 to app_url and asset_url as it's the default for http.
  • 'MYSQL_ROOT_PASSWORD' is not needed, where did you get it from ?

@YouveGotMeowxy
Copy link
Author

Tyvm for such a fast response :)

it seems that it gets stuck while downloading some packages, can you make sure you have enough space

Plenty of space; I have a 12 TB HDD.

also check is it timing out or just crashes.

Is there another way for me to be able to tell? All I see in the log is this:

^--- etc.

  - Downloading spatie/laravel-health (1.31.0)
  - Downloading shuvroroy/filament-spatie-laravel-health (v2.3.1)
  - Downloading spatie/laravel-feed (4.4.0)
    Container stopped

  • 'MYSQL_ROOT_PASSWORD' is not needed, where did you get it from ?

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

some extra points :

  • you don't need to pass port 80 to app_url and asset_url as it's the default for http.

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.

@YouveGotMeowxy
Copy link
Author

Another quick question; does this container accept docker secrets in it's compose?

@YouveGotMeowxy
Copy link
Author

YouveGotMeowxy commented Jan 19, 2025

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?

WARN Please adjust the OCTANE_SERVER environment variable.

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?

@YouveGotMeowxy
Copy link
Author

Also, sorry for so many comments, but while messing with all this I noticed something. Is this logo size intended to be so small? I removed the size restriction and it looks so much better, lol.

Image

@YouveGotMeowxy
Copy link
Author

aaaaaand DISABLE_AUTH: 1 isn't working ...

I still get the login form.

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

2 participants