Ergebnis 1 bis 10 von 10

Thema: Upgrade von 4.4 auf 4.9 läuft auf Fehler im dry run

  1. #1
    Contao-Fan
    Registriert seit
    20.06.2009.
    Beiträge
    567

    Standard Upgrade von 4.4 auf 4.9 läuft auf Fehler im dry run

    Hallo zusammen,

    ich möchte nun doch endlich mal ausprobieren, wie es aussieht, wenn ich das Upgrade von 4.4 auf 4.9 mache.

    Erst einmal habe ich alles auf den letzten Stand von 4.4 gebracht, was ganz normal geklappt hat. Trage ich nun "4.9.*" ein und mache einen "Testlauf mit allen Paketen" erhalte ich folgendes Ergebnis im dry run:

    $ /bin/php74 -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /www/htdocs/***/***/web/contao-manager.phar.php composer update --with-dependencies --prefer-dist --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader --dry-run
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.
    Problem 1
    - contao/newsletter-bundle 4.9.1 requires contao/core-bundle 4.9.1 -> satisfiable by contao/core-bundle[4.9.1].
    - Conclusion: don't install contao/core-bundle 4.9.1 (conflict analysis result)
    - contao/newsletter-bundle 4.9.2 requires contao/core-bundle 4.9.2 -> satisfiable by contao/core-bundle[4.9.2].
    - Conclusion: don't install contao/core-bundle 4.9.2 (conflict analysis result)
    - contao/newsletter-bundle 4.9.3 requires contao/core-bundle 4.9.3 -> satisfiable by contao/core-bundle[4.9.3].
    - Conclusion: don't install contao/core-bundle 4.9.3 (conflict analysis result)
    - contao/newsletter-bundle 4.9.4 requires contao/core-bundle 4.9.4 -> satisfiable by contao/core-bundle[4.9.4].
    - Conclusion: don't install contao/core-bundle 4.9.4 (conflict analysis result)
    - contao/newsletter-bundle 4.9.5 requires contao/core-bundle 4.9.5 -> satisfiable by contao/core-bundle[4.9.5].
    - Conclusion: don't install contao/core-bundle 4.9.5 (conflict analysis result)
    - contao/newsletter-bundle 4.9.6 requires contao/core-bundle 4.9.6 -> satisfiable by contao/core-bundle[4.9.6].
    - Conclusion: don't install contao/core-bundle 4.9.6 (conflict analysis result)
    - contao/newsletter-bundle 4.9.7 requires contao/core-bundle 4.9.7 -> satisfiable by contao/core-bundle[4.9.7].
    - Conclusion: don't install contao/core-bundle 4.9.7 (conflict analysis result)
    - contao/newsletter-bundle 4.9.8 requires contao/core-bundle 4.9.8 -> satisfiable by contao/core-bundle[4.9.8].
    - Conclusion: don't install contao/core-bundle 4.9.8 (conflict analysis result)
    - contao/newsletter-bundle 4.9.9 requires contao/core-bundle 4.9.9 -> satisfiable by contao/core-bundle[4.9.9].
    - Conclusion: don't install contao/core-bundle 4.9.9 (conflict analysis result)
    - contao/newsletter-bundle 4.9.10 requires contao/core-bundle 4.9.10 -> satisfiable by contao/core-bundle[4.9.10].
    - Conclusion: don't install contao/core-bundle 4.9.10 (conflict analysis result)
    - contao/newsletter-bundle 4.9.11 requires contao/core-bundle 4.9.11 -> satisfiable by contao/core-bundle[4.9.11].
    - Conclusion: don't install contao/core-bundle 4.9.11 (conflict analysis result)
    - contao/newsletter-bundle 4.9.12 requires contao/core-bundle 4.9.12 -> satisfiable by contao/core-bundle[4.9.12].
    - Conclusion: don't install contao/core-bundle 4.9.12 (conflict analysis result)
    - contao/newsletter-bundle 4.9.13 requires contao/core-bundle 4.9.13 -> satisfiable by contao/core-bundle[4.9.13].
    - Conclusion: don't install contao/core-bundle 4.9.13 (conflict analysis result)
    - contao/newsletter-bundle 4.9.14 requires contao/core-bundle 4.9.14 -> satisfiable by contao/core-bundle[4.9.14].
    - Conclusion: don't install contao/core-bundle 4.9.14 (conflict analysis result)
    - contao/newsletter-bundle 4.9.15 requires contao/core-bundle 4.9.15 -> satisfiable by contao/core-bundle[4.9.15].
    - Conclusion: don't install contao/core-bundle 4.9.15 (conflict analysis result)
    - contao/newsletter-bundle 4.9.16 requires contao/core-bundle 4.9.16 -> satisfiable by contao/core-bundle[4.9.16].
    - Conclusion: don't install contao/core-bundle 4.9.16 (conflict analysis result)
    - contao/newsletter-bundle 4.9.17 requires contao/core-bundle 4.9.17 -> satisfiable by contao/core-bundle[4.9.17].
    - Conclusion: don't install contao/core-bundle 4.9.17 (conflict analysis result)
    - contao/newsletter-bundle 4.9.18 requires contao/core-bundle 4.9.18 -> satisfiable by contao/core-bundle[4.9.18].
    - Conclusion: don't install contao/core-bundle 4.9.18 (conflict analysis result)
    - contao/newsletter-bundle 4.9.19 requires contao/core-bundle 4.9.19 -> satisfiable by contao/core-bundle[4.9.19].
    - Conclusion: don't install contao/core-bundle 4.9.19 (conflict analysis result)
    - contao/newsletter-bundle 4.9.20 requires contao/core-bundle 4.9.20 -> satisfiable by contao/core-bundle[4.9.20].
    - Conclusion: don't install contao/core-bundle 4.9.20 (conflict analysis result)
    - contao/newsletter-bundle 4.9.21 requires contao/core-bundle 4.9.21 -> satisfiable by contao/core-bundle[4.9.21].
    - Conclusion: don't install contao/core-bundle 4.9.21 (conflict analysis result)
    - contao/newsletter-bundle 4.9.22 requires contao/core-bundle 4.9.22 -> satisfiable by contao/core-bundle[4.9.22].
    - Conclusion: don't install contao/core-bundle 4.9.22 (conflict analysis result)
    - contao/newsletter-bundle 4.9.23 requires contao/core-bundle 4.9.23 -> satisfiable by contao/core-bundle[4.9.23].
    - Conclusion: don't install contao/core-bundle 4.9.23 (conflict analysis result)
    - contao/newsletter-bundle 4.9.24 requires contao/core-bundle 4.9.24 -> satisfiable by contao/core-bundle[4.9.24].
    - Conclusion: don't install contao/core-bundle 4.9.24 (conflict analysis result)
    - friends-of-contao/contao-privacy[2.0.0-beta2, ..., 2.0.0-beta7] require contao/core-bundle 4.4.* || 4.5.* -> satisfiable by contao/core-bundle[4.4.0, ..., 4.5.14].
    - Only one of these can be installed: contao/core[2.11.0, ..., 2.11.17, 3.0.0, ..., 3.5.40], contao/core-bundle[4.1.0, ..., 4.12.5]. contao/core replaces contao/core-bundle and thus cannot coexist with it.
    - contao/newsletter-bundle 4.9.0 requires contao/core-bundle 4.9.0 -> satisfiable by contao/core-bundle[4.9.0].
    - Root composer.json requires contao/newsletter-bundle 4.9.* -> satisfiable by contao/newsletter-bundle[4.9.0, ..., 4.9.24].
    - Root composer.json requires friends-of-contao/contao-privacy ^2.0@beta -> satisfiable by friends-of-contao/contao-privacy[2.0.0-beta2, ..., 2.0.0-beta7].
    Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
    Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
    # Process terminated with exit code 2
    # Result: Misuse of shell builtins
    Dies ist die composer.json

    PHP-Code:
    {
        
    "type""project",
        
    "require": {
            
    "codefog/contao-mobile_menu""^2.7",
            
    "contao/calendar-bundle""^4.4",
            
    "contao/comments-bundle""^4.4",
            
    "contao/conflicts""*@dev",
            
    "contao/faq-bundle""^4.4",
            
    "contao/listing-bundle""^4.4",
            
    "contao/manager-bundle""4.4.*",
            
    "contao/news-bundle""^4.4",
            
    "contao/newsletter-bundle""^4.4",
            
    "do-while/contao-backupdb-bundle""^1.4",
            
    "friends-of-contao/contao-privacy""^2.0@beta",
            
    "metamodels/bundle_all""^2.1",
            
    "netzmacht/contao-font-awesome-inserttag""^2.0",
            
    "numero2/contao-marketing-suite""^1.0",
            
    "trilobit-gmbh/contao-tiles-bundle""^1.0"
        
    },
        
    "extra": {
            
    "contao-component-dir""assets"
        
    },
        
    "scripts": {
            
    "post-install-cmd": [
                
    "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            
    ],
            
    "post-update-cmd": [
                
    "Contao\\ManagerBundle\\Composer\\ScriptHandler::initializeApplication"
            
    ]
        },
        
    "conflict": {
        
    "metamodels/attribute_checkbox""2.1.1, 2.1.2"
        
    }

    Und so sieht es im Manager aus:
    Bild_2021-12-17_140856.png

    Verstehe ich das richtig, dass nicht alle Anhängigkeiten aktualisiert werden können und das deshalb nicht geht? Was muss ich denn machen, damit er alles aktualisiert außer MetaModels? Ich möchte einfach mal versuchen, ob danach noch alles geht. Wenn nicht, muss ich mit dem Upgrade leider noch warten.
    Viele Grüße
    Shania

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    37.162
    Partner-ID
    10107

    Standard

    friends-of-contao/contao-privacy kann nur in Contao 4.4 verwendet werden und ist daher nicht mit höheren Contao Versionen kompatibel.
    » sponsor me via GitHub or Revolut

  3. #3
    Contao-Fan
    Registriert seit
    20.06.2009.
    Beiträge
    567

    Standard

    Also deinstalliere ich das vorher?

    Was ist denn die Alternative dazu oder ist das in 4.9 im Core enthalten?
    Viele Grüße
    Shania

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    37.162
    Partner-ID
    10107

    Standard

    Was genau nutzt du denn davon?
    » sponsor me via GitHub or Revolut

  5. #5
    Contao-Fan
    Registriert seit
    20.06.2009.
    Beiträge
    567

    Standard

    Gute Frage, das ist lange her, aber da ich keine Registrierungen habe und für Youtube die Marketing Suite verwende, nehme ich mal an es ist nur Youtube nocookie.

    Übrigens vielen herzlichen Dank schonmal für deine turboschnellen Antwortn!
    Viele Grüße
    Shania

  6. #6
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    37.162
    Partner-ID
    10107

    Standard

    Zitat Zitat von Shania Beitrag anzeigen
    nehme ich mal an es ist nur Youtube nocookie.
    Das geht auch schon in 4.9.
    » sponsor me via GitHub or Revolut

  7. #7
    Contao-Fan
    Registriert seit
    20.06.2009.
    Beiträge
    567

    Standard

    Ok, das ist ja super, danke dir wie verrückt .
    Viele Grüße
    Shania

  8. #8
    Contao-Fan
    Registriert seit
    20.06.2009.
    Beiträge
    567

    Standard

    Durchgelaufen ist das Upgrade und es sieht auch erst einmal ganz gut aus. Beim löschen von Datenbanktabellen und Feldern kommt folgende Fehlermeldung:

    PHP-Code:
    [2021-12-17 15:00:33request.INFOMatched 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://www.***/contao/install","method":"POST"} []
    [
    2021-12-17 15:00:33request.CRITICALUncaught PHP Exception InvalidArgumentException"Invalid hash: e2a2a8814bc5cf309988c31d137afd31" at /www/htdocs/***/vendor/contao/installation-bundle/src/Database/Installer.php line 105 {"exception":"[object] (InvalidArgumentException(code: 0): Invalid hash: e2a2a8814bc5cf309988c31d137afd31 at /www/htdocs/***/vendor/contao/installation-bundle/src/Database/Installer.php:105)"} [] 
    Ich hatte vorher die Meldung bekommen, dass meine Datenbank nicht im strict mode läuft.

    Daraufhin habe ich die config.yml angepasst, wie es dort stand. Sie sieht nun so aus:

    PHP-Code:
    contao:
       
    image:
          
    imagine_options:
             
    jpeg_quality85
    doctrine
    :
      
    dbal:
        
    connections:
          default:
            
    options:
              
    1002"SET SESSION sql_mode=(SELECT CONCAT(@@sql_mode, ',TRADITIONAL'))" 
    Rufe ich das Installtool erneut auf, ist die strict mode Meldung nicht mehr da, aber dieser fehler kommt, wenn ich nochmal versuche die Tabellen und Spalten zu löschen.

    edit: Hab dieses Thema gefunden: https://community.contao.org/de/show...-aktualisieren
    ich werde dann mal den Hoster fragen, ob das gegeben ist. Der Server ist aber schon auf Maria DB upgedatet.

    edit2: Hat sich erledigt, ich hatte den Anwendungscache nach der Dateianpassung nicht erneuert. Es wäre vielleicht nicht schlecht das im Installationsprozess in der Fehlernmeldung zu ergänzen. Auch wenn das für viele hier sicher klar ist, habe ich nun doch einige Themen dazu gefunden.
    Geändert von Shania (17.12.2021 um 14:29 Uhr)
    Viele Grüße
    Shania

  9. #9
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    37.162
    Partner-ID
    10107

    Standard

    Löschen solltest du nur dann, wenn du weißt, dass du die Daten wirklich nicht mehr brauchst.

    Der Thread den du referenziert hast behandelt einen anderen Fehler.
    » sponsor me via GitHub or Revolut

  10. #10
    Contao-Fan
    Registriert seit
    20.06.2009.
    Beiträge
    567

    Daumen hoch

    Es hat nun geklappt. Na ja, ich denke, das waren nur die normalen Änderungen durch das Update. Drei Felder habe ich behalten, die durch eine Anpassung erfolgte, die für uns umgesetzt wurde. Die funktioniert auch noch . Es war jetzt ohnehin erstmal ein Test, aber es sieht erstaunlich gut aus und wenn ich mit meinen Tests durch bin, kann das eigentlich direkt online gehen. Dass das so schnell klappt, hätte ich jetzt nicht gedacht. Super Arbeit .
    Viele Grüße
    Shania

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •