-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Missing 32bit Linux mariadb (An error occurred while installing the database on Linux but not on windows) #29
Comments
Hi @florentbo That's curious... the root cause seems to be 'word unexpected (expecting ")"' ? This works in tests, and for other users, so I'm not sure what's going on here.. I've noticed that this is on v2.1.3 - would you mind to try the latest development SNAPSHOT by building yourself, and see if by chance that works for you? You should be able to do that in 3' by just doing:
|
Hi @vorburger , the problem is still the same with the same with the 2.2.0-SNAPSHOT tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. T E S T SRunning ch.vorburger.mariadb4j.tests.DBConfigurationBuilderTest Results : Tests run: 16, Failures: 0, Errors: 0, Skipped: 1 [INFO] tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. tag on the next line. T E S T SResults : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] T E S T SResults : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] T E S T SResults : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] T E S T SRunning ch.vorburger.mariadb4j.tests.MariaDB4jServiceTest Installation of system tables failed! Examine the logs in The problem could be conflicting information in an external
You can also try to start the mysqld daemon with:
and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql
Try 'mysqld --help' if you have problems with paths. Using The latest information about mysql_install_db is available at Please check all of the above before mailing us! And remember, if Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager prepareTestInstance Installation of system tables failed! Examine the logs in The problem could be conflicting information in an external
You can also try to start the mysqld daemon with:
and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql
Try 'mysqld --help' if you have problems with paths. Using The latest information about mysql_install_db is available at Please check all of the above before mailing us! And remember, if Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.953 sec <<< FAILURE! Installation of system tables failed! Examine the logs in The problem could be conflicting information in an external
You can also try to start the mysqld daemon with:
and use the command line tool /tmp/MariaDB4j/base/bin/mysql
Try 'mysqld --help' if you have problems with paths. Using The latest information about mysql_install_db is available at Please check all of the above before mailing us! And remember, if Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager prepareTestInstance Installation of system tables failed! Examine the logs in The problem could be conflicting information in an external
You can also try to start the mysqld daemon with:
and use the command line tool /tmp/MariaDB4j/base/bin/mysql
Try 'mysqld --help' if you have problems with paths. Using The latest information about mysql_install_db is available at Please check all of the above before mailing us! And remember, if Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.409 sec <<< FAILURE! Installation of system tables failed! Examine the logs in The problem could be conflicting information in an external
You can also try to start the mysqld daemon with:
and use the command line tool /tmp/MariaDB4j/base/bin/mysql
Try 'mysqld --help' if you have problems with paths. Using The latest information about mysql_install_db is available at Please check all of the above before mailing us! And remember, if Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager prepareTestInstance Installation of system tables failed! Examine the logs in The problem could be conflicting information in an external
You can also try to start the mysqld daemon with:
and use the command line tool /tmp/MariaDB4j/base/bin/mysql
Try 'mysqld --help' if you have problems with paths. Using The latest information about mysql_install_db is available at Please check all of the above before mailing us! And remember, if Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.222 sec <<< FAILURE! Installation of system tables failed! Examine the logs in The problem could be conflicting information in an external
You can also try to start the mysqld daemon with:
and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql
Try 'mysqld --help' if you have problems with paths. Using The latest information about mysql_install_db is available at Please check all of the above before mailing us! And remember, if Sep 03, 2015 6:34:47 PM org.springframework.test.context.TestContextManager prepareTestInstance Installation of system tables failed! Examine the logs in The problem could be conflicting information in an external
You can also try to start the mysqld daemon with:
and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql
Try 'mysqld --help' if you have problems with paths. Using The latest information about mysql_install_db is available at Please check all of the above before mailing us! And remember, if Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.031 sec <<< FAILURE! Results : Tests in error: Tests run: 10, Failures: 0, Errors: 7, Skipped: 0 [INFO] ------------------------------------------------------------------------ Process finished with exit code 1 |
@florentbo I'm unclear about what could be different on YOUR ;-) Linux .. note e.g. on https://travis-ci.org/vorburger/MariaDB4j how it certainly does seem to build on Linux "normally" - what may be different on yours? Note that I fixed https://github.com/vorburger/MariaDB4j/issues/30 today, which resolved an issue with a vaguely similar error message than yours above, that one had something to do with having spaces in directories - which it doesn't look like you have? |
@florentbo do you still have this problem? No offense taken if I close this? |
The same error occurred to me when i tried in Windows. |
I too encountered this error on a 32-bit Linux system. I notice the database binaries that get installed (my_print_defaults, mysql, mysqlcheck, mysqld) are 64-bit. |
@florentbo I still don't know what could be causing the @meta-coder currently it only includes a 64bit binary for Linux. You contribution with a Linux 32 bit binary would be most welcome! If interested, please note the new section on the README re. DB upgrades on https://github.com/vorburger/MariaDB4j/blob/master/README.md#mariadb-database-jars-and-version-upgrades (just introduced in 4c2da73). @jabs76 I believe your problem in Windows may be different to what this issue is about. Are you sure you saw the EXACT same error, as shown above? Also with the |
You get this error (/tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected) when it tries to run 64 bit mysqld binary on 32 bit Linux. |
Closing this very old issue now, to clean up the list. (There is no concrete action left to "do" here.) |
I got the same issue. How to deal with this? :( |
Someone (you?) would have to contribute 32 bit Linux MariaDB4j binaries to this project. |
where can i add the binaries file?i need for armhf too because it will be embedded in raspberry. I already zip all the binaries needed for raspberry, can i just email the files? |
see https://github.com/vorburger/MariaDB4j#mariadb-database-jars-and-version-upgrades take inspiration from #235 for #230
No, you would have to raise a PR. But this issue is re. 32bit Windows; let's use #298 re. ARM. |
On windows this class is working, but not on linux:
@SpringBootApplication
public class BootMariaScriptApplication implements CommandLineRunner {
22:03:14.728 [main] ERROR o.s.boot.SpringApplication - Application startup failed
java.lang.IllegalStateException: Failed to execute CommandLineRunner
at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:675) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:690) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at be.florentbo.maria.BootMariaScriptApplication.main(BootMariaScriptApplication.java:17) [maria-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [maria-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:117) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:68) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:83) ~[mariaDB4j-2.1.3.jar!/:na]
at be.florentbo.maria.BootMariaScriptApplication.run(BootMariaScriptApplication.java:38) [maria-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:672) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
... 11 common frames omitted
Caused by: ch.vorburger.exec.ManagedProcessException: Program /tmp/MariaDB4j/base/bin/mysql_install_db --datadir=/tmp/MariaDB4j/data/9306 --basedir=/tmp/MariaDB4j/base --no-defaults --force --skip-name-resolve (in working directory /tmp/MariaDB4j/base) failed, exitValue=1, last 100 lines of console:
/tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/9306' ...
/tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected
Installation of system tables failed! Examine the logs in
/tmp/MariaDB4j/data/9306 for more information.
The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:
You can also try to start the mysqld daemon with:
and use the command line tool /tmp/MariaDB4j/base/bin/mysql
to connect to the mysql database and look at the grant tables:
Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /tmp/MariaDB4j/data/9306 that may be helpful.
The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria
Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:279) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.exec.ManagedProcess.waitForExitMaxMsWithoutLog(ManagedProcess.java:397) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.exec.ManagedProcess.waitForExit(ManagedProcess.java:367) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.mariadb4j.DB.install(DB.java:114) ~[mariaDB4j-2.1.3.jar!/:na]
... 15 common frames omitted
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) ~[commons-exec-1.1.jar!/:1.1]
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:46) ~[commons-exec-1.1.jar!/:1.1]
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:188) ~[commons-exec-1.1.jar!/:1.1]
22:03:14.729 [main] INFO o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@134caa4: startup date [Fri Aug 28 22:03:10 CEST 2015]; root of context hierarchy
22:03:14.733 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Unregistering JMX-exposed beans on shutdown
The text was updated successfully, but these errors were encountered: