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

absence of perl should fail the build #38

Open
gdogaru opened this issue Sep 9, 2014 · 6 comments
Open

absence of perl should fail the build #38

gdogaru opened this issue Sep 9, 2014 · 6 comments

Comments

@gdogaru
Copy link

gdogaru commented Sep 9, 2014

Mysql fails to start with the last version.

  1. as is it does not create the data folder in mysql-data (data folder in configuration)
  2. If I manually create the folder I get: Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
@yegor256
Copy link
Member

yegor256 commented Sep 9, 2014

So, previous version (which one?) works fine?

@gdogaru
Copy link
Author

gdogaru commented Sep 10, 2014

The version I managed to get working was 0.6.1. but that worked only randomly, haven't figured out why. The database was getting shut down after start, but the step was considered successful and the tests started to run, and then began to fail because the db was shutting down.

It seems I misread the documentation. I needed to install perl.
Now with perl installed I get another error. Also, could you fail the build if the perl script does not run successful, or if the connection to db fails ? Now there is an error message logged but the build continues.

Below is the error log. I use version 0.8.1, windows 8, mysql.classifier=windows-amd64

[INFO] $ perl C:....\smoke-test\target\mysql-dist\scripts\mysql_install_db.pl --defaults-file=C:....\smoke-test\target\mysql-data\my-default.cnf --force --innodb_use_native_aio=0 --datadir=C:....\smoke-test\target\mysql-data\data --basedir=C:....\smoke-test\target\mysql-dist
[INFO] >> FATAL ERROR: Could not find my-default.cnf
[INFO] >>
[INFO] >> If you compiled from source, you need to run 'make install' to
[INFO] >> copy the software into the correct location ready for operation.
[INFO] >>
[INFO] >> If you are using a binary release, you must either be at the top
[INFO] >> level of the extracted archive, or pass the --basedir option
[INFO] >> pointing to that location.
[INFO] >>

@yegor256
Copy link
Member

@gdogaru good point about perl, we definitely need to fix that. I'll take a look at it soon!

@yegor256 yegor256 changed the title 0.8.1 fails to start mysql absence of perl should fail the build Sep 10, 2014
@gdogaru
Copy link
Author

gdogaru commented Sep 11, 2014

any ideas about the error I get?

@yegor256
Copy link
Member

oops, I thought the problem is solved already.. let's leave this ticket alone - it is about Perl. please, create a new one, with a full explanation of the problem and your pom.xml. I'll try to reproduce it and fix

@yegor256 yegor256 added the bug label Oct 23, 2014
@dmarkov
Copy link

dmarkov commented Oct 23, 2014

I'll find a developer for the task soon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants