Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fail to start after mariadb upgrade from 10 to 11 #173

Open
rstanonik opened this issue Mar 19, 2024 · 8 comments
Open

fail to start after mariadb upgrade from 10 to 11 #173

rstanonik opened this issue Mar 19, 2024 · 8 comments

Comments

@rstanonik
Copy link

We're running v3.3.1. We recently upgraded our mariadb from 10.3.39, to 11.3.2 and now Archivesspace fails to start.
I can connect to the db from the archivesspace server using the mysql cli.
Any thoughts?
Thanks
Ron

Specifics about our set up and the first part of the error in the logs And the diagnostic trace is included.

archivesspace-v3.3.1
openjdk version "1.8.0_402"
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
aspace_diagnostic_1710863787.txt

ArchivesSpaceThreadDump: Touch the file '/usr/local/archivesspace-v3.3.1/thread_dump_backend.txt' to trigger a thread dump
I, [2024-03-19T08:56:27.402961 #1465273] INFO -- : Thread-2002: Connecting to database: jdbc:mysql://lib-mariadb-dev.ucsd.edu:3306/archivesspace?user=[REDACTED]&password=[REDACTED]&useUnicode=true&characterEncoding=UTF-8. Max connections: 28
E, [2024-03-19T08:56:27.643013 #1465273] ERROR -- : Thread-2002: DB connection failed: Java::JavaSql::SQLException: java.lang.NullPointerException
E, [2024-03-19T08:56:27.643769 #1465273] ERROR -- : Thread-2002: Additional DB info: java.sql.SQLException: java.lang.NullPointerException: java.lang.NullPointerException
E, [2024-03-19T08:56:27.644634 #1465273] ERROR -- : Thread-2002: Additional DB info: java.lang.NullPointerException:
========================================================================
A trace file has been written to the following location: /usr/local/archivesspace-v3.3.1/data/tmp/aspace_diagnostic_1710863787.txt

@trevorthornton
Copy link
Contributor

trevorthornton commented Mar 19, 2024 via email

@rstanonik
Copy link
Author

Thanks! We'll try that.

@rstanonik
Copy link
Author

Alas, that didn't fix it. Now I'm trying to turn on more logging/debugging.

@rstanonik
Copy link
Author

We also tried disabling SSL on the mariadb server.

@trevorthornton
Copy link
Contributor

trevorthornton commented Mar 19, 2024 via email

@rstanonik
Copy link
Author

Thanks. I did restart. I used tcpdump to watch network traffic to/from port 3306 (mysql) and it was in clear text. When I started AS, I could see it connect to mysql, get some kind of collation info, then download some info about our items. It did that a second time. Although it was running at that point, it wasn't listening on 8080, so no user interface. The last thing in the AS log is

You're seeing this error because you use JRuby::Rack::ErrorApp::ShowStatus.

We're rolling the DB back to 10 to see if that still works.

@rstanonik
Copy link
Author

Rolling mariadb back to 10 works.

Tried a fresh install of 3.3.1 (our current version) and 3.5.0 with mariadb 11. Both fail during setup-database.sh.

Loading ArchivesSpace configuration file from path: /usr/local/archivesspace/./c
onfig/config.rb
Sequel::DatabaseConnectionError: Java::JavaSql::SQLException: java.lang.NullPoin
terException
make_new at /usr/local/archivesspace/gems/gems/sequel-5.9.0/lib/seque
l/connection_pool.rb:143

So, something about mariadb 11 doesn't play well with Archivesspace. We're guessing something to do with utf8 handling. We tried some variants in AppConfig[:db_url] and in the DB creation, but no joy.

@rstanonik
Copy link
Author

I updated the mysql connector (5.1.26 to 5.1.47) and seems to be working now

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants