Keine Projekte nach Import SQL

Deutschsprachiges Forum für Diskussionen und Fragen zu MantisBT

Moderators: Developer, Contributor

Post Reply
pelulu
Posts: 4
Joined: 20 Dec 2019, 14:52

Keine Projekte nach Import SQL

Post by pelulu »

Hallo liebe Forumsmitglieder,

Bin neu in diesem Forum und war bisher "nur" user von Mantis. Ich habe nun den Job gefasst um unser Mantis auf einen neuen Server zu zügeln und gleichzeitig ein neue Version von Mantis zu verwenden. Dies ohne Kenntnisse von Datenbanken, Webservern etc...

Aktueller Stand:
- Nach einigen Versuchen und Anpassungen, bin ich soweit, dass der SQL-Dump ohne Fehlermeldung eingelesen werden kann.
- Mittels phpMyAdmin ist ersichtlich, dass die Database "bugtracker" vorhanden ist und darin auch alle Projekte vorhanden sind. Zumindest zeigt der Inhalt von mantis_project_table, dass die Projekte vorhanden sind.
- Mittels Browser erfolgt der Zugriff auf Manits ohne Probleme. Einloggen geht und es werden auch keine Fehler angezeigt.

Problem:
- In Mantis werden keine Projekte angezeigt und die Datenbank scheint leer zu sein.


Sobald ich in config_inc.php die Einstellungen anpasse ( $g_db_table_plugin_prefix = 'mantis'; $g_db_table_suffix = 'mantis'; $g_db_table_prefix = ''; ), dann kann ich mich auch nicht mehr auf Mantis verbinden. Es werden Fehlermeldung angezeigt.


Alter Server:
- Mantis 1.25
- SQL export der Datenbank "bugtracker" erstellt

Neuer Server:
- Benötigte Umgebung mittels XAMP 7.3.12 erstellt
- Datenbank 10.4.10-Maria DB
- Apache Server
- Mantis 2.23.0 / Schema 210
- PHP-Version 7.3.12

Habt ihr Forumsmitglieder Ideen an was die liegen könnte und was ich noch prüfen kann?
Wird der SQL Dump nicht korrekt importiert oder liegt es an einer Einstellung von Mantis, dass die Projekte nicht angzeigt werden?

Vielend Dank für eure Unterstützung.

Gruss,
Lucien
atrol
Site Admin
Posts: 8353
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Keine Projekte nach Import SQL

Post by atrol »

Erhält man Warnungen oder Fehler beim Aufrufen des Skripts <MantisURL>/admin/check/index.php?

Enthalten die Log-Dateien des Webservers oder der Datenbank irgendwelche Warnungen oder Fehlermeldungen?

Werden in der Browserkonsole irgendwelche Warnungen oder Fehler ausgegeben?
Please use Search before posting and read the Manual
pelulu
Posts: 4
Joined: 20 Dec 2019, 14:52

Re: Keine Projekte nach Import SQL

Post by pelulu »

Wünsche schon mal allen eine guten Start ins neue Jahr.

Browserkonsole
********************
- Kann mich bei Manits einloggen.
- Es werden keine Fehler angezeigt. Nur Meldung, dass Standard-Administrator-Konto deaktiviert werden sollte oder Passwort geändert werden sollte.


Log Datenbank und Server
********************************
- Log Datenbank enthält keine Fehler. Nur einige Notes.
- Log AppacheServer keine Fehler ersichtlich.


Skritp index.php
*********************
Das Skript <MantisURL>/admin/check/index.php gibt zahlreiche Fehler betreffend Database aus:
- Table mantis_bug_file_table is using UTF-8 collation
- Table mantis_bug_file_table is using latin1_swedish_ci collation where UTF-8 collation is required. FAIL

Habe mittels phpMyAdmin > Operation auf der Database bugtracker die Kollation auf utf8_general_ci (Haken bei "Alle Tabellenkollationen ändern" und Haken bei "Alle Spaltenallokationen ändern" gesetzt) gestartet. In mehreren Schritten. Zuerst nur Haken bei "Alle Tabellenkollationen ändern". In einem zweiten Schritt dann noch Haken bei "Alle Spaltenallokationen ändern".

Nach erneutem Aufruf von Skript <MantisURL>/admin/check/index.php werden keine Fehler mehr betreffend Database angezeigt. Es werden noch einige Warnungen und Fehler betreffend Email setup angezeigt.

Verbinde ich mit mit Mantis werden noch immer keine Projekte angezeigt.

Das Skript <MantisURL>/admin/check/index.php gibt momentan folgendes aus:
**************************************************
Checking your MantisBT installation...
Verbosity: Show passed tests | Show verbose error messages
PHP
register_argc_argv php.ini directive is disabled
This directive should be disabled to increase performance (it only affects PHP in CLI mode). WARN
display_errors php.ini directive is disabled
For security reasons this directive should be disabled on all production and Internet facing servers. WARN
display_startup_errors php.ini directive is disabled
For security reasons this directive should be disabled on all production and Internet facing servers. WARN
Database
MySQL Lifecycle and Release Support data availability
Release information for MySQL 10.4 series is not available, unable to perform the lifecycle checks. WARN
Configuration
The configuration option use_iis is now obsolete
WARN
Paths
core_path configuration option is set to a path outside the web root
For increased security it is recommended that you move the core_path directory outside the web root. WARN
class_path configuration option is set to a path outside the web root
For increased security it is recommended that you move the class_path directory outside the web root. WARN
library_path configuration option is set to a path outside the web root
For increased security it is recommended that you move the library_path directory outside the web root. WARN
config_path configuration option is set to a path outside the web root
For increased security it is recommended that you move the config_path directory outside the web root. WARN
language_path configuration option is set to a path outside the web root
For increased security it is recommended that you move the language_path directory outside the web root. WARN
Directory doc does not need to exist within the MantisBT root
The doc directory within the MantisBT root should be removed as it is not needed for the live operation of MantisBT. WARN
Webservice
SOAP Extension Enabled
Enable the PHP SOAP extension. WARN
Cryptography
Internationalization
Localization
Email
webmaster_email configuration option has a valid email address specified
You need to specify a valid email address for the webmaster_email configuration option. FAIL
from_email configuration option has a valid email address specified
You need to specify a valid email address for the from_email configuration option. FAIL
return_path_email configuration option has a valid email address specified
You need to specify a valid email address for the return_path_email configuration option. FAIL
Some tests failed. Please review and correct these failed tests before using MantisBT.
For security reasons, you should delete (or at least restrict access to) the admin directory.Refer to the MantisBT Admin Guidefor further details.
Powered by MantisBT
**************************************************
atrol
Site Admin
Posts: 8353
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Keine Projekte nach Import SQL

Post by atrol »

pelulu wrote: 06 Jan 2020, 09:49Nur Meldung, dass Standard-Administrator-Konto deaktiviert werden sollte oder Passwort geändert werden sollte.
Heißt das, dass in der alten Installation noch der User "administrator" mit dem Standardpasswort "root" aktiv war/ist ?
Falls nicht, greift Mantis auf Tabellen einer Neuinstallation zu und nicht auf die importierten Tabellen.
Please use Search before posting and read the Manual
pelulu
Posts: 4
Joined: 20 Dec 2019, 14:52

Re: Keine Projekte nach Import SQL

Post by pelulu »

Auf der alten Installation funktioniert das Standard Konto Administrator/root nicht. Also nicht aktiv.

Bedeutet somit, dass Mantis nicht auf die importierte Datenbank bugtracker zugreift.
pelulu
Posts: 4
Joined: 20 Dec 2019, 14:52

Re: Keine Projekte nach Import SQL

Post by pelulu »

Problem ist gelöst. :D

Waren vermutlich 3 Ursachen:
1) Kollation / Texte
- Table mantis_bug_file_table is using UTF-8 collation
- Table mantis_bug_file_table is using latin1_swedish_ci collation where UTF-8 collation is required. FAIL
>> Mittels phpMyAdmin > Operation auf der Database bugtracker die Kollation auf utf8_general_ci geändert.


2) Falsche Einträge in config_inc.php
- Vorher:
$g_db_table_plugin_prefix = 'mantis';
$g_db_table_prefix = 'mantis';
$g_db_table_suffix = '';
- Geändert zu Default-Werten nach Anleitung MantisBT.
Nachdems mit den Default-Werten funktioniert hat, die Zeilen sogar in Kommentar gesetzt.
#$g_db_table_plugin_prefix = 'plugin';
#$g_db_table_prefix = 'mantis';
#$g_db_table_suffix = 'table';

3) Vermutlich falsches Login bei Mantis.
- Nicht das Default-Login Administrator/root sondern das Login von der alten Installation verwendet.
- War mir nicht klar, dass die Zugriffsrechte mit dem Export/Import der Datenbank übernommen werden.


Vielen Dank für den tollen Support und einen guten Start ins neue Jahr....

Gruss,
Lucien
atrol
Site Admin
Posts: 8353
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Keine Projekte nach Import SQL

Post by atrol »

Schön, dass es nun funktioniert.

Viel Erfolg beim Einsatz der neuen Mantis Version.
Please use Search before posting and read the Manual
Post Reply