Contao-Camp 2024
Ergebnis 1 bis 5 von 5

Thema: An error occurred while executing the "contao:symlinks" command

  1. #1
    Contao-Nutzer
    Registriert seit
    23.02.2013.
    Beiträge
    20

    Standard An error occurred while executing the "contao:symlinks" command

    Hallo,
    ich erhalte aktuell bei dem Versuch die Pakete über den Contao-Manager die Fehlermeldung 'An error occurred while executing the "contao:symlinks" command'. Im Backend kann ich die Symlinks aber problemlos erneuern. Bei einem "composer install" bzw. "composer update" bekomme ich die Fehlermeldung ebenfalls.

    Die Contao-Version ist die 4.4.32.

    Hier meine aktuelle composer.json:
    {
    "type": "project",
    "require": {
    "php": ">=5.5.0",
    "symfony/symfony": "~2.8|~3.0",
    "contao/manager-bundle": "4.4.*",
    "contao/calendar-bundle": "^4.4",
    "contao/comments-bundle": "^4.4",
    "contao/faq-bundle": "^4.4",
    "contao/listing-bundle": "^4.4",
    "contao/news-bundle": "^4.4",
    "contao/newsletter-bundle": "^4.4"
    },
    "conflict": {
    "symfony/symfony": "3.2.7"
    },
    "extra": {
    "contao-component-dir": "assets"
    },
    "scripts": {
    "post-install-cmd": [
    "Contao\\ManagerBundle\\Composer\\ScriptHandler::i nitializeApplication"
    ],
    "post-update-cmd": [
    "Contao\\ManagerBundle\\Composer\\ScriptHandler::i nitializeApplication"
    ]
    }
    }

    Anbei die komplette Konsolenausgabe beim Update-Versuch der Pakete:

    $ /bin/php73 -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /htdocs/contao_4_4/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader
    // 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
    PHP Warning: Use of undefined constant REVOLUTIONSLIDER_VERSION - assumed 'REVOLUTIONSLIDER_VERSION' (this will throw an Error in a future version of PHP) in /htdocs/contao_4_4/system/modules/pct_revolutionslider/config/config.php on line 17
    PHP Warning: Use of undefined constant REVOLUTIONSLIDER_PATH - assumed 'REVOLUTIONSLIDER_PATH' (this will throw an Error in a future version of PHP) in /htdocs/contao_4_4/system/modules/pct_revolutionslider/config/config.php on line 18
    [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
    ? ContaoFaqBundle relative symlink
    ? ContaoNewsBundle relative symlink
    ? ContaoNewsletterBundle relative symlink
    ? ContaoCalendarBundle relative symlink
    ? ContaoCommentsBundle relative symlink
    --- ------------------------ ------------------
    [OK] All assets were successfully installed.
    Added the system/initialize.php file.
    Symlinked the system/config/tcpdf.php file.
    --- ------------------------------------------------ ----------------------------------------------------------------
    Symlink Target / Error
    --- ------------------------------------------------ ----------------------------------------------------------------
    ? web/files/cto_layout files/cto_layout
    ? web/system/modules/news_categories/assets system/modules/news_categories/assets
    ? web/system/modules/news/assets system/modules/news/assets
    ? web/system/modules/haste/assets system/modules/haste/assets
    ? web/system/modules/devtools/assets system/modules/devtools/assets
    ? web/system/modules/dk_mmenu/assets system/modules/dk_mmenu/assets
    ? web/system/modules/easy_themes/html system/modules/easy_themes/html
    ? web/system/modules/newsletter/assets system/modules/newsletter/assets
    ? web/system/modules/changelanguage/assets system/modules/changelanguage/assets
    ? web/system/modules/multicolumnwizard/html system/modules/multicolumnwizard/html
    ? web/system/modules/widget_tree_picker/public system/modules/widget_tree_picker/public
    ? web/system/modules/calendar/assets system/modules/calendar/assets
    ? web/system/modules/ce_be_remarks/html system/modules/ce_be_remarks/html
    ? web/system/modules/pct_revolutionslider/assets system/modules/pct_revolutionslider/assets
    ? web/system/modules/faq/assets system/modules/faq/assets
    ? web/system/modules/Subcolumns/assets system/modules/Subcolumns/assets
    ? web/system/modules/widget_tree_picker/assets system/modules/widget_tree_picker/assets
    ? web/system/modules/comments/assets system/modules/comments/assets
    ? system/themes/flexible The path "system/themes/flexible" exists and is not a symlink.
    ? web/assets assets
    ? web/system/themes system/themes
    ? system/logs The path "system/logs" exists and is not a symlink.
    --- ------------------------------------------------ ----------------------------------------------------------------
    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. It is recommended that you run `composer update` or `composer update <package name>`.
    Nothing to install or update
    Generating optimized autoload files
    Deprecation Notice: Class Nelmio\SecurityBundle\ContentSecurityPolicy\Violat ion\ReportTest located in ./vendor/nelmio/security-bundle/Tests/ContentSecurityPolicy/Violation/ReportTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///htdocs/contao_4_4/web/contao-manager.phar.php/vendor/composer/composer/src/Composer/Autoload/ClassMapGenerator.php:201
    > Contao\ManagerBundle\Composer\ScriptHandler::initi alizeApplication
    Script Contao\ManagerBundle\Composer\ScriptHandler::initi alizeApplication handling the post-install-cmd event terminated with an exception
    In ScriptHandler.php line 113:

    An error occurred while executing the "contao:symlinks" command:

    install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>...]
    # Process terminated with exit code 1
    # Result: General error

  2. #2
    Contao-Urgestein Avatar von fiedsch
    Registriert seit
    09.07.2009.
    Ort
    München
    Beiträge
    2.939

    Standard

    Die entscheidenden Zeilen sind

    Code:
    system/themes/flexible The path "system/themes/flexible" exists and is not a symlink. 
    system/logs The path "system/logs" exists and is not a symlink.
    Diese Unterverzeichnisse existieren und Contao kann daher dort keine gleichnamigen Symlinks anlegen.

    Du musst diese Verzeichnisse löschen und dann nochmal composer install (bzw. Update) ausführen.
    Contao-Community-Treff Bayern: http://www.contao-bayern.de

  3. #3
    Contao-Nutzer
    Registriert seit
    23.02.2013.
    Beiträge
    20

    Standard

    Hallo fiedsch,

    vielen Dank für deine Hilfe, das hat schon mal funktioniert
    Ich möchte jetzt gerne eine neue Erweiterung installieren, allerdings bekomme ich bei dem Versuch das Paket über den Manager zu installieren die Fehlermeldung "Installation target '/htdocs/contao_4_4/system/modules/haste' already exists".

    Bei dem Versuch das Modul einfach zu löschen und dann composer update bzw. install auszuführen erhalte ich den Fehler, dass der entsprechende Ordner nicht vorhanden ist.

    Neben dem oben genannten Modul "haste" habe ich noch weitere Module im Einsatz, welche aber nicht über den Manager installiert wurden. Muss ich die Module über den Manager installieren um den Fehler zu beheben und wenn ja, wie gehe ich am besten vor, ohne das bestehende Inhalte/Einstellungen verloren gehen?

    Zur Info: Es handelt sich dabei um Module, die aus einem Update von Contao 3 übernommen wurden.

    Anbei die komplette Konsolenausgabe:

    Code:
    $ /bin/php73 -q -dmax_execution_time=0 -dmemory_limit=-1 -dallow_url_fopen=1 -ddisable_functions= -ddate.timezone=Europe/Berlin /htdocs/contao_4_4/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader
    Loading composer repositories with package information
    Installing dependencies from lock file
    Package operations: 7 installs, 0 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.
      - Installing contao-community-alliance/composer-plugin (3.1.4): Loading from cache
      - Installing codefog/contao-haste (4.24.13): Loading from cache
    In AbstractModuleInstaller.php line 597:
                                                                                   
      Installation target "/htdocs/contao_4_4/system/modules/haste" already exists                                           
                                                                                   
    install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>...]
    # Process terminated with exit code 1
    # Result: General error

  4. #4
    Contao-Urgestein Avatar von fiedsch
    Registriert seit
    09.07.2009.
    Ort
    München
    Beiträge
    2.939

    Standard

    Ich schätze, haste ist noch ein (manuell installiertes) Überbleibslel aus der Contao 3 Installation uns soll jetzt zusätzlich über Composer installiert werden. Im Fall von haste würde Composer hier einen Symlink unter System/modules anlegen wollen. Das geht dann nicht und ergibt die Fehlermeldung.
    Contao-Community-Treff Bayern: http://www.contao-bayern.de

  5. #5
    Contao-Nutzer
    Registriert seit
    23.02.2013.
    Beiträge
    20

    Standard

    Ich konnte das Problem nun lösen und habe dazu einfach die Module "codefog/contao-haste" und "menatwork/contao-multicolumnwizard" aus dem Ordner "system/modules" und "vendor" gelöscht und dann das übergeordnete Paket "terminal42/contao-changelanguage" normal über den Contao-Manager installiert, womit die anderen beiden Module auch neu installiert und erkannt wurden.

    Danach konnte ich auch das neue Paket problemlos installieren. Danke nochmal an fiedsch.

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
  •