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

Warning: The lock file is not up to date with the latest changes in composer.json. #472

Closed
Mynyx opened this issue Oct 23, 2019 · 20 comments
Labels
Milestone

Comments

@Mynyx
Copy link

Mynyx commented Oct 23, 2019

Während der Neuinstallation von Contao 4.8 erscheint eine Warnung:

Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

Vollständige Konsolenausgabe:

> Installing contao/managed-edition 4.8

> Resolving dependencies using Composer Cloud v2.0.11

# Job ID 9TBvw2JjDeWh03tpzn7wZgPxdosf2Rl3zgjC4FCw9uDmInk0zDFBbVLKb5MQ0TgolzmkigJHUVxfJRIIuwTMPLm6PKQrwytBWxmAaBKsTRnBMdpCCQ1ggB5ePbKKk completed in 52 seconds
# Memory usage: 761.91MB (peak: 3425.13MB), time: 52.45s.

$ /usr/bin/php73 -q -d memory_limit=-1 /www/htdocs/xxx/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader

ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
Added the web/.htaccess file.
Added the web/app.php file.
Added the web/preview.php file.
Added the web/robots.txt file.
Added the web/index.php file.

 // Clearing the cache for the prod environment with debug                      
 // false                                                                       

 [OK] Cache for the "prod" environment (debug=false) was successfully cleared.  


 // Warming up the cache for the prod environment with debug                    
 // false                                                                       

 [OK] Cache for the "prod" environment (debug=false) was successfully warmed.   


 Trying to install assets as relative symbolic links.

 --- ------------------ ------------------ 
      Bundle             Method / Error    
 --- ------------------ ------------------ 
  ✔   ContaoCoreBundle   relative symlink  
 --- ------------------ ------------------ 

 [OK] All assets were successfully installed.                                   


 * assets/css
 * assets/js
 * system
 * system/cache
 * system/config
 * system/modules
 * system/themes
 * system/tmp
 * templates
 * web/share
 * web/system
 * assets/images
 * files


 --- ------------------------ ---------------------------------------------------------------- 
      Symlink                  Target / Error                                                  
 --- ------------------------ ---------------------------------------------------------------- 
  ✔   system/themes/flexible   vendor/contao/core-bundle/src/Resources/contao/themes/flexible  
  ✔   web/assets               assets                                                          
  ✔   web/system/themes        system/themes                                                   
  ✔   system/logs              var/logs                                                        
 --- ------------------------ ---------------------------------------------------------------- 

Done! Please open the Contao install tool and make sure the database is up-to-date.
Loading composer repositories with package information
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Package operations: 156 installs, 0 updates, 0 removals
  - Installing contao-components/installer (1.3.1): Downloading (100%)
  - Installing ocramius/package-versions (1.5.1): Downloading (100%)
  - Installing symfony/polyfill-ctype (v1.12.0): Downloading (100%)
  - Installing symfony/filesystem (v4.3.5): Downloading (100%)
  - Installing psr/log (1.1.0): Downloading (100%)
  - Installing symfony/polyfill-php73 (v1.12.0): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.12.0): Downloading (100%)
  - Installing symfony/polyfill-php72 (v1.12.0): Downloading (100%)
  - Installing symfony/polyfill-intl-idn (v1.12.0): Downloading (100%)
  - Installing symfony/mime (v4.3.5): Downloading (100%)
  - Installing symfony/http-foundation (v4.3.5): Downloading (100%)
  - Installing symfony/event-dispatcher-contracts (v1.1.7): Downloading (100%)
  - Installing symfony/event-dispatcher (v4.3.5): Downloading (100%)
  - Installing symfony/debug (v4.3.5): Downloading (100%)
  - Installing symfony/http-kernel (v4.3.5): Downloading (100%)
  - Installing psr/container (1.0.0): Downloading (100%)
  - Installing symfony/service-contracts (v1.1.7): Downloading (100%)
  - Installing symfony/config (v4.3.5): Downloading (100%)
  - Installing symfony/routing (v4.3.5): Downloading (100%)
  - Installing symfony/dependency-injection (v4.3.5): Downloading (100%)
  - Installing contao/manager-plugin (2.7.1): Downloading (100%)
  - Installing ausi/slug-generator (v1.1.0): Downloading (100%)
  - Installing dasprid/enum (1.0.0): Downloading (100%)
  - Installing bacon/bacon-qr-code (2.0.0): Downloading (100%)
  - Installing contao-components/ace (1.4.4): Downloading (100%)
  - Installing contao-components/chosen (1.2.2): Downloading (100%)
  - Installing contao-components/colorbox (1.6.5): Downloading (100%)
  - Installing contao-components/colorpicker (1.5.1): Downloading (100%)
  - Installing contao-components/contao (9.0.0): Downloading (100%)
  - Installing contao-components/datepicker (2.3.1): Downloading (100%)
  - Installing contao-components/dropzone (5.5.0): Downloading (100%)
  - Installing contao-components/highlight (9.15.6): Downloading (100%)
  - Installing contao-components/jquery (3.4.1): Downloading (100%)
  - Installing contao-components/jquery-ui (1.12.1.1): Downloading (100%)
  - Installing contao-components/mediabox (1.5.5): Downloading (100%)
  - Installing contao-components/mootools (1.6.0.6): Downloading (100%)
  - Installing contao-components/simplemodal (2.1.1): Downloading (100%)
  - Installing contao-components/swipe (2.2.0): Downloading (100%)
  - Installing contao-components/tablesort (4.0.1): Downloading (100%)
  - Installing contao-components/tablesorter (2.1.1): Downloading (100%)
  - Installing contao-components/tinymce4 (4.9.4): Downloading (100%)
  - Installing contao/conflicts (dev-master c08b748)
  - Installing webmozart/assert (1.5.0): Downloading (100%)
  - Installing webmozart/path-util (2.3.0): Downloading (100%)
  - Installing imagine/imagine (1.2.2): Downloading (100%)
  - Installing contao/image (1.0.0): Downloading (100%)
  - Installing contao/imagine-svg (0.2.2): Downloading (100%)
  - Installing symfony/options-resolver (v4.3.5): Downloading (100%)
  - Installing symfony/lock (v4.3.5): Downloading (100%)
  - Installing symfony/var-exporter (v4.3.5): Downloading (100%)
  - Installing psr/cache (1.0.1): Downloading (100%)
  - Installing symfony/cache-contracts (v1.1.7): Downloading (100%)
  - Installing symfony/cache (v4.3.5): Downloading (100%)
  - Installing toflar/psr6-symfony-http-cache-store (2.1.1): Downloading (100%)
  - Installing symfony/yaml (v4.3.5): Downloading (100%)
  - Installing twig/twig (v2.12.1): Downloading (100%)
  - Installing symfony/var-dumper (v4.3.5): Downloading (100%)
  - Installing symfony/translation-contracts (v1.1.7): Downloading (100%)
  - Installing symfony/twig-bridge (v4.3.5): Downloading (100%)
  - Installing symfony/twig-bundle (v4.3.5): Downloading (100%)
  - Installing symfony/web-profiler-bundle (v4.3.5): Downloading (100%)
  - Installing symfony/polyfill-iconv (v1.12.0): Downloading (100%)
  - Installing doctrine/lexer (1.1.0): Downloading (100%)
  - Installing egulias/email-validator (2.1.11): Downloading (100%)
  - Installing swiftmailer/swiftmailer (v6.2.1): Downloading (100%)
  - Installing symfony/swiftmailer-bundle (v3.3.0): Downloading (100%)
  - Installing symfony/inflector (v4.3.5): Downloading (100%)
  - Installing symfony/property-access (v4.3.5): Downloading (100%)
  - Installing symfony/security (v4.3.5): Downloading (100%)
  - Installing symfony/security-bundle (v4.3.5): Downloading (100%)
  - Installing zendframework/zend-eventmanager (3.2.1): Downloading (100%)
  - Installing zendframework/zend-code (3.4.0): Downloading (100%)
  - Installing ocramius/proxy-manager (2.2.3): Downloading (100%)
  - Installing symfony/proxy-manager-bridge (v4.3.5): Downloading (100%)
  - Installing symfony/process (v4.3.5): Downloading (100%)
  - Installing monolog/monolog (1.25.1): Downloading (100%)
  - Installing symfony/monolog-bridge (v4.3.5): Downloading (100%)
  - Installing symfony/monolog-bundle (v3.4.0): Downloading (100%)
  - Installing symfony/finder (v4.3.5): Downloading (100%)
  - Installing symfony/framework-bundle (v4.3.5): Downloading (100%)
  - Installing symfony/expression-language (v4.3.5): Downloading (100%)
  - Installing symfony/dotenv (v4.3.5): Downloading (100%)
  - Installing symfony/debug-bundle (v4.3.5): Downloading (100%)
  - Installing symfony/console (v4.3.5): Downloading (100%)
  - Installing psr/http-message (1.0.1): Downloading (100%)
  - Installing php-http/promise (v1.0.0): Downloading (100%)
  - Installing php-http/httplug (v1.1.0): Downloading (100%)
  - Installing ralouphie/getallheaders (3.0.3): Downloading (100%)
  - Installing guzzlehttp/psr7 (1.6.1): Downloading (100%)
  - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)
  - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)
  - Installing php-http/guzzle6-adapter (v1.1.1): Downloading (100%)
  - Installing composer/ca-bundle (1.2.4): Downloading (100%)
  - Installing ua-parser/uap-php (v3.9.1): Downloading (100%)
  - Installing paragonie/random_compat (v9.99.99): Downloading (100%)
  - Installing nelmio/security-bundle (2.7.0): Downloading (100%)
  - Installing nelmio/cors-bundle (1.5.6): Downloading (100%)
  - Installing symfony/translation (v4.3.5): Downloading (100%)
  - Installing lexik/maintenance-bundle (v2.1.5): Downloading (100%)
  - Installing php-http/message-factory (v1.0.2): Downloading (100%)
  - Installing clue/stream-filter (v1.4.1): Downloading (100%)
  - Installing php-http/message (1.8.0): Downloading (100%)
  - Installing php-http/discovery (1.7.0): Downloading (100%)
  - Installing php-http/client-common (1.9.1): Downloading (100%)
  - Installing friendsofsymfony/http-cache (2.7.0): Downloading (100%)
  - Installing friendsofsymfony/http-cache-bundle (2.7.2): Downloading (100%)
  - Installing doctrine/annotations (v1.8.0): Downloading (100%)
  - Installing doctrine/reflection (v1.0.0): Downloading (100%)
  - Installing doctrine/event-manager (v1.0.0): Downloading (100%)
  - Installing doctrine/collections (v1.6.2): Downloading (100%)
  - Installing doctrine/cache (v1.8.0): Downloading (100%)
  - Installing doctrine/persistence (1.1.1): Downloading (100%)
  - Installing symfony/doctrine-bridge (v4.3.5): Downloading (100%)
  - Installing doctrine/inflector (v1.3.0): Downloading (100%)
  - Installing doctrine/doctrine-cache-bundle (1.3.5): Downloading (100%)
  - Installing jdorn/sql-formatter (v1.2.17): Downloading (100%)
  - Installing doctrine/dbal (v2.8.1): Downloading (100%)
  - Installing doctrine/doctrine-bundle (1.11.2): Downloading (100%)
  - Installing sensiolabs/ansi-to-html (v1.1.3): Downloading (100%)
  - Installing patchwork/utf8 (v1.3.1): Downloading (100%)
  - Installing true/punycode (v2.1.1): Downloading (100%)
  - Installing terminal42/service-annotation-bundle (1.0.0): Downloading (100%)
  - Installing symfony/asset (v4.3.5): Downloading (100%)
  - Installing symfony-cmf/routing (2.1.0): Downloading (100%)
  - Installing symfony-cmf/routing-bundle (2.1.1): Downloading (100%)
  - Installing paragonie/constant_time_encoding (v2.2.3): Downloading (100%)
  - Installing beberlei/assert (v3.2.6): Downloading (100%)
  - Installing spomky-labs/otphp (v9.1.4): Downloading (100%)
  - Installing simplepie/simplepie (1.5.3): Downloading (100%)
  - Installing scssphp/scssphp (1.0.5): Downloading (100%)
  - Installing lcobucci/jwt (3.3.1): Downloading (100%)
  - Installing scheb/two-factor-bundle (v4.7.1): Downloading (100%)
  - Installing phpunit/php-token-stream (3.1.1): Downloading (100%)
  - Installing phpspec/php-diff (v1.1.0): Downloading (100%)
  - Installing oyejorge/less.php (v1.7.0.14): Downloading (100%)
  - Installing michelf/php-markdown (1.8.0): Downloading (100%)
  - Installing matthiasmullie/path-converter (1.1.2): Downloading (100%)
  - Installing matthiasmullie/minify (1.3.61): Downloading (100%)
  - Installing league/uri-parser (1.4.1): Downloading (100%)
  - Installing league/uri-interfaces (1.1.1): Downloading (100%)
  - Installing league/uri-schemes (1.2.1): Downloading (100%)
  - Installing psr/simple-cache (1.0.1): Downloading (100%)
  - Installing league/uri-hostname-parser (1.1.1): Downloading (100%)
  - Installing league/uri-components (1.8.2): Downloading (100%)
  - Installing league/uri-manipulations (1.5.0): Downloading (100%)
  - Installing league/uri (5.3.0)
  - Installing symfony/templating (v4.3.5): Downloading (100%)
  - Installing knplabs/knp-time-bundle (v1.9.1): Downloading (100%)
  - Installing knplabs/knp-menu (2.6.0): Downloading (100%)
  - Installing knplabs/knp-menu-bundle (v2.3.0): Downloading (100%)
  - Installing doctrine/instantiator (1.2.0): Downloading (100%)
  - Installing doctrine/common (v2.11.0): Downloading (100%)
  - Installing doctrine/orm (v2.6.4): Downloading (100%)
  - Installing contao/core-bundle (4.8.4): Downloading (100%)
  - Installing contao/installation-bundle (4.8.4): Downloading (100%)
  - Installing contao/manager-bundle (4.8.4): Downloading (100%)
Generating optimized autoload files
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication

# Process terminated with exit code 0
# Result: OK


---

### Prozess erfolgreich abgeschlossen ###
@Toflar
Copy link
Member

Toflar commented Oct 23, 2019

Hattest du die composer.json manuell angepasst?

@fritzmg
Copy link
Contributor

fritzmg commented Oct 23, 2019

Yeah, something weird is going on in the Contao Manager right now. Someone else on the forum has the same problem. What's even weirder is: as you can see in the console output, the post-install-cmd is executed before the install operation, which causes all kinds of problems (e.g. no translations loaded in the production cache). This happens with any update operation (using the composer resolver cloud at least).

@Mynyx
Copy link
Author

Mynyx commented Oct 23, 2019

Hattest du die composer.json manuell angepasst?

Nein

@fritzmg
Copy link
Contributor

fritzmg commented Oct 23, 2019

@Mynyx poste bitte auch den Inhalt des contao-manager/composer-install.out.log, um zu überprüfen, ob dort die Reihenfolge auch verdreht ist.

@Mynyx
Copy link
Author

Mynyx commented Oct 23, 2019

contao-manager/composer-install.out.log

ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
Added the web/.htaccess file.
Added the web/app.php file.
Added the web/preview.php file.
Added the web/robots.txt file.
Added the web/index.php file.

 // Clearing the cache for the prod environment with debug
 // false

 [OK] Cache for the "prod" environment (debug=false) was successfully cleared.


 // Warming up the cache for the prod environment with debug
 // false

 [OK] Cache for the "prod" environment (debug=false) was successfully warmed.


 Trying to install assets as relative symbolic links.

 --- ------------------ ------------------
      Bundle             Method / Error
 --- ------------------ ------------------
  ✔   ContaoCoreBundle   relative symlink
 --- ------------------ ------------------

 [OK] All assets were successfully installed.


 * assets/css
 * assets/js
 * system
 * system/cache
 * system/config
 * system/modules
 * system/themes
 * system/tmp
 * templates
 * web/share
 * web/system
 * assets/images
 * files


 --- ------------------------ ----------------------------------------------------------------
      Symlink                  Target / Error
 --- ------------------------ ----------------------------------------------------------------
  ✔   system/themes/flexible   vendor/contao/core-bundle/src/Resources/contao/themes/flexible
  ✔   web/assets               assets
  ✔   web/system/themes        system/themes
  ✔   system/logs              var/logs
 --- ------------------------ ----------------------------------------------------------------

