contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
85 stars 33 forks source link

cURL error 23: Failed writing body CM 1.4.0 #631

Closed MacGyer closed 3 years ago

MacGyer commented 3 years ago

Hallo,

gerade den CM auf Version 1.4.0 aktualisiert. Danach ein composer update durchgeführt, welcher mit folgender Fehlermeldung abbricht:

> Resolving dependencies using Composer Cloud v3.0.0
!!! Current server is sponsored by: Contao Association !!!

[7.2MiB/0.23s] Loading composer repositories with package information

An error occurred during resolving process:
curl error 23 while downloading https://asset-packagist.org/p/provider-latest/7267876f1fdd692316c2de21cb30f669252b150aa1480d28d76b462e76cfefdf.json: Failed writing body (247 != 4096)

# Cloud Job ID lRpf2tnLiznnFBalwv9bhxQDIEEVjvtuWpyByItBzNRdHwUiYFMG4E8m5r1SE7J9oUD7rTs2EARY2XPR47MbVnyaQ8t4R4Ra3 failed

composer.json

"repositories": [
        {
            "type": "path",
            "url": "vendor_static/bundles/wbsit-references-bundle",
            "options": {
                "symlink": true
            }
        },
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ],

Contao-Version: 4.9 (aktuellste) PHP-Version: 7.4.14

Ohne Resolver Cloud läuft das Update problemlos durch.

Wie lässt sich der Fehler beheben?

aschempp commented 3 years ago

Das sieht mir nach einem temporären Problem aus, oder lässt es sich nach mehreren Stunden noch reproduzieren?

MacGyer commented 3 years ago

Ich prüfe gleich noch mal und melde mich noch mal.

MacGyer commented 3 years ago

Jupp, immer noch kaputt. Probiere es morgen noch mal, dann sind mehrere Stunden um.

MacGyer commented 3 years ago

Hallo @aschempp,

der cURL Error 23 tritt immer noch auf.

Benötigst du weitere Infos?

aschempp commented 3 years ago

Wenn ich die Zeile richtig lese, steht da Failed writing body (247 != 4096). Sieht mir nach einem Speicherplatz- oder Berechtigungs-Problem auf deinem Server aus?

aschempp commented 3 years ago

Achso, wobei das ja in der Cloud passiert 😆

/cc @Toflar

MacGyer commented 3 years ago

genau, es geht hier explizit um die Nutzung der Resolver Cloud. Ohne RC gehts problemlos.

magicsepp commented 3 years ago

und auch in Verbinfung mit MM

> Resolving dependencies using Composer Cloud v3.0.0
!!! Current server is sponsored by: Contao Association !!!

[7.6MiB/0.24s] Loading composer repositories with package information

An error occurred during resolving process:
curl error 23 while downloading https://token:***@packages.cyberspectrum.de/r/include.json: Failed writing body (404 != 16384)

# Cloud Job ID Iaexk2vmLM0cpGNAlyBKhazrzfYhsxxoWkDRrwKXHZlIupblDCoTXZm87s0HONpe3oDLKA4IvtR51bhTZCYunqKn9a1R77ABEgDcS5o6lGAHp6wPSLlYTlcJ failed
MacGyer commented 3 years ago

Kann es sein, dass dieser Fehler auftritt, wenn man Packages von anderen Quellen als packagist.org abruft?

Toflar commented 3 years ago

@aschempp gibt's eine Möglichkeit, wie @MacGyer die Daten, die an die Cloud geschickt werden, kopieren kann? Damit ich das reproduzieren kann? Die Job-Informationen werden aus Datenschutzgründen komplett gelöscht, insofern habe ich keine Möglichkeit, sie mir zu holen. Grundsätzlich gibt es keinen Grund dafür, warum das nicht funktionieren sollte. Speicherplatz ist auch mehr als genug vorhanden (und wird immer wieder freigegeben). Direkt mit curl auf der Kommandozeile funktioniert das auch problemlos, könnte also ein Problem in Kombination mit PHP sein.

aschempp commented 3 years ago

no I don't think there is. We'd probably need the full composer.json and composer.lock

MacGyer commented 3 years ago

@aschempp

composer.zip

Dies sind die aktuelle composer.json und die composer.lock. Allerdings ist die Lock in Anbetracht der Dinge ohne Resolver-Cloud produziert. Auch nutze ich zwei lokale Quellen, welche gesymlinkt werden (siehe #633).

Toflar commented 3 years ago

Can you guys try to run your jobs again?

MacGyer commented 3 years ago

@Toflar looks good. Process wasn't interrupted:

> Resolving dependencies using Composer Cloud v3.0.0
!!! Current server is sponsored by: Contao Association !!!

[7.4MiB/0.25s] Loading composer repositories with package information
[98.3MiB/2.49s] Updating dependencies
[139.8MiB/35.80s] Lock file operations: 0 installs, 29 updates, 0 removals
[139.8MiB/35.81s]   - Upgrading contao/calendar-bundle (4.9.11 => 4.9.12)
[139.8MiB/35.81s]   - Upgrading contao/comments-bundle (4.9.11 => 4.9.12)
[139.8MiB/35.81s]   - Upgrading contao/conflicts (dev-main 5271a9a => dev-main 5844be3)
[139.8MiB/35.81s]   - Upgrading contao/core-bundle (4.9.11 => 4.9.12)
[139.8MiB/35.81s]   - Upgrading contao/faq-bundle (4.9.11 => 4.9.12)
[139.8MiB/35.81s]   - Upgrading contao/installation-bundle (4.9.11 => 4.9.12)
[139.8MiB/35.81s]   - Upgrading contao/listing-bundle (4.9.11 => 4.9.12)
[139.8MiB/35.81s]   - Upgrading contao/manager-bundle (4.9.11 => 4.9.12)
[139.8MiB/35.81s]   - Upgrading contao/news-bundle (4.9.11 => 4.9.12)
[139.8MiB/35.82s]   - Upgrading contao/newsletter-bundle (4.9.11 => 4.9.12)
[139.8MiB/35.82s]   - Upgrading doctrine/orm (2.8.1 => 2.8.2)
[139.8MiB/35.82s]   - Upgrading lcobucci/jwt (4.0.1 => 4.1.1)
[139.8MiB/35.82s]   - Upgrading menatwork/contao-multicolumnwizard-bundle (3.4.9 => 3.4.10)
[139.8MiB/35.82s]   - Upgrading nelmio/security-bundle (v2.10.1 => v2.10.2)
[139.8MiB/35.82s]   - Upgrading nyholm/psr7 (1.3.2 => 1.4.0)
[139.8MiB/35.83s]   - Upgrading scheb/2fa-backup-code (v5.4.2 => v5.6.0)
[139.8MiB/35.83s]   - Upgrading scheb/2fa-bundle (v5.4.2 => v5.6.0)
[139.8MiB/35.83s]   - Upgrading scheb/2fa-trusted-device (v5.4.2 => v5.6.0)
[139.8MiB/35.83s]   - Upgrading symfony/polyfill-ctype (v1.22.0 => v1.22.1)
[139.8MiB/35.83s]   - Upgrading symfony/polyfill-iconv (v1.22.0 => v1.22.1)
[139.8MiB/35.83s]   - Upgrading symfony/polyfill-intl-grapheme (v1.22.0 => v1.22.1)
[139.8MiB/35.83s]   - Upgrading symfony/polyfill-intl-idn (v1.22.0 => v1.22.1)
[139.8MiB/35.84s]   - Upgrading symfony/polyfill-intl-normalizer (v1.22.0 => v1.22.1)
[139.8MiB/35.84s]   - Upgrading symfony/polyfill-mbstring (v1.22.0 => v1.22.1)
[139.8MiB/35.84s]   - Upgrading symfony/polyfill-php72 (v1.22.0 => v1.22.1)
[139.8MiB/35.84s]   - Upgrading symfony/polyfill-php73 (v1.22.0 => v1.22.1)
[139.8MiB/35.84s]   - Upgrading symfony/polyfill-php80 (v1.22.0 => v1.22.1)
[139.8MiB/35.84s]   - Upgrading wbsit/form-download-bundle (0.9.0  => 0.9.0 670e47d)
[139.8MiB/35.84s]   - Upgrading wbsit/references-bundle (0.9.0  => 0.9.0 3ba7d53)
[139.1MiB/35.86s] Writing lock file
[85.5MiB/35.90s] Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
[85.5MiB/35.90s] Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
[86.0MiB/35.92s] Memory usage: 86.05MB (peak: 1204.15MB), time: 35.94s.
[86.0MiB/35.92s] Finished Composer Cloud resolving.

# Job ID 8R3ssTyPGPc2602jfRiYmEETE1Ph3I3HkqRqmb5m5I7xwtzjMYZG6PVS86I0C9MJpCA6bjM completed in 31 seconds
# Memory usage: 86.05MB (peak: 1204.15MB), time: 35.94s.

$ /usr/bin/php7.4 -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /var/www/work/wbsit-website/site/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-ansi --no-interaction --optimize-autoloader

Using config.component-dir has been deprecated. Please use extra.contao-component-dir instead.
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Package operations: 0 installs, 29 updates, 0 removals
As there is no 'unzip' command installed zip files are being unpacked using the PHP zip extension.
This may cause invalid reports of corrupted archives. Besides, any UNIX permissions (e.g. executable) defined in the archives will be lost.
Installing 'unzip' may remediate them.
  - Downloading symfony/polyfill-mbstring (v1.22.1)
  - Downloading symfony/polyfill-intl-normalizer (v1.22.1)
  - Downloading symfony/polyfill-intl-idn (v1.22.1)
  - Downloading nyholm/psr7 (1.4.0)
  - Downloading symfony/polyfill-iconv (v1.22.1)
  - Downloading symfony/polyfill-intl-grapheme (v1.22.1)
  - Downloading scheb/2fa-bundle (v5.6.0)
  - Downloading lcobucci/jwt (4.1.1)
  - Downloading doctrine/orm (2.8.2)
  - Downloading contao/core-bundle (4.9.12)
  - Downloading menatwork/contao-multicolumnwizard-bundle (3.4.10)
  - Downloading contao/calendar-bundle (4.9.12)
  - Downloading contao/comments-bundle (4.9.12)
  - Downloading contao/faq-bundle (4.9.12)
  - Downloading nelmio/security-bundle (v2.10.2)
  - Downloading contao/manager-bundle (4.9.12)
  - Downloading contao/news-bundle (4.9.12)
  - Upgrading symfony/polyfill-php80 (v1.22.0 => v1.22.1): Extracting archive
  - Upgrading symfony/polyfill-php73 (v1.22.0 => v1.22.1): Extracting archive
  - Upgrading symfony/polyfill-ctype (v1.22.0 => v1.22.1): Extracting archive
  - Upgrading symfony/polyfill-mbstring (v1.22.0 => v1.22.1): Extracting archive
  - Upgrading symfony/polyfill-php72 (v1.22.0 => v1.22.1): Extracting archive
  - Upgrading symfony/polyfill-intl-normalizer (v1.22.0 => v1.22.1): Extracting archive
  - Upgrading symfony/polyfill-intl-idn (v1.22.0 => v1.22.1): Extracting archive
  - Upgrading nyholm/psr7 (1.3.2 => 1.4.0): Extracting archive
  - Upgrading symfony/polyfill-iconv (v1.22.0 => v1.22.1): Extracting archive
  - Upgrading symfony/polyfill-intl-grapheme (v1.22.0 => v1.22.1): Extracting archive
  - Upgrading scheb/2fa-bundle (v5.4.2 => v5.6.0): Extracting archive
  - Upgrading lcobucci/jwt (4.0.1 => 4.1.1): Extracting archive
  - Upgrading scheb/2fa-trusted-device (v5.4.2 => v5.6.0): Extracting archive
  - Upgrading scheb/2fa-backup-code (v5.4.2 => v5.6.0): Extracting archive
  - Upgrading doctrine/orm (2.8.1 => 2.8.2): Extracting archive
  - Upgrading contao/core-bundle (4.9.11 => 4.9.12): Extracting archive
  - Upgrading menatwork/contao-multicolumnwizard-bundle (3.4.9 => 3.4.10): Extracting archive
  - Upgrading contao/calendar-bundle (4.9.11 => 4.9.12): Extracting archive
  - Upgrading contao/comments-bundle (4.9.11 => 4.9.12): Extracting archive
  - Upgrading contao/conflicts (dev-main 5271a9a => dev-main 5844be3)
  - Upgrading contao/faq-bundle (4.9.11 => 4.9.12): Extracting archive
  - Upgrading contao/listing-bundle (4.9.11 => 4.9.12): Extracting archive
  - Upgrading nelmio/security-bundle (v2.10.1 => v2.10.2): Extracting archive
  - Upgrading contao/installation-bundle (4.9.11 => 4.9.12): Extracting archive
  - Upgrading contao/manager-bundle (4.9.11 => 4.9.12): Extracting archive
  - Upgrading contao/news-bundle (4.9.11 => 4.9.12): Extracting archive
  - Upgrading contao/newsletter-bundle (4.9.11 => 4.9.12): Extracting archive
  - Upgrading wbsit/form-download-bundle (0.9.0 8741fd2 => 0.9.0 ): Source already present
  - Upgrading wbsit/references-bundle (0.9.0 7dbf3b6 => 0.9.0 ): Source already present
Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
Class League\Uri\Schemes\AbstractUri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
Class League\Uri\Schemes\Data located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
Class League\Uri\Schemes\File located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
Class League\Uri\Schemes\Ftp located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
Class League\Uri\Schemes\Http located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
Class League\Uri\Schemes\Uri located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
Class League\Uri\Schemes\UriException located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
Class League\Uri\Schemes\Ws located in ./vendor/league/uri-schemes/src/Schemes/deprecated.php does not comply with psr-4 autoloading standard. Skipping.
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
contao/manager-plugin: Generating plugin class...
contao/manager-plugin: ...done generating plugin class
90 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Contao\ManagerBundle\Composer\ScriptHandler::initializeApplication
Added the web/preview.php file.
Added the web/index.php file.
Added the web/app.php file.

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

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

 // Clearing the cache for the dev environment with debug                       
 // true                                                                        

 [OK] Cache for the "dev" environment (debug=true) 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  
  ✔   MultiColumnWizardBundle             relative symlink  
  ✔   WbsitFormDownloadBundle             relative symlink  
  ✔   NetzmachtContaoFormDesignerBundle   relative symlink  
  ✔   ContaoFaqBundle                     relative symlink  
  ✔   ContaoBootstrapCoreBundle           relative symlink  
  ✔   ContaoCommentsBundle                relative symlink  
  ✔   ContaoNewsBundle                    relative symlink  
  ✔   WbsitReferencesBundle               relative symlink  
  ✔   ContaoCalendarBundle                relative symlink  
  ✔   ContaoNewsletterBundle              relative symlink  
  ✔   ContaoBootstrapGridBundle           relative symlink  
  ✔   ContaoBootstrapNavbarBundle         relative symlink  
  ✔   ContaoBootstrapTabBundle            relative symlink  
 --- ----------------------------------- ------------------ 

 [OK] All assets were successfully installed.                                   

 --- -------------------------------------------- ---------------------------------------------------------------- 
      Symlink                                      Target / Error                                                  
 --- -------------------------------------------- ---------------------------------------------------------------- 
  !   web/files/Bilder/Portfolio                   Skipped because files/Bilder will be symlinked.                 
  !   web/files/WBS Theme-Bilder/Javascripts       Skipped because files/WBS Theme-Bilder will be symlinked.       
  ✔   web/files/Bilder                             files/Bilder                                                    
  ✔   web/files/WBS Theme-Bilder                   files/WBS Theme-Bilder                                          
  ✔   web/files/Partnerlogos                       files/Partnerlogos                                              
  ✔   web/files/Download-Content/agbs              files/Download-Content/agbs                                     
  ✔   web/files/Download-Content/bildnachweise     files/Download-Content/bildnachweise                            
  ✔   web/files/Download-Content/Whitepaper        files/Download-Content/Whitepaper                               
  ✔   web/files/Download-Content/termine           files/Download-Content/termine                                  
  ✔   web/files/Download-Content/Stellenangebote   files/Download-Content/Stellenangebote                          
  ✔   web/files/Download-Content/Videos            files/Download-Content/Videos                                   
  ✔   web/files/Download-Content/firmenprofil      files/Download-Content/firmenprofil                             
  ✔   web/files/system/public                      files/system/public                                             
  ✔   web/files/News-Content/Bilder                files/News-Content/Bilder                                       
  ✔   web/files/News-Content/downloads             files/News-Content/downloads                                    
  ✔   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 or run contao:migrate on the command line to make sure the database is up-to-date.

# Process terminated with exit code 0
# Result: OK

Thanks ...

Toflar commented 3 years ago

Great :) Closing then!

MacGyer commented 3 years ago

Any insights for the interested public?

Thanks anyway for your effort

Toflar commented 3 years ago

Just a missing environment variable for the worker processes that caused downloads into the wrong temporary directory where it hit limits :)

magicsepp commented 3 years ago

Thank you guys. Great work.