I am trying to configure/start SonarQube with MySQL.
I installed everything including sonar DB and sonar user with proper permission.
when I browse 127.0.0.1/sonar, I get 'under maintenance'.
when I browse to /setup to upgrade, I get this message
Database connection cannot be established. Please check database status and JDBC settings.
here is my config
jdbc.default.driverClassName=com.mysql.jdbc.Driver
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
jdbc.default.username=sonar
jdbc.default.password=hpP#ssw0rd
Fail to execute database migration: org.sonar.db.version.v60.AddUuidPathColumnToProjects
java.lang.IllegalStateException: Fail to execute ALTER TABLE projects ADD (uuid_path VARCHAR (1500) NULL)
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate column name 'uuid_path'
2017.02.15 10:43:05 ERROR web[][o.s.s.p.d.m.PlatformDatabaseMigration] DB Migration or container restart failed. Process ended with an exception
org.jruby.exceptions.RaiseException: (StandardError) An error has occurred, all later migrations canceled:
Fail to execute database migration: org.sonar.db.version.v60.AddUuidPathColumnToProjects
Related
hoping to get help with possibly a silly problem. I can't get Symfony to connect to the correct database.
My config line in .env is as follows
DATABASE_URL="mysql://root:root#127.0.0.1:3306/main?serverVersion=mariadb-10.4.27"
Creating a database using CLI works just fine and the database named "main" is created
bin/console doctrine:database:create
Created database `main` for connection named default
Running migration works OK and a table is created in the database
bin/console doctrine:migrations:migrate
WARNING! You are about to execute a migration in database "main" that could result in schema changes and data loss. Are you sure you wish to continue? (yes/no) [yes]:
> yes
[notice] Migrating up to DoctrineMigrations\Version20230117183120
[notice] finished in 28.6ms, used 22M memory, 2 migrations executed, 3 sql queries
Yet, when I try to access the site from the browser I get the following error
An exception occurred in the driver: SQLSTATE[HY000] [1049] Unknown database 'root'
Clearing the cache doesn't seem to help, I don't see any reference in the code to a database named root. Any clues on how to make Symfony to connect to the "main" database?
Cheers
P.
I am a beginner to sailpoint and currently using identityiq and I am unable to connect to identityiq homepage. Probable reason is that my tomcat is unable to connect to Mysql server.
MYSQL hosted on default port 3306.
Tomcat on default port 8080
However, when I try to connect DB using Workbench I was able to and could create the table using the CREATE Table scripts on IDENTITYIQ database schema.
I see the MYSQL server running in services.
I run the IIQ CONSOLE in the webapps and get this error:
D:\Apache Software Foundation\apache-tomcat-9.0.20\webapps\identityiq\WEB-INF\bin>iiq console
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'versionChecker' defined in class path resource [configBeans.xml]: Initialization of bean failed; nested exception is java.lang.RuntimeException: Unable to check IdentityIQ database version: Cannot create PoolableConnectionFactory (Could not create connection to database server.)
In the browser I get this connection failure error
HTTP Status 404 – Not Found
Type Status Report
Message /identityiq
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/9.0.20
What is your version of MySQL? and IIQ version. If your MySQL db version is 8.0.11 then the out of the box MySQL driver that is shipped with IIQ may not be compatible with MySQL db. Check this blog which refers to similar issue. You may need to manually create IIQ and Identity Plugin users and grant privileges - commands are also available in the above blog.
I am trying to migrate my data from SQL Server to Oracle through SSIS.A simple package has been created for this particular task which is working completely fine on my local machine. But when I am trying to deploy it on server using config file it is not able to acquire the Oracle connection and failing with below Error:
[Execute SQL Task] Error: Failed to acquire connection "TargetDB". Connection may not be configured correctly or you may not have the right permissions on this connection.
Can anyone help please.
I have checked the permission of account and it is having read/write access.
Also tried validating the package using config file and it is successful. Only when the job runs I face this error.
I am trying to generateChangeLog for a db on a percona server, i get the below error when i try to do so.
Starting Liquibase at Wed, 05 Dec 2018 22:34:37 EST (version 3.6.2 built at
2018-07-03 11:28:09)
Unexpected error running Liquibase: liquibase.exception.DatabaseException:
liquibase.exception.UnexpectedLiquibaseException: Error during testing for
MySQL/MariaDB JDBC driver bug: could not retrieve JDBC metadata information
for temporary table 'TMP_XDBOCVCKWHSQYXKP'
liquibase.exception.LiquibaseException:
liquibase.command.CommandExecutionException:
liquibase.exception.DatabaseException:
liquibase.exception.UnexpectedLiquibaseException: Error during testing for
MySQL/MariaDB JDBC driver bug: could not retrieve JDBC metadata information
for temporary table 'TMP_XDBOCVCKWHSQYXKP'
at liquibase.integration.commandline.Main.doMigration(Main.java:1043)
at liquibase.integration.commandline.Main.run(Main.java:191)
at liquibase.integration.commandline.Main.main(Main.java:129)
Caused by: liquibase.command.CommandExecutionException:
liquibase.exception.DatabaseException:
liquibase.exception.UnexpectedLiquibaseException: Error during testing
for MySQL/MariaDB JDBC driver bug: could not retrieve JDBC metadata
information for temporary table 'TMP_XDBOCVCKWHSQYXKP'
I am trying to use it via command line using below statement
liquibase --driver=com.mysql.cj.jdbc.Driver --classpath=C:/liquibase-3.6.2-
bin/jars/mysql-connector-java-8.0.13.jar --changeLogFile=db.changelog-
1.0.xml --url="jdbc:mysql://REMOTE_SERVER_IP:3306/DB_NAME?
autoReconnect=true" --username=USER_NAME --password=PASSWORD --logLevel=info
generateChangeLog
Has anyone encountered this issue before? I tried using the old and new JDBC drivers but did not help.
I hit the same issue. Setting the logLevel to debug you could see that Liquibase was creating and dropping a temporary table. That temporary table seemed to cause the issue.
I was able to work-around this issue by using MySQL Workbench to copy the schema to a regular MySQL instance then running generateChangeLog from there.
I'm trying to run
liquibase update
on a database that doesn't exist yet. I would expect it to create the database for me (I'm running with root, so it shouldn't be a problem), but instead I'm getting:
/vagrant/liquibase$ ./liquibase update
Liquibase Home is not set.
Liquibase Home: /vagrant/liquibase
Liquibase update Failed: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'test_project'
Connection url parameters to the rescue again!
url: jdbc:mysql://localhost/dev_project?allowMultiQueries=true&createDatabaseIfNotExist=true
the createDatabaseIfNotExist=true part did the trick