Done! Please open the Contao install tool and make sure the database is up-to-date.

@Mynyx
Copy link
Author

Mynyx commented Oct 23, 2019

In dem Verzeichnis contao-manager/ existieren auch noch folgende Dateien mit dem Präfix composer-install:

  • composer-install.err.log
  • composer-install.get.json
  • composer-install.out.log
  • composer-install.set.json

@fritzmg
Copy link
Contributor

fritzmg commented Oct 23, 2019

Hm, da fehlt das tatsächliche installieren der Pakete.

@frontendschlampe
Copy link

so wie bei @Mynyx sieht meine contao-manager/composer-install.out.log auch aus

@aschempp
Copy link
Member

und in der composer-install.err.log stehen vermutlich die Pakete?

@frontendschlampe
Copy link

und in der composer-install.err.log stehen vermutlich die Pakete?

ja ...

@Mynyx
Copy link
Author

Mynyx commented Oct 29, 2019

Werden hierzu noch weitere Informationen benötigt?

@aschempp
Copy link
Member

Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.

Das ist eigentlich kein relevanter Fehler, und kann aus der Cloud entstehen. Da die Cloud die composer.json und composer.lock manipulieren muss (damit das Cloud-Prinzip funktioniert), kann das passieren. Aber ging es in diesem Issue nicht noch um ein anderes Problem?

@fritzmg
Copy link
Contributor

fritzmg commented Oct 30, 2019

Die Konsolen Ausgabe ist verkehrt, was die Analyse von Problemen im Forum etwas erschwert.

@rflx
Copy link

rflx commented Oct 30, 2019

Das ist eigentlich kein relevanter Fehler, und kann aus der Cloud entstehen. Da die Cloud die composer.json und composer.lock manipulieren muss (damit das Cloud-Prinzip funktioniert), kann das passieren. Aber ging es in diesem Issue nicht noch um ein anderes Problem?

Spielt es demfall keine Rolle wenn die composer.lock mit der composer.json nicht "in sync" (checksum) ist?

@aschempp
Copy link
Member

aschempp commented Oct 31, 2019

Spielt es demfall keine Rolle wenn die composer.lock mit der composer.json nicht "in sync" (checksum) ist?

Für die Installation spielt das keine Rolle. Composer installiert anhand der .lock, die Meldung käme wenn auch wenn du die composer.json änderst ohne ein composer update durchzuführen. Es besagt dann dass halt gemäss .lock und ggf. nicht die neusten Änderungen installiert werden.

@Mynyx
Copy link
Author

Mynyx commented Nov 4, 2019

Das ist eigentlich kein relevanter Fehler, und kann aus der Cloud entstehen. Da die Cloud die composer.json und composer.lock manipulieren muss (damit das Cloud-Prinzip funktioniert), kann das passieren. Aber ging es in diesem Issue nicht noch um ein anderes Problem?

In früheren Versionen des Contao Manager trat diese Fehlermeldung nicht auf und ich denke schon, dass alleine das Erscheinen einer Fehlermeldung zur einer deutlichen Verunsicherung des Nutzers führt.

Außerdem hat @fritzmg noch von weiteren Problemen berichtet, vielleicht meintest du dies:

Yeah, something weird is going on in the Contao Manager right now. Someone else on the forum has the same problem. What's even weirder is: as you can see in the console output, the post-install-cmd is executed before the install operation, which causes all kinds of problems (e.g. no translations loaded in the production cache). This happens with any update operation (using the composer resolver cloud at least).

@fritzmg
Copy link
Contributor

fritzmg commented Nov 4, 2019

Außerdem hat @fritzmg noch von weiteren Problemen berichtet, vielleicht meintest du dies:

Dabei könnte es sich letztendlich doch nur um einen Anzeigefehler handeln. Ich weiß aber nicht ob der nicht ohnehin schon in 1.2.1 behoben wurde?

@aschempp
Copy link
Member

aschempp commented Nov 7, 2019

Außerdem […] weiteren Problemen […]

Weitere Probleme sollten weitere Tickets erhalten, sonst gehen sie verloren 😉

@eBlick
Copy link

eBlick commented Dec 3, 2019

Ich erhalte zwischenzeitlich dieselbe Fehlermeldung in einer Contao 4.4 Installation beim Versuch eines Updates.
Jegliche Versuche eines Updates scheitern nun, genau wie die Installation neuer Pakete.
Gibt es hierzu einen Lösungsweg??

@aschempp
Copy link
Member

aschempp commented Dec 9, 2019

Wie erwähnt hat die Meldung damit nichts zu tun, die Probleme müssen einen anderen Grund haben. Am besten wendest du dich an das Community Forum oder Slack mit deinem Fehler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants