Contao-Camp 2024
Ergebnis 1 bis 30 von 30

Thema: Trotz 4GB memory_limit kein Composer Update möglich

  1. #1
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard Trotz 4GB memory_limit kein Composer Update möglich

    Hallo,

    habe eine Installation übergeben bekommen und schaffe es trotz mittlerweile ca. 4GB memory_limit nicht die Erweiterungen per SSH/Composer upzudaten.
    Beim letzten Versucht via

    Code:
    /usr/local/php56/bin/php -d memory_limit=4G -d max_execution_time=900 composer.phar update --no-ansi --no-interaction --prefer-dist
    ist es schlussendlich ins max_execution_time gelaufen.

    Was mir auffällt ist dass MetaModels mit zahlreichen Sub-erweiterungen (ca. 30) installiert ist.
    Sonst sind es nicht außergewöhnlich viele Erweiterungen, im Bereich von 20-25 schätze ich.

    Ist das "normal"? Muss ich einfach Geduld haben und dem Prozess wirklich 30 Minuten oder noch mehr Zeit geben?
    Oder kann es an etwas anderem liegen? Laut Contao Check alles ok für Composer. Lediglich im Backend sehe ich ein paar Warnungen:

    Code:
    Deprecated notice: The Composer\Package\LinkConstraint\VersionConstraint class is deprecated, use Composer\Semver\Constraint\Constraint instead. in phar://composer/composer.phar/src/Composer/Package/LinkConstraint/VersionConstraint.php on line 17
    #0 [internal function]: __error(16384, 'The Composer\\Pa...', 'phar:///usr/hom...', 17, Array)
    #1 phar://composer/composer.phar/src/Composer/Package/LinkConstraint/VersionConstraint.php(17): trigger_error('The Composer\\Pa...', 16384)
    #2 vendor/composer/ClassLoader.php(444): include('phar:///usr/hom...')
    #3 vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('phar:///usr/hom...')
    #4 [internal function]: Composer\Autoload\ClassLoader->loadClass('Composer\\Packag...')
    #5 system/modules/!composer/src/Controller/InstalledController.php(219): spl_autoload_call('Composer\\Packag...')
    #6 system/modules/!composer/src/Controller/InstalledController.php(97): ContaoCommunityAlliance\Contao\Composer\Controller\InstalledController->buildGroupedPackagesList(Object(Composer\Package\RootPackage), Object(Composer\Repository\InstalledFilesystemRepository), Array, Array, Array)
    #7 system/modules/!composer/src/ClientBackend.php(218): ContaoCommunityAlliance\Contao\Composer\Controller\InstalledController->handle(Object(Contao\Input))
    #8 system/modules/core/classes/Backend.php(423): ContaoCommunityAlliance\Contao\Composer\ClientBackend->generate()
    #9 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('composer')
    #10 contao/main.php(20): Contao\BackendMain->run()
    #11 {main}
    
    Deprecated notice: The Composer\Package\LinkConstraint\LinkConstraintInterface interface is deprecated, use Composer\Semver\Constraint\ConstraintInterface instead. in phar://composer/composer.phar/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php on line 17
    #0 [internal function]: __error(16384, 'The Composer\\Pa...', 'phar:///usr/hom...', 17, Array)
    #1 phar://composer/composer.phar/src/Composer/Package/LinkConstraint/LinkConstraintInterface.php(17): trigger_error('The Composer\\Pa...', 16384)
    #2 vendor/composer/ClassLoader.php(444): include('phar:///usr/hom...')
    #3 vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('phar:///usr/hom...')
    #4 [internal function]: Composer\Autoload\ClassLoader->loadClass('Composer\\Packag...')
    #5 phar://composer/composer.phar/src/Composer/Package/LinkConstraint/VersionConstraint.php(23): spl_autoload_call('Composer\\Packag...')
    #6 vendor/composer/ClassLoader.php(444): include('phar:///usr/hom...')
    #7 vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('phar:///usr/hom...')
    #8 [internal function]: Composer\Autoload\ClassLoader->loadClass('Composer\\Packag...')
    #9 system/modules/!composer/src/Controller/InstalledController.php(219): spl_autoload_call('Composer\\Packag...')
    #10 system/modules/!composer/src/Controller/InstalledController.php(97): ContaoCommunityAlliance\Contao\Composer\Controller\InstalledController->buildGroupedPackagesList(Object(Composer\Package\RootPackage), Object(Composer\Repository\InstalledFilesystemRepository), Array, Array, Array)
    #11 system/modules/!composer/src/ClientBackend.php(218): ContaoCommunityAlliance\Contao\Composer\Controller\InstalledController->handle(Object(Contao\Input))
    #12 system/modules/core/classes/Backend.php(423): ContaoCommunityAlliance\Contao\Composer\ClientBackend->generate()
    #13 system/modules/core/controllers/BackendMain.php(131): Contao\Backend->getBackendModule('composer')
    #14 contao/main.php(20): Contao\BackendMain->run()
    #15 {main}
    
    Warning: Cannot modify header information - headers already sent by (output started at /usr/home/12345/public_html/system/helper/functions.php:65) in system/modules/core/library/Contao/Template.php on line 294
    #0 [internal function]: __error(2, 'Cannot modify h...', '/usr/home/12345', 294, Array)
    #1 system/modules/core/library/Contao/Template.php(294): header('Vary: User-Agen...', false)
    #2 system/modules/core/classes/BackendTemplate.php(120): Contao\Template->output()
    #3 system/modules/core/controllers/BackendMain.php(275): Contao\BackendTemplate->output()
    #4 system/modules/core/controllers/BackendMain.php(135): Contao\BackendMain->output()
    #5 contao/main.php(20): Contao\BackendMain->run()
    #6 {main}
    
    Warning: Cannot modify header information - headers already sent by (output started at /usr/home/12345/public_html/system/helper/functions.php:65) in system/modules/core/library/Contao/Template.php on line 295
    #0 [internal function]: __error(2, 'Cannot modify h...', '/usr/home/12345', 295, Array)
    #1 system/modules/core/library/Contao/Template.php(295): header('Content-Type: t...')
    #2 system/modules/core/classes/BackendTemplate.php(120): Contao\Template->output()
    #3 system/modules/core/controllers/BackendMain.php(275): Contao\BackendTemplate->output()
    #4 system/modules/core/controllers/BackendMain.php(135): Contao\BackendMain->output()
    #5 contao/main.php(20): Contao\BackendMain->run()
    #6 {main}
    Aber das bringe ich vermutlich nur weg wenn ich ein Composer Update durchführen kann?
    Habe schon in der composer.json auf folgendes geändert:

    Code:
    "contao-community-alliance/composer-client": "~0.16",
    Wenn es garnicht funktioniert - wie sollte ich dann vorgehen? Alle Erweiterungen manuell updaten (hoffentlich nicht)?

  2. #2
    Administrator Avatar von xchs
    Registriert seit
    19.06.2009.
    Beiträge
    14.548
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Du könntest zunächst mal versuchen, die composer.phar upzudaten.
    Contao Community Administrator

    [Unterstützungsmöglichkeiten]

  3. #3
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Habe ich gemacht, folgendes spuckte die Konsole aus:

    Code:
    The "contao-community-alliance/composer-plugin" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
    Updating to version 1.8.0 (stable channel).
       Downloading (100%)         
    Use composer self-update --rollback to return to version 4301c19ce3b2468ad841ca9f5f35ca5558fb005f
    Nun versuche ich es nochmals mit höherem max_execution_time.

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

    Standard

    Die Konsolenausgabe sieht soweit ok aus. Versuche nun ein erneutes Paket Update.

  5. #5
    Administratorin Avatar von lucina
    Registriert seit
    19.06.2009.
    Ort
    Kiel (DE)
    Beiträge
    7.328
    Partner-ID
    152
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Ich weiss ja nicht was Du da alles an Erweiterungen drin hast - aber PHP 7.x ist deutlich effektiver und auch wesentlich sparsamer mit dem RAM.

    Eigentlich sollte man alles per 31.12. unter PHP 7.1 lauffähig haben. Möglicherweise läuft Dein System ja bereits jetzt, ohne Updates damit?

  6. #6
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Lasse es gerade nochmal mit deutlich höherer max_execution_time (2400) laufen und beobachte ob sich was tut.

    Habe inzwischen 2 Testumgebungen, in einer ist nämlich für PHP 7 die zip Extension nicht verfügbar, deswegen versuche ich es noch auf anderem Server mit PHP 7.2, hier jedoch wiederum nur 128 MB memory, aber via SSH bestünde theoretisch eine Chance. Leider verzwickt.

    In der Produktivumgebung läuft Contao 3.3.3 auf PHP 5.6. Das Ziel ist es auf 3.5.37 sowie PHP 7 upzudaten. Live-Update auf 3.5.37 wurde in Testumgebung bereits gemacht. Bis auf MetaModels scheint das auch soweit zu funktionieren.

  7. #7
    Administrator Avatar von xchs
    Registriert seit
    19.06.2009.
    Beiträge
    14.548
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Im Zweifel könntest Du die Abhängigkeitsauflösung selbstverständlich auch lokal auf Deinem Rechner machen und dann die composer.json und composer.lock hochladen.
    Contao Community Administrator

    [Unterstützungsmöglichkeiten]

  8. #8
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Im Zweifel könntest Du die Abhängigkeitsauflösung selbstverständlich auch lokal auf Deinem Rechner machen und dann die composer.json und composer.lock hochladen.
    Wenn es so nicht geht werde ich das morgen versuchen.

  9. #9
    Contao-Urgestein
    Registriert seit
    29.10.2009.
    Ort
    Magdeburg
    Beiträge
    2.020
    Partner-ID
    626
    User beschenken
    Wunschliste

    Standard

    Überprüfe mal die Einstellungen der minimalen Stabilität in der composer.json. unter Contao 3.5 standen diese meist auf dev. Diese können in der Regel auf stable gesetzt werden.

    Falls einzelne Erweiterungen nicht stable sind, kann man diese explizit in der jeweiligen Version installieren.

  10. #10
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Im Zweifel könntest Du die Abhängigkeitsauflösung selbstverständlich auch lokal auf Deinem Rechner machen und dann die composer.json und composer.lock hochladen.
    Dazu hätte ich noch eine Frage zur Vorgehensweise.

    Muss ich quasi das gesamte CMS inkl. DB lokal aufsetzen, Composer aktualisieren und dann nur die composer.json und composer.lock hochladen?
    Ich glaube ich verstehe das falsch, denn dann hab ich zwar die aktualisierten Einträge in composer.json und composer.lock aber die Erweiterungen am Testserver sind ja erst nicht upgedatet.

    Überprüfe mal die Einstellungen der minimalen Stabilität in der composer.json. unter Contao 3.5 standen diese meist auf dev. Diese können in der Regel auf stable gesetzt werden.
    Ja da steht tatsächlich "dev", das ändere ich mal auf "stable".

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

    Standard

    Zitat Zitat von gm-team Beitrag anzeigen
    Muss ich quasi das gesamte CMS inkl. DB lokal aufsetzen
    Die Datenbank brauchst du nicht. Du brauchst die Contao Grundinstallation + die /composer/composer.json

    Wie gesagt solltest du vorher Contao aktualisieren und PHP 7.1+ verwenden.



    Zitat Zitat von gm-team Beitrag anzeigen
    aber die Erweiterungen am Testserver sind ja erst nicht upgedatet.
    Die Erweiterungen werden ja durch composer installiert (also die, die du auch per composer installiert hast..).

  12. #12
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Danke, habe die Core files aus 3.5.37 eingespielt und PHP 7.2 aktiviert sowie via PHP.ini diverse Einstellungen (memory_limit, max_execution_time etc.) hochgeschraubt.
    Nun ist das Composer Update gestartet, mal sehen was raus kommt.

  13. #13
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    So, habs jetzt 1 Stunde laufen lassen, lief erneut ins max_execution_time.

    Ich versuche es jetzt noch länger, aber komisch kommt mir das schon vor dass es in einer Stunde nichtmal (sichtbar) beginnt die Pakete upzudaten.
    Irgendein Prozess dürfte da also vorlaufen und der muss in diesem Fall gewaltig sein.

    Hier mal die composer.json (wobei mir gerade auffällt dass die Contao Version ja viel zu alt ist?):
    Code:
    {
        "name": "local/website",
        "description": "Contao Open Source CMS",
        "license": "LGPL-3.0+",
        "version": "2.11.13",
        "type": "project",
        "require": {
            "contao-community-alliance/composer-client": "~0.16",
            "contao-community-alliance/dc-general": "dev-develop",
            "contao-legacy/avatar": "~3.2",
            "contao-legacy/backupdb": "~3.2",
            "contao-legacy/calendar_ical": ">=3.1.0.9007,<3.2-dev",
            "contao-legacy/calendarfield": ">=1.6.2.9003,<1.7-dev",
            "contao-legacy/dlh_googlemaps": ">=2.0.9.9003,<2.1-dev",
            "contao-legacy/efg": ">=2.2.1.9005,<2.3-dev",
            "contao-legacy/extendedmemberinserttags": "~1.1",
            "contao-legacy/googleanalytics": ">=1.4.0.9011,<1.5-dev",
            "contao-legacy/ical_creator": ">=1.0.0.9015,<1.1-dev",
            "contao-legacy/inlinemedia": "~1.0",
            "contao-legacy/inserttags": "~1.9",
            "contao-legacy/pdf-template": ">=3.3.0.9008,<3.4-dev",
            "contao-legacy/rocksolid-columns": "~1.0",
            "contao-legacy/rocksolid-custom-elements": "~1.2",
            "contao-legacy/rocksolid-icon-picker": "~1.0",
            "contao-legacy/rocksolid-theme-assistant": "~1.1",
            "contao-legacy/tabcontrol": ">=3.0.2.9011,<3.1-dev",
            "contao-legacy/tcpdf_ext": ">=3.0.0.9014,<3.1-dev",
            "contao-legacy/tinymce_legacy": ">=1.0.0.9025,<1.1-dev",
            "metamodels/attribute_select": "dev-tng",
            "metamodels/bundle_all": "dev-master",
            "metamodels/core": "dev-tng",
            "psi/table4ward": ">=1.2.0.0,<1.3-dev"
        },
        "minimum-stability": "stable",
        "prefer-stable": true,
        "config": {
            "preferred-install": "dist",
            "cache-dir": "cache",
            "component-dir": "../assets/components"
        },
        "repositories": [
            {
                "type": "composer",
                "url": "https://legacy-packages-via.contao-community-alliance.org/"
            },
            {
                "type": "artifact",
                "url": "packages"
            }
        ],
        "extra": {
            "contao": {
                "migrated": "done"
            }
        }
    }
    Und hier die Liste aus der Paketverwaltung:
    Code:
    contao-community-alliance/composer-client	0.15.1 ? ~0.16	 	
    contao-community-alliance/dc-general	dev-develop (853362c0)		 			
    contao-legacy/avatar	3.2.3.9003	 	 
    contao-legacy/backupdb	3.2.2.9004	 	 
    contao-legacy/calendarfield	1.6.2.9003	 	 
    contao-legacy/calendar_ical	3.1.0.9007	 	 
    contao-legacy/dlh_googlemaps	2.0.9.9003	 	 
    contao-legacy/efg	2.2.1.9005	 	 
    contao-legacy/extendedmemberinserttags	1.1.0.9015	 	 
    contao-legacy/googleanalytics	1.4.0.9011	 	 
    contao-legacy/ical_creator	1.0.0.9015	 	 
    contao-legacy/inlinemedia	1.0.0.9010	 	 
    contao-legacy/inserttags	1.9.2.9002	 	 
    contao-legacy/pdf-template	3.3.0.9008	 	 
    contao-legacy/rocksolid-columns	1.0.3.9007	 	 
    contao-legacy/rocksolid-custom-elements	1.2.9.9002	 	 
    contao-legacy/rocksolid-icon-picker	1.0.5.9015	 	 
    contao-legacy/rocksolid-theme-assistant	1.1.2.9007	 	 
    contao-legacy/tabcontrol	3.0.4.9011	 	 
    contao-legacy/tcpdf_ext	3.0.0.9014	 	 
    contao-legacy/tinymce_legacy	1.0.0.9029	 	 			
    metamodels/attribute_select	dev-tng (31de9ca0)		 
    metamodels/bundle_all	dev-master (f5892747)		 
    metamodels/core	dev-tng (8f3a486f)		 		
    psi/table4ward	1.2.1
    Und folgende Erweiterungen sieht man noch unter system/modules:
    Code:
    backports-initialize-system
    events-contao-bindings
    eigententwicklung
    justtextwidgets
    metamodels
    metamodelsattribute_alias
    metamodelsattribute_checkbox
    metamodelsattribute_combinedvalues
    metamodelsattribute_country
    metamodelsattribute_decimal
    metamodelsattribute_file
    metamodelsattribute_langcode
    metamodelsattribute_longtext
    metamodelsattribute_numeric
    metamodelsattribute_select
    metamodelsattribute_tabletext
    metamodelsattribute_tags
    metamodelsattribute_text
    metamodelsattribute_timestamp
    metamodelsattribute_translatedalias
    metamodelsattribute_translatedcheckbox
    metamodelsattribute_translatedcombinedvalues
    metamodelsattribute_translatedfile
    metamodelsattribute_translatedlongtext
    metamodelsattribute_translatedselect
    metamodelsattribute_translatedtabletext
    metamodelsattribute_translatedtags
    metamodelsattribute_translatedtext
    metamodelsattribute_url
    metamodelsfilter_checkbox
    metamodelsfilter_fromto
    metamodelsfilter_range
    metamodelsfilter_select
    metamodelsfilter_tags
    metamodelsfilter_text
    newsletter2go
    pdf-template
    rocksolid-mega-menu
    rocksolid-slider
    tabcontrol
    TWCSVImport
    zaeo
    Soll ich es nochmal mit 3 Stunden versuchen?

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

    Standard

    Du solltest den detached mode verwenden.

    Und ich würde es dir empfehlen das ganze Lokal zu machen und dann am Server nur ein composer install ausführen. Vorsicht: dazu musst du lokal die selbe PHP Version verwenden wie am Zielserver. Andernfalls musst du die PHP Version in der composer.json festlegen. Siehe auch hier.

  15. #15
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Und ich würde es dir empfehlen das ganze Lokal zu machen und dann am Server nur ein composer install ausführen. Vorsicht: dazu musst du lokal die selbe PHP Version verwenden wie am Zielserver. Andernfalls musst du die PHP Version in der composer.json festlegen. Siehe auch hier.
    Ich mache es inzwischen eh lokal. Wenn ich am Server ein composer install ausführe, müsste das aber quasi eine bereinigte Installation sein, wo keine Erweiterungen vorhanden sind?

    Aktuell versuche ich es lokal mit PHP 7.2. Am Server habe ich jedoch 7.0. Sollte es nun durchgehen müsste ich also PHP 7.0 in der composer.json dann einfügen?

    Zum jetzigen Zeitpunkt läuft das ganze seit einer Stunde, bin mal gespannt.
    Dazu gleich noch eine Frage bitte: Sollte ich besser gleich abbrechen und auf detached mode umstellen oder nun abwarten da der Prozess schon eine Stunde läuft?

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

    Standard

    Zitat Zitat von gm-team Beitrag anzeigen
    Ich mache es inzwischen eh lokal.
    Machst du das über das Backend? Du solltest das Update über die Konsole machen.



    Zitat Zitat von gm-team Beitrag anzeigen
    Wenn ich am Server ein composer install ausführe, müsste das aber quasi eine bereinigte Installation sein, wo keine Erweiterungen vorhanden sind?
    Nein, es wird der Stand hergestellt, der in der composer.lock festgehalten wird.



    Zitat Zitat von gm-team Beitrag anzeigen
    Sollte es nun durchgehen müsste ich also PHP 7.0 in der composer.json dann einfügen?
    Brich es ab. Mache die Änderung in der composer.json und führe dann das composer update über die Konsole durch.

    Sicher, dass du kein PHP 7.1+ am Server einstellen kannst? PHP 7.0 wird nicht mehr unterstützt.



    Zitat Zitat von gm-team Beitrag anzeigen
    Zum jetzigen Zeitpunkt läuft das ganze seit einer Stunde, bin mal gespannt.
    Wenn du das immer noch über das Contao Backend ohne detached mode machst: brich es ab, starte den Web Server neu und führe das composer update stattdessen über die Konsole aus.
    Geändert von Spooky (18.12.2018 um 14:10 Uhr)

  17. #17
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Machst du das über das Backend? Du solltest da Update über die Konsole machen.
    Nein, mache ich über die Konsole.

    Brich es ab. Mache die Änderung in der composer.json und führe dann das composer update über die Konsole durch.

    Sicher, dass du kein PHP 7.1+ am Server einstellen kannst? PHP 7.0 wird nicht mehr unterstützt.
    Bin mit dem Provider in Kontakt. Ich kann ihn fragen ob die Möglichkeit für PHP 7.2 bestünde, aber das müsste er sicher erst einrichten.
    Wie meinst du "nicht mehr unterstützt" - von wem/was? Es handelt sich um Contao 3.5.

    Dann stelle ich jetzt detached mode ein, füge die PHP Version hinzu und starte nochmal. Ich kann es auch theoretisch über Nacht laufen lassen falls irgendwann mal doch etwas "weitergeht".

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

    Standard

    Zitat Zitat von gm-team Beitrag anzeigen
    Nein, mache ich über die Konsole.
    Hm.. ok. Aber warum musstest du dann überhaupt die max_execution_time ändern? Über die Konsole gibt es keine max_execution_time.
    Poste mal die gesamte Konsolenausgabe bis zu dem Punkt wo es hängt.



    Zitat Zitat von gm-team Beitrag anzeigen
    Wie meinst du "nicht mehr unterstützt" - von wem/was?
    Von PHP: http://php.net/supported-versions.php
    Alles was rot ist, ist tot.



    Zitat Zitat von gm-team Beitrag anzeigen
    Dann stelle ich jetzt detached mode ein, füge die PHP Version hinzu und starte nochmal. Ich kann es auch theoretisch über Nacht laufen lassen falls irgendwann mal doch etwas "weitergeht".
    Das mit dem detached mode kannst du (und solltest du) zwar weiterhin umsetzen - aber da du die composer Operation ohnehin schon über die Konsole ausführst, wird das nichts bringen.

  19. #19
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Hm.. ok. Aber warum musstest du dann überhaupt die max_execution_time ändern? Über die Konsole gibt es keine max_execution_time.
    Poste mal die gesamte Konsolenausgabe bis zu dem Punkt wo es hängt.
    Ich gebe zB folgendes per Konsole ein:
    Code:
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G -d max_execution_time=10800 composer.phar update --no-ansi --no-interaction --prefer-dist
    Das Ergebnis ist folgendes:
    Code:
    The "contao-community-alliance/composer-plugin" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Dies steht nun seit über 2 Stunden da. Ich hatte die max_execution_time zuvor auf 3600 gestellt und nach exakt einer Stunde kam die Meldung dass die Zeit um ist.

    Ich habe das mit dem detached mode wohl falsch verstanden und benutze ihn mit dieser Schreibweise also eh bereits? Aber die max_execution_time die ich mitgebe greift ja trotzdem.
    Oder müsste ich dazu den Befehl nochmal modifizieren? Wie auch immer, wenn du meinst es bringt per Konsole auch nicht mehr dann ist es eh egal.

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

    Standard

    Zitat Zitat von gm-team Beitrag anzeigen
    Ich gebe zB folgendes per Konsole ein:
    Code:
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G -d max_execution_time=10800 composer.phar update --no-ansi --no-interaction --prefer-dist
    Das Ergebnis ist folgendes:
    Code:
    The "contao-community-alliance/composer-plugin" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Dies steht nun seit über 2 Stunden da. Ich hatte die max_execution_time zuvor auf 3600 gestellt und nach exakt einer Stunde kam die Meldung dass die Zeit um ist.
    Probiere mal folgendes:

    Code:
    /Applications/MAMP/bin/php/php7.2.10/bin/php composer.phar selfupdate
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update contao-community-alliance/composer-plugin --prefer-dist
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update -o --prefer-dist



    Zitat Zitat von gm-team Beitrag anzeigen
    Ich habe das mit dem detached mode wohl falsch verstanden und benutze ihn mit dieser Schreibweise also eh bereits?
    Nein, der detached mode ist ein Modus der Composer Paketverwaltung für Contao 3, wo die composer Operationen, die du über das Backend anstößst, über einen eigenen Prozess durchgeführt werden. So als wäre es eine Konsolenoperation.



    Zitat Zitat von gm-team Beitrag anzeigen
    Aber die max_execution_time die ich mitgebe greift ja trotzdem.
    Ja, weil du sie mit gibst. Über das PHP CLI solltest du prinzipiell keine max_execution_time haben.

  21. #21
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Code:
    /Applications/MAMP/bin/php/php7.2.10/bin/php composer.phar selfupdate
    Ergebnis:
    Code:
    The "contao-community-alliance/composer-plugin" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
    You are already using composer version 1.8.0 (stable channel).
    Code:
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update contao-community-alliance/composer-plugin --prefer-dist
    Ergebnis:
    Code:
    The "contao-community-alliance/composer-plugin" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Was mir auffällt, ist dass die zwei letzten Zeilen diesmal in grünem Text erscheinen, ich bilde mir ein dass das zuvor nicht der Fall war, kann mich aber auch irren.
    Aha, siehe da, nun weiteres Ergebnis :-)
    Code:
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - The requested package contao-community-alliance/composer-client (locked at 0.15.1, required as ~0.16) is satisfiable by contao-community-alliance/composer-client[0.15.1] but these conflict with your requirements or minimum-stability.
      Problem 2
        - metamodels/filter_text 1.0.2 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/filter_text 1.0.1 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/filter_text 1.0.0 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/filter_checkbox 1.0.1 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/filter_checkbox 1.0.0 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/bundle_filter 1.0.0 requires metamodels/filter_checkbox ~1.0 -> satisfiable by metamodels/filter_checkbox[1.0.0, 1.0.1].
        - Removal request for metamodels/filter_text == 2.0.9999999.9999999-dev
        - Conclusion: remove contao/core 3.3.3
        - Removal request for metamodels/filter_text == dev-tng
        - Conclusion: don't install contao/core 3.3.3
        - metamodels/bundle_filter 1.0.0 requires metamodels/filter_text * -> satisfiable by metamodels/filter_text[2.0.x-dev, dev-tng, 1.0.0, 1.0.1, 1.0.2, 2.0.0, 2.0.1, 2.0.2, 2.0.3].
        - metamodels/bundle_filter 1.0.0 requires metamodels/filter_text * -> satisfiable by metamodels/filter_text[2.0.x-dev, dev-tng, 1.0.0, 1.0.1, 1.0.2, 2.0.0, 2.0.1, 2.0.2, 2.0.3].
        - metamodels/filter_text 2.0.0 requires contao/core ^3.5.5 -> satisfiable by contao/core[3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.26, 3.5.27, 3.5.28, 3.5.29, 3.5.30, 3.5.31, 3.5.32, 3.5.33, 3.5.34, 3.5.35, 3.5.36, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
        - metamodels/filter_text 2.0.1 requires contao/core ^3.5.5 -> satisfiable by contao/core[3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.26, 3.5.27, 3.5.28, 3.5.29, 3.5.30, 3.5.31, 3.5.32, 3.5.33, 3.5.34, 3.5.35, 3.5.36, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
        - metamodels/filter_text 2.0.2 requires contao/core ^3.5.5 -> satisfiable by contao/core[3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.26, 3.5.27, 3.5.28, 3.5.29, 3.5.30, 3.5.31, 3.5.32, 3.5.33, 3.5.34, 3.5.35, 3.5.36, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
        - metamodels/filter_text 2.0.3 requires contao/core ^3.5.5 -> satisfiable by contao/core[3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.26, 3.5.27, 3.5.28, 3.5.29, 3.5.30, 3.5.31, 3.5.32, 3.5.33, 3.5.34, 3.5.35, 3.5.36, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
        - Can only install one of: contao/core[3.5.10, 3.3.3].
        - Can only install one of: contao/core[3.5.11, 3.3.3].
        - Can only install one of: contao/core[3.5.12, 3.3.3].
        - Can only install one of: contao/core[3.5.13, 3.3.3].
        - Can only install one of: contao/core[3.5.14, 3.3.3].
        - Can only install one of: contao/core[3.5.15, 3.3.3].
        - Can only install one of: contao/core[3.5.16, 3.3.3].
        - Can only install one of: contao/core[3.5.17, 3.3.3].
        - Can only install one of: contao/core[3.5.18, 3.3.3].
        - Can only install one of: contao/core[3.5.19, 3.3.3].
        - Can only install one of: contao/core[3.5.20, 3.3.3].
        - Can only install one of: contao/core[3.5.21, 3.3.3].
        - Can only install one of: contao/core[3.5.22, 3.3.3].
        - Can only install one of: contao/core[3.5.23, 3.3.3].
        - Can only install one of: contao/core[3.5.24, 3.3.3].
        - Can only install one of: contao/core[3.5.25, 3.3.3].
        - Can only install one of: contao/core[3.5.26, 3.3.3].
        - Can only install one of: contao/core[3.5.27, 3.3.3].
        - Can only install one of: contao/core[3.5.28, 3.3.3].
        - Can only install one of: contao/core[3.5.29, 3.3.3].
        - Can only install one of: contao/core[3.5.30, 3.3.3].
        - Can only install one of: contao/core[3.5.31, 3.3.3].
        - Can only install one of: contao/core[3.5.32, 3.3.3].
        - Can only install one of: contao/core[3.5.33, 3.3.3].
        - Can only install one of: contao/core[3.5.34, 3.3.3].
        - Can only install one of: contao/core[3.5.35, 3.3.3].
        - Can only install one of: contao/core[3.5.36, 3.3.3].
        - Can only install one of: contao/core[3.5.5, 3.3.3].
        - Can only install one of: contao/core[3.5.6, 3.3.3].
        - Can only install one of: contao/core[3.5.7, 3.3.3].
        - Can only install one of: contao/core[3.5.8, 3.3.3].
        - Can only install one of: contao/core[3.5.9, 3.3.3].
        - Installation request for contao/core (locked at 3.3.3) -> satisfiable by contao/core[3.3.3].
        - Installation request for metamodels/bundle_filter (locked at 1.0.0) -> satisfiable by metamodels/bundle_filter[1.0.0].
    Also für "Problem 1" muss ich die composer.lock bearbeiten und folgendes
    Code:
    "name": "contao-community-alliance/composer-client",
                "version": "0.15.1",
    ändern auf
    Code:
    "name": "contao-community-alliance/composer-client",
                "version": "~0.16",
    Nehme ich an.

    "Problem 2" also eine Inkompatibilität bei MetaModels. Ich habe ja die original files der 3.3.3 überschrieben mit den heruntergeladenen files aus 3.5.37.
    So habe ich es bei der lokalen Installation gemacht, die Testinstallation am Server habe ich via Live-Update upgedatet, hier ging dann auch MetaModels nicht mehr.
    Aber was ich herauslese passt auch hier eine composer.lock Konfiguration nicht, es ist wohl noch auf 3.3.3 fixiert?

    Danke vielmals soweit!

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

    Standard

    Nein, niemals die composer.lock bearbeiten! Mach das wieder rückgängig und führe folgendes aus:

    Code:
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update contao-community-alliance/composer-plugin --prefer-dist --with-all-dependencies
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update -o --prefer-dist

  23. #23
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Nein, niemals die composer.lock bearbeiten! Mach das wieder rückgängig und führe folgendes aus:
    Habe ich eh noch nicht, aber danke für den Hinweis.

    Code:
    Code:
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update contao-community-alliance/composer-plugin --prefer-dist --with-all-dependencies
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update -o --prefer-dist
    Ergebnis:
    Code:
    The "contao-community-alliance/composer-plugin" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - The requested package contao-community-alliance/composer-client (locked at 0.15.1, required as ~0.16) is satisfiable by contao-community-alliance/composer-client[0.15.1] but these conflict with your requirements or minimum-stability.
      Problem 2
        - metamodels/filter_text 1.0.2 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/filter_text 1.0.1 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/filter_text 1.0.0 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/filter_checkbox 1.0.1 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/filter_checkbox 1.0.0 requires metamodels/core ~1 -> satisfiable by metamodels/core[1.0.0, 1.0.1, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.15, 1.0.16, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0-alpha1] but these conflict with your requirements or minimum-stability.
        - metamodels/bundle_filter 1.0.0 requires metamodels/filter_checkbox ~1.0 -> satisfiable by metamodels/filter_checkbox[1.0.0, 1.0.1].
        - Removal request for metamodels/filter_text == 2.0.9999999.9999999-dev
        - Conclusion: remove contao/core 3.3.3
        - Removal request for metamodels/filter_text == dev-tng
        - Conclusion: don't install contao/core 3.3.3
        - metamodels/bundle_filter 1.0.0 requires metamodels/filter_text * -> satisfiable by metamodels/filter_text[2.0.x-dev, dev-tng, 1.0.0, 1.0.1, 1.0.2, 2.0.0, 2.0.1, 2.0.2, 2.0.3].
        - metamodels/bundle_filter 1.0.0 requires metamodels/filter_text * -> satisfiable by metamodels/filter_text[2.0.x-dev, dev-tng, 1.0.0, 1.0.1, 1.0.2, 2.0.0, 2.0.1, 2.0.2, 2.0.3].
        - metamodels/filter_text 2.0.0 requires contao/core ^3.5.5 -> satisfiable by contao/core[3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.26, 3.5.27, 3.5.28, 3.5.29, 3.5.30, 3.5.31, 3.5.32, 3.5.33, 3.5.34, 3.5.35, 3.5.36, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
        - metamodels/filter_text 2.0.1 requires contao/core ^3.5.5 -> satisfiable by contao/core[3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.26, 3.5.27, 3.5.28, 3.5.29, 3.5.30, 3.5.31, 3.5.32, 3.5.33, 3.5.34, 3.5.35, 3.5.36, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
        - metamodels/filter_text 2.0.2 requires contao/core ^3.5.5 -> satisfiable by contao/core[3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.26, 3.5.27, 3.5.28, 3.5.29, 3.5.30, 3.5.31, 3.5.32, 3.5.33, 3.5.34, 3.5.35, 3.5.36, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
        - metamodels/filter_text 2.0.3 requires contao/core ^3.5.5 -> satisfiable by contao/core[3.5.10, 3.5.11, 3.5.12, 3.5.13, 3.5.14, 3.5.15, 3.5.16, 3.5.17, 3.5.18, 3.5.19, 3.5.20, 3.5.21, 3.5.22, 3.5.23, 3.5.24, 3.5.25, 3.5.26, 3.5.27, 3.5.28, 3.5.29, 3.5.30, 3.5.31, 3.5.32, 3.5.33, 3.5.34, 3.5.35, 3.5.36, 3.5.5, 3.5.6, 3.5.7, 3.5.8, 3.5.9].
        - Can only install one of: contao/core[3.5.10, 3.3.3].
        - Can only install one of: contao/core[3.5.11, 3.3.3].
        - Can only install one of: contao/core[3.5.12, 3.3.3].
        - Can only install one of: contao/core[3.5.13, 3.3.3].
        - Can only install one of: contao/core[3.5.14, 3.3.3].
        - Can only install one of: contao/core[3.5.15, 3.3.3].
        - Can only install one of: contao/core[3.5.16, 3.3.3].
        - Can only install one of: contao/core[3.5.17, 3.3.3].
        - Can only install one of: contao/core[3.5.18, 3.3.3].
        - Can only install one of: contao/core[3.5.19, 3.3.3].
        - Can only install one of: contao/core[3.5.20, 3.3.3].
        - Can only install one of: contao/core[3.5.21, 3.3.3].
        - Can only install one of: contao/core[3.5.22, 3.3.3].
        - Can only install one of: contao/core[3.5.23, 3.3.3].
        - Can only install one of: contao/core[3.5.24, 3.3.3].
        - Can only install one of: contao/core[3.5.25, 3.3.3].
        - Can only install one of: contao/core[3.5.26, 3.3.3].
        - Can only install one of: contao/core[3.5.27, 3.3.3].
        - Can only install one of: contao/core[3.5.28, 3.3.3].
        - Can only install one of: contao/core[3.5.29, 3.3.3].
        - Can only install one of: contao/core[3.5.30, 3.3.3].
        - Can only install one of: contao/core[3.5.31, 3.3.3].
        - Can only install one of: contao/core[3.5.32, 3.3.3].
        - Can only install one of: contao/core[3.5.33, 3.3.3].
        - Can only install one of: contao/core[3.5.34, 3.3.3].
        - Can only install one of: contao/core[3.5.35, 3.3.3].
        - Can only install one of: contao/core[3.5.36, 3.3.3].
        - Can only install one of: contao/core[3.5.5, 3.3.3].
        - Can only install one of: contao/core[3.5.6, 3.3.3].
        - Can only install one of: contao/core[3.5.7, 3.3.3].
        - Can only install one of: contao/core[3.5.8, 3.3.3].
        - Can only install one of: contao/core[3.5.9, 3.3.3].
        - Installation request for contao/core (locked at 3.3.3) -> satisfiable by contao/core[3.3.3].
        - Installation request for metamodels/bundle_filter (locked at 1.0.0) -> satisfiable by metamodels/bundle_filter[1.0.0].
    
    Adminname:composer username$ /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update -o --prefer-dist
    The "contao-community-alliance/composer-plugin" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Lädt seit ein paar Minuten, beobachte ich weiter.

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

    Standard

    Ändere
    Code:
    "minimum-stability": "stable"
    wieder auf "dev" und führe das erste Command nochmal aus.

  25. #25
    Contao-Urgestein
    Registriert seit
    29.10.2009.
    Ort
    Magdeburg
    Beiträge
    2.020
    Partner-ID
    626
    User beschenken
    Wunschliste

    Standard

    Du verwendest in der Installation eine sehr alte Version von MetaModels (dev-tng). Seit geraumer Zeit ist MetaModels in Version 2.0 als stabiles Release vorhanden. Ggf. lohnt es hier ein Update durchzuführen.

    Dazu solltest du folgende Einträge in deiner composer.json anpassen. Vermutlich sind dann Änderungen an der MM-Konfiguration notwendig.

    Code:
    "metamodels/bundle_all": "^2.0",
    "metamodels/core": "^2.0",

  26. #26
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Ergebnis:
    Code:
    The "contao-community-alliance/composer-plugin" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - The requested package contao-community-alliance/composer-client (locked at 0.15.1, required as ~0.16) is satisfiable by contao-community-alliance/composer-client[0.15.1] but these conflict with your requirements or minimum-stability.
    Du verwendest in der Installation eine sehr alte Version von MetaModels (dev-tng). Seit geraumer Zeit ist MetaModels in Version 2.0 als stabiles Release vorhanden. Ggf. lohnt es hier ein Update durchzuführen.
    Nachdem ich am Testserver bereits via Live Update von 3.3.3 auf 3.5.37 upgedatet habe, hat MM auch nicht mehr funktioniert (logfile hab ich bisher nicht analysiert).
    Demnach müsste ich so oder so updaten?


    Dazu solltest du folgende Einträge in deiner composer.json anpassen. Vermutlich sind dann Änderungen an der MM-Konfiguration notwendig.
    Werde ich dann gerne so machen. Hättest du ein paar Links/Infos was ich an der Konfiguration machen müsste? Danke.

  27. #27
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Habe nun nochmal folgendes ausgeführt:
    Code:
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update contao-community-alliance/composer-plugin --prefer-dist --with-all-dependencies
    Ergebnis:
    Code:
    The "contao-community-alliance/composer-plugin" plugin was skipped because it requires a Plugin API version ("1.0.0") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
    Loading composer repositories with package information
    Updating dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.
    
      Problem 1
        - The requested package contao-community-alliance/composer-client (locked at 0.15.1, required as ~0.16) is satisfiable by contao-community-alliance/composer-client[0.15.1] but these conflict with your requirements or minimum-stability.
    Die aktuelle composer/composer.json (habe hier die völlig alte 2.11.13 getauscht gegen 3.5.37 - hoffe das war richtig?):
    Code:
    {
        "name": "local/website",
        "description": "Contao Open Source CMS",
        "license": "LGPL-3.0+",
        "version": "3.5.37",
        "type": "project",
        "require": {
            "contao-community-alliance/composer-client": "~0.16",
            "contao-community-alliance/dc-general": "dev-develop",
            "contao-legacy/avatar": "~3.2",
            "contao-legacy/backupdb": "~3.2",
            "contao-legacy/calendar_ical": ">=3.1.0.9007,<3.2-dev",
            "contao-legacy/calendarfield": ">=1.6.2.9003,<1.7-dev",
            "contao-legacy/dlh_googlemaps": ">=2.0.9.9003,<2.1-dev",
            "contao-legacy/efg": ">=2.2.1.9005,<2.3-dev",
            "contao-legacy/extendedmemberinserttags": "~1.1",
            "contao-legacy/googleanalytics": ">=1.4.0.9011,<1.5-dev",
            "contao-legacy/ical_creator": ">=1.0.0.9015,<1.1-dev",
            "contao-legacy/inlinemedia": "~1.0",
            "contao-legacy/inserttags": "~1.9",
            "contao-legacy/pdf-template": ">=3.3.0.9008,<3.4-dev",
            "contao-legacy/rocksolid-columns": "~1.0",
            "contao-legacy/rocksolid-custom-elements": "~1.2",
            "contao-legacy/rocksolid-icon-picker": "~1.0",
            "contao-legacy/rocksolid-theme-assistant": "~1.1",
            "contao-legacy/tabcontrol": ">=3.0.2.9011,<3.1-dev",
            "contao-legacy/tcpdf_ext": ">=3.0.0.9014,<3.1-dev",
            "contao-legacy/tinymce_legacy": ">=1.0.0.9025,<1.1-dev",
            "metamodels/attribute_select": "dev-tng",
            "metamodels/bundle_all": "dev-master",
            "metamodels/core": "dev-tng",
            "psi/table4ward": ">=1.2.0.0,<1.3-dev"
        },
        "minimum-stability": "dev",
        "prefer-stable": true,
        "config": {
            "preferred-install": "dist",
            "cache-dir": "cache",
            "component-dir": "../assets/components"
        },
        "repositories": [
            {
                "type": "composer",
                "url": "https://legacy-packages-via.contao-community-alliance.org/"
            },
            {
                "type": "artifact",
                "url": "packages"
            }
        ],
        "extra": {
            "contao": {
                "migrated": "done"
            }
        }
    }

  28. #28
    Contao-Fan
    Registriert seit
    01.11.2013.
    Beiträge
    644

    Standard

    Leider hat sich seit meinem letzten posting nicht viel verändert, ich hänge noch immer an dieser Meldung.

    Weiß jemand was ich tun kann - muss ich die composer.json nochmal modifizieren oder vielleicht ein passendes contao-community-alliance/composer-client Package herunterladen?

    Ach ja, am Server läuft PHP 7.0.32
    Das muss ich dann also in der composer.json wie folgt hinterlegen nehme ich an:
    Code:
    "platform": {
        "php": "7.0.32"
    }
    Oder genügt es, einfach lokal genau diese PHP Version zu verwenden? Dann müsste ich jedoch auch sicher folgenden Befehl anpassen:

    Code:
    /Applications/MAMP/bin/php/php7.2.10/bin/php -d memory_limit=5G composer.phar update contao-community-alliance/composer-plugin --prefer-dist --with-all-dependencies
    auf
    Code:
    /Applications/MAMP/bin/php/php7.0.32/bin/php -d memory_limit=5G composer.phar update contao-community-alliance/composer-plugin --prefer-dist --with-all-dependencies
    Was jedoch wsl. für die performance wieder nicht so gut ist?

    Vielen Dank!

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

    Standard

    An deiner Stelle würde ich alle Abhängigkeiten bis auf
    Code:
    "contao-community-alliance/composer-client": ">=0.16"
    entfernen und dann ein composer update durchführen lassen. Danach, nach und nach die weiteren Pakete hinzufügen.

  30. #30
    Administrator Avatar von xchs
    Registriert seit
    19.06.2009.
    Beiträge
    14.548
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Zitat Zitat von gm-team Beitrag anzeigen
    Ach ja, am Server läuft PHP 7.0.32
    Das muss ich dann also in der composer.json wie folgt hinterlegen nehme ich an:
    Code:
    "platform": {
        "php": "7.0.32"
    }
    Ja, genau.


    Zitat Zitat von gm-team Beitrag anzeigen
    Oder genügt es, einfach lokal genau diese PHP Version zu verwenden?
    Würde auch genügen, ist aber u. U. aufwändiger, wenn Du z. B. erst PHP 7.0 installieren müsstest. Du solltest aber ohnehin früher oder später auf PHP 7.1 oder 7.2 wechseln.
    Contao Community Administrator

    [Unterstützungsmöglichkeiten]

Aktive Benutzer

Aktive Benutzer

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

Lesezeichen

Lesezeichen

Berechtigungen

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