I'm trying to upgrade an Artifactory server but it seems to fail due to a DB conversion error.
2021-06-23T08:05:01.538Z [jfrt ] [WARN ] [ae0b35be4a9501f6] [o.j.s.u.DbStatementUtils:62 ] [ocalhost-startStop-2] - Failed to execute query: ERROR: syntax error at or near "UNLOGGED"
Position: 35:
ALTER TABLE distributed_locks SET UNLOGGED
2021-06-23T08:05:01.544Z [jfrt ] [ERROR] [ae0b35be4a9501f6] [.s.d.v.c.DbSqlConverterUtil:94] [ocalhost-startStop-2] - Could not convert DB using v225_alter_distributed_locks_set_unlogged converter due to ERROR: syntax error at or near "UNLOGGED"
Position: 35
org.postgresql.util.PSQLException: ERROR: syntax error at or near "UNLOGGED"
Position: 35
We are trying to upgrade from version 6.12.0 to the latest 7.19.9 (current latest).
Updates to later 6.x work ok...i'm currently up to 6.23.21 and attempts to 7.16.3 and 7.19.9 show the same DB migration error.
Attempts to update from earlier 6.x versions to other supported 7.x versions also show the same error.
We're running RHEL 7.9 and using RPM based installations...let me know if any more info is needed.
Any help is appreciated!
Artifactory 7.19 supports Postgresql 9.5 and higher.
UBLOGGED table is supported since Postgresql 9.1, however ALTER table SET UNLOGGED is supported since Postgresql 9.5
Related
Backend works correct. Problem is only on frontend with additionally Login Form on custom login site.
I getting 503 error after trying login by "Login Panel". It doesn't matter right or wrong login data.
I turned off the redirect on backend but I still get this same error with log below:
Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1064: An exception occurred while executing a query: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')))) AND (fe_users.deleted = 0)' at line 1 | Doctrine\DBAL\Exception\SyntaxErrorException thrown in file /public/my_site_name/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php in line 86. Requested URL: https://my-domain-name.pl/login?tx_felogin_login%5Baction%5D=login&tx_felogin_login%5Bcontroller%5D=Login&cHash=9238b3d3ba4dbeb2c75d778a5cd1f17b
I know it is probably cause by third party extension like bootstrap (bk2k). But I don't believe I need to rewrite manual syntax in my mariadb. it's ridiculous.
Im checked requirements for this version of TYPO3. And my requirements are ok. Im checked my database (MariaDB) by mysqlcheck and all is ok. Checked version of MariaDB and its ok.
Im beginner in TYPO3 so please be understanding.
root#database-deb:/home/marlon# mysql -V
mysql Ver 15.1 Distrib 10.7.3-MariaDB, for debian-linux-gnu (x86_64) using readline EditLine wrapper
I looked in wrong places. On TYPO3 site you can see:
System requirements PHP 8.1 MariaDB 10.3+ / MySQL 8.0+ / PostgreSQL
10.0+ / SQLite 3.8.3+
but if you see details:
Requirements on TYPO3 site
MariaDB >= 10.3.0 <= 10.6.99 is not the same MariaDB 10.3+
I guess, due to incompatible version of mariadb...
A few hours later... I create new one VM with older MariaDB.
root#mariadb-10-6:/home/marlon# mysql -V
mysql Ver 15.1 Distrib 10.6.11-MariaDB, for debian-linux-gnu (x86_64) using readline EditLine wrapper
Nothing changed. Still same error.
I've upgraded two instances of Artifactory to 6.9.0 version. One of them works without issue(OpenJDK 1.8.131 on centos 7.4), but I see error in the artifactory.log on another instance(OpenJDK version "1.8.0_151" on OEL 6.9):
2019-04-11 08:10:49,379 [art-exec-15] [ERROR] (o.a.s.a.ArchiveIndexerImpl:162) - Failed to index 'repository-name:com/service/service/0.14.2.1154/service-0.14.2.1154.jar': Unexpected record signature: 0X622F2123
I've tried to switch artifactory to Oracle JDK 1.8.0_121 and OpenJDK 11.0.2 - it didn't help.
p.s.
REST API and Artifactory GUI return artifacts without any issue.
The issue isn't reproduced on small jars without dependencies.
My current version of Artifactory Pro 6.5.2. I can upgrade incrementally from 6.5.2 to 6.5.9 to 6.0.0. If I try to upgrade beyond 6.0.0, I receive a 404 error when attempting to access Artifactory.
HTTP Status 404 – Not Found
Type Status Report
Message /artifactory/webapp/
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat/8.5.32
I see the following errors in /var/opt/jfrog/artifactory/logs/catalina/catalina.out
Failed to ensure db table 'master_key_status' exists
Error creating bean with name 'accessJdbcHelperImpl': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Could not initialize database: Not supported
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/access]]
The database I'm using is MySQL
mysql Ver 15.1 Distrib 5.5.60-MariaDB, for Linux (x86_64) using readline 5.1
Has any encountered a similar issue when upgrading Artficatory Pro?
Thanks
Just marking down the answer.
The issue was with the JDBC driver version of the Maria DB.
One more update done by you was adding the timezone value.
While running migration through flyway command line in Jenkins I am getting below error:
ERROR: Unexpected error org.flywaydb.core.api.FlywayException:
Validate failed: Detected applied migration not resolved locally:
12.0.4
Currently I am trying to run 20.0.1 which is lagtest version and earlier versions are not present in the files location.
I observed by the info that there are applied higher versions than 12.0.4(which is base version) on DB which are in missing state.
Can anyone help me why this error is occurring and how to resolve this?
I am trying to open the "Extension Activity" database from Google Chrome and kept getting this error. I get the same error with sqlite3, sqliteman and sqlitebrowser. Which is odd because I am able open and query the Cookies DB. I am using Chrome 59 on Linux with Ubuntu 14.04 and sqlite 3.8.2.
Error: malformed database schema (MmapStatus) - near "(": syntax error
The version Google Chrome 59 is using is newer than my version. I was able to open and query it by downloading latest "Precompiled binaries for Linux" here https://www.sqlite.org/download.html.