Skip to content
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

Probleme beim Einrichten einer neuen Installation #264

Closed
dtoenies opened this issue Nov 9, 2016 · 3 comments
Closed

Probleme beim Einrichten einer neuen Installation #264

dtoenies opened this issue Nov 9, 2016 · 3 comments
Labels
type: bug Something's wrong

Comments

@dtoenies
Copy link

dtoenies commented Nov 9, 2016

Hallo zusammen,
ich versuche gerade die Urlaubsverwaltung zum ersten mal auf einem Server einzurichten. Folgende Umgebung ist vorhanden:

  • Ubuntu 16.04 full patched
  • JDK 8
  • MySQL 5.7

Ich habe die Datei application.properties bearbeitet um den Server mit MySQL und einem LDAP zu verbinden. Leider kommt beim Start folgende Exception:
urlaubsverwaltung exception.txt

Hier die Konfigurationsdatei:
application.properties.txt

Wenn ich nun in die Datenbank schaue, sind auch etliche Tabellen vorhanden. In der Tabelle "DATABASECHANGELOG" habe ich jedoch nichts passendes zu "remove_duplicated_accounts" gefunden.
Das Starten im Dev-Modus hat ohne Probleme funktioniert.

Kann mir da jemand weiterhelfen?

@honnel honnel added type: bug Something's wrong technical labels Nov 11, 2016
@honnel
Copy link
Contributor

honnel commented Nov 11, 2016

Da hat sich in der aktuellen MySQL Versionen (seit 5.7.5) etwas geändert an der Konfiguration von MySQL selbst. Hier ist folgende Einstellung aktiv:

sql_mode=only_full_group_by

Der Workaround direkt sollte folgende Einstellung an der MySQL Config sein: http://stackoverflow.com/a/36033983

Allerdings handelt es sich auf alle Fälle um einen Bug der behoben werden muss.

Mehr Infos hier:
https://www.sitepoint.com/quick-tip-how-to-permanently-change-sql-mode-in-mysql/

@dtoenies
Copy link
Author

Ich habe folgenden Code ausgeführt und es scheint zu funktionieren:
mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

Vielen Dank!

@honnel
Copy link
Contributor

honnel commented Nov 18, 2016

Prinzipiell geht es um folgende Schema-Migration welche mit einer aktuellen MySQL Version nicht mehr funktioniert: https://github.com/synyx/urlaubsverwaltung/blob/master/src/main/resources/dbchangelogs/changelog-2.13.1-remove-duplicated-accounts.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something's wrong
Projects
None yet
Development

No branches or pull requests

2 participants