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

alpine fails to initialize #693

Closed
benbrummer opened this issue Jan 14, 2025 · 7 comments
Closed

alpine fails to initialize #693

benbrummer opened this issue Jan 14, 2025 · 7 comments

Comments

@benbrummer
Copy link
Collaborator

https://wiki.alpinelinux.org/wiki/MySQL

app-1     |    INFO  Loading stored database schemas.
app-1     |
app-1     |   database/schema/mysql-schema.sql .............................. 53.09ms FAIL
app-1     |
app-1     | In Process.php line 270:
app-1     |
app-1     |   The command "mysql  --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_L
app-1     |   OAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}
app-1     |   " --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed.
app-1     |
app-1     |   Exit Code: 1(General error)
app-1     |
app-1     |   Working directory: /var/www/app
app-1     |
app-1     |   Output:
app-1     |   ================
app-1     |
app-1     |
app-1     |   Error Output:
app-1     |   ================
app-1     |   mysql: Deprecated program name. It will be removed in a future release, use
app-1     |    '/usr/bin/mariadb' instead
@turbo124
Copy link
Member

shouldn't be failing on only a warning - we'll need to add mariadb-client instead?

@benbrummer
Copy link
Collaborator Author

It is already installing mariadb-client. But it is called with the name mysql. This will not be possible anymore in the future. Therefore the warning. So I think the artisan command needs to be modified. If we ignore the warning it will fail when mysql alias for mariadb is removed.

@turbo124
Copy link
Member

so this is upstream laravel issue?

@benbrummer
Copy link
Collaborator Author

benbrummer commented Jan 15, 2025

It fails at php artisan migrate
image

When passing --graceful

~ $ php artisan migrate --force --graceful

   INFO  Preparing database.

  Creating migration table ............................................................................................................ 32.89ms DONE

   INFO  Loading stored database schemas.

  database/schema/mysql-schema.sql .................................................................................................... 49.86ms FAIL

   WARN  The command "mysql --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_LOAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}" --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed. Exit Code: 1(General error) Working directory: /var/www/app Output: ================ Error Output: ================ mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead ERROR 2026 (HY000): TLS/SSL error: self-signed certificate in certificate chain .

@benbrummer
Copy link
Collaborator Author

benbrummer commented Jan 15, 2025

mariadb driver has been added laravel/framework@61db497
laravel/framework#50146
laravel/framework#52843

@turbo124
Copy link
Member

I'll update to the depedencies to 11.38

@benbrummer
Copy link
Collaborator Author

alpine image is pinned to 3.20 #689

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