Migration von Hetzner zu Hostingwerk ...weitere Versuche
Hallo!
Nachdem danke der Forumsunterstützung klar wurde, dass es vermutlich doch nicht so schlau ist mehrere grundweg verschiedene Seiten unter ein Contaodach zu bringen habe ich erstmal damit begonnen eine Seite mit einem Rocksolidtheme (Oneo) neu zu gestalten.
Die habe ich ich bei Hetzner angefangen www.test.baslerbikes.de .
Eigentlich würd ich das gern beim Hostingwerk platzieren aber nach der Installation von Oneo beim Hostingwerk kam ich vom BE nicht in die Vorschau.
Weil ich gern weiterkommen wollte (Ich habe meist nur am WE und Nachts Zeit für sowas, wenn man keinen Service erreicht) habe ich also erstmal auf Hetzner weitergebastelt ...
Nachdem es dort in groben Zügen lief wollte ich jetzt zum Hostingwerk umziehen ...
Datenbank von Hetzner zu hostingwerk danach die Struktur per SFTP mit Forklift kopiert
https://test426.hostingwerk.rocks
ContaoManager funktioniert. Zugriff auf BE oder Install wird aber mit Fehler quittiert.
Service von Hostingwerk fühlt sich nicht zuständig -> da Contao
Ich bin also mal wieder auf eure Hilfe angewiesen. Ich vermute das die DB nicht erkannt wird, weiß aber nicht nicht wie ich ohne Installtool die Verbindung korrigiere
Folgendes steht in var/logs:
HTML-Code:
[2021-04-14T10:08:53.466727+02:00] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_route":"contao_install","_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction"},"request_uri":"https://test426.hostingwerk.rocks/contao/install","method":"GET"} []
[2021-04-14T10:08:53.770092+02:00] request.CRITICAL: Uncaught PHP Exception Twig\Error\SyntaxError: "Unknown "ansi_to_html" filter." at /srv/www/jbasler/public/vendor/contao/installation-bundle/src/Resources/views/initialize.html.twig line 9 {"exception":"[object] (Twig\\Error\\SyntaxError(code: 0): Unknown \"ansi_to_html\" filter. at /srv/www/jbasler/public/vendor/contao/installation-bundle/src/Resources/views/initialize.html.twig:9)"} []
[2021-04-14T10:19:38.783746+02:00] console.CRITICAL: Error thrown while running command "--no-ansi". Message: "An error occurred while executing the "/usr/bin/php7.4 /srv/www/jbasler/public/vendor/contao/manager-bundle/bin/contao-console contao:symlinks web --env=prod --no-ansi" command: " {"exception":"[object] (RuntimeException(code: 0): An error occurred while executing the \"/usr/bin/php7.4 /srv/www/jbasler/public/vendor/contao/manager-bundle/bin/contao-console contao:symlinks web --env=prod --no-ansi\" command: at /srv/www/jbasler/public/vendor/contao/manager-bundle/src/Command/ContaoSetupCommand.php:128)","command":"--no-ansi","message":"An error occurred while executing the \"/usr/bin/php7.4 /srv/www/jbasler/public/vendor/contao/manager-bundle/bin/contao-console contao:symlinks web --env=prod --no-ansi\" command: "} []
[2021-04-14T10:19:42.167318+02:00] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_route":"contao_install","_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction"},"request_uri":"https://test426.hostingwerk.rocks/contao/install","method":"GET"} []
[2021-04-14T10:19:42.204886+02:00] request.CRITICAL: Uncaught PHP Exception Twig\Error\SyntaxError: "Unknown "ansi_to_html" filter." at /srv/www/jbasler/public/vendor/contao/installation-bundle/src/Resources/views/initialize.html.twig line 9 {"exception":"[object] (Twig\\Error\\SyntaxError(code: 0): Unknown \"ansi_to_html\" filter. at /srv/www/jbasler/public/vendor/contao/installation-bundle/src/Resources/views/initialize.html.twig:9)"} []
[2021-04-14T10:22:28.712691+02:00] console.CRITICAL: Error thrown while running command "--no-ansi". Message: "An error occurred while executing the "/usr/bin/php7.4 /srv/www/jbasler/public/vendor/contao/manager-bundle/bin/contao-console contao:symlinks web --env=prod --no-ansi" command: " {"exception":"[object] (RuntimeException(code: 0): An error occurred while executing the \"/usr/bin/php7.4 /srv/www/jbasler/public/vendor/contao/manager-bundle/bin/contao-console contao:symlinks web --env=prod --no-ansi\" command: at /srv/www/jbasler/public/vendor/contao/manager-bundle/src/Command/ContaoSetupCommand.php:128)","command":"--no-ansi","message":"An error occurred while executing the \"/usr/bin/php7.4 /srv/www/jbasler/public/vendor/contao/manager-bundle/bin/contao-console contao:symlinks web --env=prod --no-ansi\" command: "} []
[2021-04-14T10:22:36.221334+02:00] request.INFO: Matched route "contao_install". {"route":"contao_install","route_parameters":{"_route":"contao_install","_scope":"backend","_token_check":true,"_controller":"Contao\\InstallationBundle\\Controller\\InstallationController::installAction"},"request_uri":"https://test426.hostingwerk.rocks/contao/install","method":"GET"} []
[2021-04-14T10:22:36.256219+02:00] request.CRITICAL: Uncaught PHP Exception Twig\Error\SyntaxError: "Unknown "ansi_to_html" filter." at /srv/www/jbasler/public/vendor/contao/installation-bundle/src/Resources/views/initialize.html.twig line 9 {"exception":"[object] (Twig\\Error\\SyntaxError(code: 0): Unknown \"ansi_to_html\" filter. at /srv/www/jbasler/public/vendor/contao/installation-bundle/src/Resources/views/initialize.html.twig:9)"} []
Liste der Anhänge anzeigen (Anzahl: 1)
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo!
Ich verzweifle
Anhang 24523
Ich komme nicht weiter.
Zwischenzeitlich hatte ich es auchmal mit einer kompletten Neuinstallation probiert.
Da kommen ich dann vom BE nicht in die Vorschau (Fehlermeldung zuviel Verzweigungen)
Ich bin kurz davor das Projekt Hostingwerk aufzugeben ... bei Hetzner läuft es ja ... aber eigentlich wollte ich lieber eine Firma unterstützen die Contao verbunden ist
Liste der Anhänge anzeigen (Anzahl: 2)
Zitat:
Zitat von
tab
Ich nehme mal an du hast das All-In Hostingpaket und keinen Server. Hast du das richtige Profil eingestellt (es gibt eins speziell für Contao 4) und benutzt auch eine für Contao 4.11 ausreichende PHP-Version? Denn wenn trotz richtiger Einstellungen eine Neuinstallation von Contao 4.11 bei Hostingwerk nicht funktioniert, dann wäre Leo Feyer daran wahrscheinlich schon interessiert. Meintest du mit Verzweigungen eventuell Weiterleitungen?
Hallo!
Ja "Weiterleitungen"
Anhang 24524
Anhang 24525
Liste der Anhänge anzeigen (Anzahl: 1)
Zitat:
Zitat von
mlweb
Bei den meisten Shared Hostern - auch bei Hetzner - kannst Du den Namen Deiner DB nicht selbst wählen, sondern bekommst mal mehr oder weniger zufällige Namen für die angelegte DB und/oder den Datenbankuser
???
Anhang 24526
Zitat:
Zitat von
mlweb
Solltest Du aber die parameters.yml aus Deiner Installation von Hetzner mit kopiert haben, dann wirst Du natürlich bei Aufruf des Installtools auch nicht nach der DB gefragt. Entweder Du passt dort die Zugangsdaten zur DB an oder löscht die Datei und lässt das Installtool eine neue Datei anlegen.
Auf die Idee war der Support vom Hostingwerk auch schon gekommen.
War aber nicht so.
Liste der Anhänge anzeigen (Anzahl: 1)
Zitat:
Zitat von
Spooky
Aktiviere den Debug-Modus über den Contao Manager, rufe das Install Tool nochmal auf und poste dann den Stack Trace.
Ich bekomme ja schon nach dem Aufruf des Installtool die Fehlermeldung
Anhang 24527
Liste der Anhänge anzeigen (Anzahl: 2)
Zitat:
Zitat von
Spooky
Du musst das machen was ich geschrieben habe:
Tschuldigung ... ich hatte den DebugModus ja an ...
Bin aber jetzt erstmal im Laden
Was mich gerade stutzig macht
Forklift zeigt nur
Anhang 24528
FileZilla zeigt aber alles
Anhang 24529
Liegt das Problem vielleicht schon in der Übertragung?
PHP-Code:
Doctrine\DBAL\Exception\DriverException:
An exception occurred in driver: SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'
at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:128
at Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:182)
at Doctrine\DBAL\DBALException::wrapException()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:169)
at Doctrine\DBAL\DBALException::driverException()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:30)
at Doctrine\DBAL\Driver\PDOMySql\Driver->connect()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:362)
at Doctrine\DBAL\Connection->connect()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1853)
at Doctrine\DBAL\Connection->getWrappedConnection()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1241)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:978)
at Doctrine\DBAL\Connection->fetchAllAssociative()
(vendor/contao/core-bundle/src/Image/ImageSizes.php:139)
at Contao\CoreBundle\Image\ImageSizes->loadOptions()
(vendor/contao/core-bundle/src/Image/ImageSizes.php:83)
at Contao\CoreBundle\Image\ImageSizes->getAllOptions()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:702)
at Contao\System::getImageSizes()
(templates/oneo/rsce_oneo_centered_wrapper_start_config.php:112)
at include('/srv/www/jbasler/public/templates/oneo/rsce_oneo_centered_wrapper_start_config.php')
(vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1425)
at MadeYourDay\RockSolidCustomElements\CustomElements::loadConfig()
(vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1602)
at MadeYourDay\RockSolidCustomElements\CustomElements->loadLanguageFileHook()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:524)
at Contao\System::loadLanguageFile()
(vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1337)
at MadeYourDay\RockSolidCustomElements\CustomElements::loadConfig()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:404)
at Contao\CoreBundle\Framework\ContaoFramework->triggerInitializeSystemHook()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:302)
at Contao\CoreBundle\Framework\ContaoFramework->initializeFramework()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:157)
at Contao\CoreBundle\Framework\ContaoFramework->initialize()
(vendor/contao/installation-bundle/src/Controller/InstallationController.php:61)
at Contao\InstallationBundle\Controller\InstallationController->installAction()
(vendor/symfony/http-kernel/HttpKernel.php:157)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:79)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:195)
at Symfony\Component\HttpKernel\Kernel->handle()
(web/index.php:31)
at require('/srv/www/jbasler/public/web/index.php')
(web/app.php:4)
PHP-Code:
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'
at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
at Doctrine\DBAL\Driver\PDO\Exception::new()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:42)
at Doctrine\DBAL\Driver\PDOConnection->__construct()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:24)
at Doctrine\DBAL\Driver\PDOMySql\Driver->connect()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:362)
at Doctrine\DBAL\Connection->connect()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1853)
at Doctrine\DBAL\Connection->getWrappedConnection()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1241)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:978)
at Doctrine\DBAL\Connection->fetchAllAssociative()
(vendor/contao/core-bundle/src/Image/ImageSizes.php:139)
at Contao\CoreBundle\Image\ImageSizes->loadOptions()
(vendor/contao/core-bundle/src/Image/ImageSizes.php:83)
at Contao\CoreBundle\Image\ImageSizes->getAllOptions()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:702)
at Contao\System::getImageSizes()
(templates/oneo/rsce_oneo_centered_wrapper_start_config.php:112)
at include('/srv/www/jbasler/public/templates/oneo/rsce_oneo_centered_wrapper_start_config.php')
(vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1425)
at MadeYourDay\RockSolidCustomElements\CustomElements::loadConfig()
(vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1602)
at MadeYourDay\RockSolidCustomElements\CustomElements->loadLanguageFileHook()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:524)
at Contao\System::loadLanguageFile()
(vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1337)
at MadeYourDay\RockSolidCustomElements\CustomElements::loadConfig()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:404)
at Contao\CoreBundle\Framework\ContaoFramework->triggerInitializeSystemHook()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:302)
at Contao\CoreBundle\Framework\ContaoFramework->initializeFramework()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:157)
at Contao\CoreBundle\Framework\ContaoFramework->initialize()
(vendor/contao/installation-bundle/src/Controller/InstallationController.php:61)
at Contao\InstallationBundle\Controller\InstallationController->installAction()
(vendor/symfony/http-kernel/HttpKernel.php:157)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:79)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:195)
at Symfony\Component\HttpKernel\Kernel->handle()
(web/index.php:31)
at require('/srv/www/jbasler/public/web/index.php')
(web/app.php:4)
PHP-Code:
PDOException:
SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'
at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:38
at PDO->__construct()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:38)
at Doctrine\DBAL\Driver\PDOConnection->__construct()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php:24)
at Doctrine\DBAL\Driver\PDOMySql\Driver->connect()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:362)
at Doctrine\DBAL\Connection->connect()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1853)
at Doctrine\DBAL\Connection->getWrappedConnection()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1241)
at Doctrine\DBAL\Connection->executeQuery()
(vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:978)
at Doctrine\DBAL\Connection->fetchAllAssociative()
(vendor/contao/core-bundle/src/Image/ImageSizes.php:139)
at Contao\CoreBundle\Image\ImageSizes->loadOptions()
(vendor/contao/core-bundle/src/Image/ImageSizes.php:83)
at Contao\CoreBundle\Image\ImageSizes->getAllOptions()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:702)
at Contao\System::getImageSizes()
(templates/oneo/rsce_oneo_centered_wrapper_start_config.php:112)
at include('/srv/www/jbasler/public/templates/oneo/rsce_oneo_centered_wrapper_start_config.php')
(vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1425)
at MadeYourDay\RockSolidCustomElements\CustomElements::loadConfig()
(vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1602)
at MadeYourDay\RockSolidCustomElements\CustomElements->loadLanguageFileHook()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:524)
at Contao\System::loadLanguageFile()
(vendor/madeyourday/contao-rocksolid-custom-elements/src/CustomElements.php:1337)
at MadeYourDay\RockSolidCustomElements\CustomElements::loadConfig()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:404)
at Contao\CoreBundle\Framework\ContaoFramework->triggerInitializeSystemHook()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:302)
at Contao\CoreBundle\Framework\ContaoFramework->initializeFramework()
(vendor/contao/core-bundle/src/Framework/ContaoFramework.php:157)
at Contao\CoreBundle\Framework\ContaoFramework->initialize()
(vendor/contao/installation-bundle/src/Controller/InstallationController.php:61)
at Contao\InstallationBundle\Controller\InstallationController->installAction()
(vendor/symfony/http-kernel/HttpKernel.php:157)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:79)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:195)
at Symfony\Component\HttpKernel\Kernel->handle()
(web/index.php:31)
at require('/srv/www/jbasler/public/web/index.php')
(web/app.php:4)
Liste der Anhänge anzeigen (Anzahl: 1)
Zitat:
Zitat von
Spooky
Was genau funktioniert nun nicht?
Zitat:
Zitat von
RockSolid Themes
Mit Version 2.3.3 der Custom Elements Erweiterung sollte dieser Fehler nicht mehr auftreten.
Bei Null angefangen
Datenbank geleert
Contao geladen
Rocksoliderweiterungen geladen
Oneo geladen
DemoTemplate geladen
-Ende der Vorstellung
Anhang 24530