[CONJ-784] cant start MariaDB in a junit Created: 2020-04-21  Updated: 2020-05-18  Resolved: 2020-05-18

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Liat Dremer Assignee: Diego Dupin
Resolution: Won't Fix Votes: 0
Labels: None


 Description   

I am using java - tests stoped working suddenly and i dont know how to reset the state

<dependency>
<groupId>ch.vorburger.mariaDB4j</groupId>
<artifactId>mariaDB4j</artifactId>
<version>2.4.0</version>
<scope>test</scope>
</dependency>

ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
Caused by: ch.vorburger.exec.ManagedProcessException:
Program [/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql_install_db, --datadir=/private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/data/50075, --basedir=/private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve] (in working directory /var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base) failed, exitValue=1, last 100 lines of console:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/my_print_defaults
Reason: image not found
Installing MariaDB/MySQL system tables in '/private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/data/50075' ...
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysqld
Reason: image not found
/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql_install_db: line 454: 2670 Abort trap: 6 "$mysqld_bootstrap" $defaults "$mysqld_opt" -bootstrap $silent_startup "basedir=$basedir" "-datadir=$ldata" --log-warnings=0 --enforce-storage-engine="" $args --max_allowed_packet=8M --net_buffer_length=16K

Installation of system tables failed! Examine the logs in
/private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/data/50075 for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysqld --skip-grant --general-log &

and use the command line tool /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/base/bin/mysql -u root mysql
mysql> show tables;

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /private/var/folders/vf/5c2l0vjd6sl10hsqq0q9m_j5drnh_c/T/MariaDB4j/data/50075 that may be helpful.

The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/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



 Comments   
Comment by Jochen Wiedmann [ 2020-05-16 ]

You are using the wrong bug tracker. This one is about the MariaDB Connector/J, but you appear to be using MariaDB4J. Any issues regarding the latter should be reported as a GitHub issue.

Comment by Diego Dupin [ 2020-05-18 ]

wrong bugtracker as indicated. please report at https://github.com/vorburger/MariaDB4j/issues

Generated at Thu Feb 08 03:18:17 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.