-
Notifications
You must be signed in to change notification settings - Fork 82
Cannot build embeddedmysql on Jenkins while local could work #129
Comments
@Terryyangty - do you have mysql user on jenkins machine or prior/running mysql installation? |
I don’t think so. I don’t think I could install it on Jenkins machine as it
is restricted. We don’t need to install it to run embeddedmysql right?
…On Tue, Feb 6, 2018 at 11:30 PM Vilius Lukošius ***@***.***> wrote:
@Terryyangty <https://github.com/terryyangty> - do you have mysql user on
jenkins machine or prior/running mysql installation?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#129 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGMbWz5bMKLPfE_ORH3uRce9N_4qjqwWks5tSVEugaJpZM4R8Ej_>
.
|
No, mysql being installed on target machine ususally just causes issues - users present, some config files lying around. and mysql is trying to help you so detects stuff from outside of its cwd and then we have issues like this. I'm not really sure about your immediate issue, but could you check if mysql user is present on jenkins machine? I saw on the internets that it can cause issues and maybe mysql install script just autodetects it and tries to run under If you could check it I will see if I can disable this behavior. |
Hi guys, sorry to jump in late. I'm seeing the same issue when attempting to run tests on Jenkins with the embedded database. There is no issue running the unit tests locally, and no MySQL installation on Jenkins as far as I am aware. Log below:
|
I could build the EmbeddedMySql on my local machine.
My version is v5_6_latest.
But when I submit to Jenkins the build failed with following errors:
'
writeToMySQLDB(com.hulu.cia.spark.vortexrecovery.Utils.UpdateRecoveryStateTest) Time elapsed: 20.244 sec <<< ERROR!
java.lang.RuntimeException: Command exited with error code: '141' and output: 'Use of uninitialized value in chown at scripts/mysql_install_db line 705.
Use of uninitialized value in chown at scripts/mysql_install_db line 705.
Installing MySQL system tables...Use of uninitialized value in chown at scripts/mysql_install_db line 705.
Use of uninitialized value in chown at scripts/mysql_install_db line 705.
Use of uninitialized value in chown at scripts/mysql_install_db line 705.
Use of uninitialized value in chown at scripts/mysql_install_db line 705.
2018-02-06 18:45:06 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-02-06 18:45:06 0 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
2018-02-06 18:45:06 0 [Note] /var/jenkins/workspace/CIA_vortex-recovery_CI-QVWGF2RJD5NLT3X3JECKKEPWDSEFKIR33IVXWENJMOZOM7ZNF4JA/target/mysql-5.6-aed009f2-9fa2-4a59-8c85-f6ac6fe164a3/bin/mysqld (mysqld 5.6.36) starting as process 9919 ...
2018-02-06 18:45:06 9919 [ERROR] Fatal error: Can't change to run as user 'mysql' ; Please check that the user exists!
2018-02-06 18:45:06 9919 [ERROR] Aborting
2018-02-06 18:45:06 9919 [Note] Binlog end
2018-02-06 18:45:07 9919 [Note] /var/jenkins/workspace/CIA_vortex-recovery_CI-QVWGF2RJD5NLT3X3JECKKEPWDSEFKIR33IVXWENJMOZOM7ZNF4JA/target/mysql-5.6-aed009f2-9fa2-4a59-8c85-f6ac6fe164a3/bin/mysqld: Shutdown complete
'
I'm not sure what could be the issue but I'm guessing it should be part Can't change to run as user 'mysql'. Any one have an idea?
The text was updated successfully, but these errors were encountered: