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

failure to connect to mariadb during docker-compose #75

Open
JarEXE opened this issue Feb 21, 2020 · 5 comments
Open

failure to connect to mariadb during docker-compose #75

JarEXE opened this issue Feb 21, 2020 · 5 comments

Comments

@JarEXE
Copy link

JarEXE commented Feb 21, 2020

Hi, I'm trying to get the software running.
After running docker-compose up i see the following errors
sis-mysql | ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'root'@'%'

and then sis-bulk-upload_1 | Trying to connect to mariadb at 172.18.0.3. Attempt 17

Could you please advise?

see screenshot.

Screenshot from 2020-02-21 15 12 21

@janithRS
Copy link
Member

The issue is fixed [moe-lk/bulk-upload/pull/167] in this. Please follow the instructions on the .env.example file.

@Fuseteam
Copy link

@janithRS i assume it's not just rename to .env? i'm confused could you elaborate?

sis-bulk-upload_1  | Loading composer repositories with package information
sis-bulk-upload_1  | Installing dependencies (including require-dev) from lock file
sis-bulk-upload_1  | Nothing to install or update
sis-bulk-upload_1  | Package laracademy/model-generator is abandoned, you should avoid using it. Use laracademy/generators instead.
sis-bulk-upload_1  | Generating optimized autoload files
sis-bulk-upload_1  | > Illuminate\Foundation\ComposerScripts::postAutoloadDump
sis-bulk-upload_1  | > @php artisan package:discover --ansi
sis-bulk-upload_1  | The environment file is invalid!
sis-bulk-upload_1  | Failed to parse dotenv file due to an invalid name. Failed at [<html lang].
sis-bulk-upload_1  | Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
sis_sis-bulk-upload_1 exited with code 1

@janithRS
Copy link
Member

Have you tried getting a pull? Most of the time the above error will appear due to the .env file. Since earlier we had no .env file in the repo. (Edit the db config if needed)

@Fuseteam
Copy link

Fuseteam commented Mar 2, 2020

@janithRS a pull from the repo? yes that was a fresh pull

@Fuseteam
Copy link

Fuseteam commented Mar 2, 2020

having tried a clean repo and a clean image for completeness, the original error is back
this may or may not be related to

sis-mysql          | 2020-03-02 12:34:01+00:00 [Note] [Entrypoint]: Creating database openemis
sis-mysql          | 2020-03-02 12:34:01+00:00 [Note] [Entrypoint]: Creating user root
sis-mysql          | ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'root'@'%' sis-mysql exited with code 1

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

3 participants