Veuillez patienter...
/
https://forum.claroline.net/
/
/themes/claroline/bootstrap.css?v=373695b0789add75084adaa2e947337f
fr_FR
Vous utilisez un navigateur non pris en charge. Pour éviter tout fonctionnement indésirable, veuillez utiliser une version récente d'un navigateur majeur. (http://browsehappy.com). Internet Explorer est supporté à partir de la version 11.

[Sujet] Erreur lorsque je tente de mettre à jour ma distribution Claroline...

Messages par page
Auteur Messages

08/01/2018 11:00

Bonjour,
J'ai installé Claroline (10.6.4) sur une VM (type KVM) Debian 9.3 (1 socket - 2 cores / 8Go RAM). J'utilise actuellement le navigateur Firefox version ESR (52.5.0 - 64bits).

Je tente de mettre à jour ma version (10.6.4) vers la dernière version de Claroline (10.8.3) et voici l'erreur que j'ai après l'execution de la commande: "composer update --prefer-dist --no-dev"

...

...

  - Removing claroline/distribution (10.x-dev be86687)
  - Installing claroline/distribution (10.x-dev d428f59)
    Downloading: 100%         

Package werkint/jsmin is abandoned, you should avoid using it. No replacement was suggested.
Package u01jmg3/ics-parser is abandoned, you should avoid using it. Use johngrogg/ics-parser instead.
Package guzzle/common is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/stream is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/http is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Writing lock file
Generating autoload files
> composer bundles
PHP Warning:  require(/var/www/Claroline/vendor/composer/../symfony/phpunit-bridge/bootstrap.php): failed to open stream: No such file or directory in /var/www/Claroline/vendor/composer/autoload_real.php on line 66
PHP Fatal error:  require(): Failed opening required '/var/www/Claroline/vendor/composer/../symfony/phpunit-bridge/bootstrap.php' (include_path='.:/usr/share/php') in /var/www/Claroline/vendor/composer/autoload_real.php on line 66
Script composer bundles handling the post-update-cmd event returned with error code 255
root@monserveur:/var/www/Claroline#

...

...

 

Quelqu'un aurait une idée SVP car je suis bloqué actuellement ?

Je suis la procédure décrite ICI

Merci

Il y a 11 mois


08/01/2018 11:07

Re,

J'ai tenté de relancer une seconde fois la commande "composer update --prefer-dist --no-dev" et voici ce qui était affiché ensuite:

 

root@monserveur:/var/www/Claroline# composer update --prefer-dist --no-dev
Do not run Composer as root/super user! See https://getcomposer.org/root for details
> php scripts/check.php
> php scripts/save-repo.php
> Claroline\CoreBundle\Library\Maintenance\MaintenanceHandler::enableMaintenance
Loading composer repositories with package information
Updating dependencies                                              


  - Removing claroline/distribution (10.x-dev d428f59)
  - Installing claroline/distribution (10.x-dev 6bd691b)
    Downloading: 100%         

Package werkint/jsmin is abandoned, you should avoid using it. No replacement was suggested.
Package u01jmg3/ics-parser is abandoned, you should avoid using it. Use johngrogg/ics-parser instead.
Package guzzle/common is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/stream is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/http is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Writing lock file
Generating autoload files
> composer bundles
Running composer as root/super user is highly discouraged as packages, plugins and scripts cannot always be trusted
> Claroline\BundleRecorder\ScriptHandler::buildBundleFile
Writing bundle file...
root@monserveur:/var/www/Claroline#

 

Je poursuis la mise à jour...et voici les autres erreurs:

 

...

....

[2535] ./web/packages/ng-file-upload/ng-file-upload-shim.js 14.4 kB {81} [built]
    + 2640 hidden modules

ERROR in ./web/packages/fullcalendar/dist/locale/en-gb.js
Module not found: Error: Cannot resolve module 'fullcalendar' in /var/www/Claroline/web/packages/fullcalendar/dist/locale
resolve module fullcalendar in /var/www/Claroline/web/packages/fullcalendar/dist/locale
  looking for modules in /var/www/Claroline/node_modules
    /var/www/Claroline/node_modules/fullcalendar doesn't exist (module as directory)
    resolve 'file' fullcalendar in /var/www/Claroline/node_modules
      resolve file
        /var/www/Claroline/node_modules/fullcalendar doesn't exist
        /var/www/Claroline/node_modules/fullcalendar.webpack.js doesn't exist
        /var/www/Claroline/node_modules/fullcalendar.web.js doesn't exist
        /var/www/Claroline/node_modules/fullcalendar.js doesn't exist
        /var/www/Claroline/node_modules/fullcalendar.json doesn't exist
  looking for modules in /var/www/Claroline/web/packages
    resolve 'file' fullcalendar in /var/www/Claroline/web/packages
      resolve file
        /var/www/Claroline/web/packages/fullcalendar is not a file
        /var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.json doesn't exist
    resolve 'file' or 'directory' /var/www/Claroline/web/packages/fullcalendar
      resolve file
        /var/www/Claroline/web/packages/fullcalendar is not a file
        /var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.json doesn't exist
      resolve directory
        /var/www/Claroline/web/packages/fullcalendar/package.json doesn't exist (directory description file)
        directory default file index
          resolve file index in /var/www/Claroline/web/packages/fullcalendar
            /var/www/Claroline/web/packages/fullcalendar/index doesn't exist
            /var/www/Claroline/web/packages/fullcalendar/index.webpack.js doesn't exist
            /var/www/Claroline/web/packages/fullcalendar/index.web.js doesn't exist
            /var/www/Claroline/web/packages/fullcalendar/index.js doesn't exist
            /var/www/Claroline/web/packages/fullcalendar/index.json doesn't exist
[/var/www/Claroline/node_modules/fullcalendar]
[/var/www/Claroline/node_modules/fullcalendar]
[/var/www/Claroline/web/packages/fullcalendar.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar.web.js]
[/var/www/Claroline/web/packages/fullcalendar.web.js]
[/var/www/Claroline/web/packages/fullcalendar.js]
[/var/www/Claroline/web/packages/fullcalendar.js]
[/var/www/Claroline/web/packages/fullcalendar.json]
[/var/www/Claroline/web/packages/fullcalendar.json]
[/var/www/Claroline/web/packages/fullcalendar/index]
[/var/www/Claroline/web/packages/fullcalendar/index.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar/index.web.js]
[/var/www/Claroline/web/packages/fullcalendar/index.js]
[/var/www/Claroline/web/packages/fullcalendar/index.json]
[/var/www/Claroline/node_modules/fullcalendar.webpack.js]
[/var/www/Claroline/node_modules/fullcalendar.web.js]
[/var/www/Claroline/node_modules/fullcalendar.js]
[/var/www/Claroline/node_modules/fullcalendar.json]
 @ ./web/packages/fullcalendar/dist/locale/en-gb.js 1:100-123

ERROR in ./web/packages/fullcalendar/dist/locale/fr.js
Module not found: Error: Cannot resolve module 'fullcalendar' in /var/www/Claroline/web/packages/fullcalendar/dist/locale
resolve module fullcalendar in /var/www/Claroline/web/packages/fullcalendar/dist/locale
  looking for modules in /var/www/Claroline/node_modules
    /var/www/Claroline/node_modules/fullcalendar doesn't exist (module as directory)
    resolve 'file' fullcalendar in /var/www/Claroline/node_modules
      resolve file
        /var/www/Claroline/node_modules/fullcalendar doesn't exist
        /var/www/Claroline/node_modules/fullcalendar.webpack.js doesn't exist
        /var/www/Claroline/node_modules/fullcalendar.web.js doesn't exist
        /var/www/Claroline/node_modules/fullcalendar.js doesn't exist
        /var/www/Claroline/node_modules/fullcalendar.json doesn't exist
  looking for modules in /var/www/Claroline/web/packages
    resolve 'file' fullcalendar in /var/www/Claroline/web/packages
      resolve file
        /var/www/Claroline/web/packages/fullcalendar is not a file
        /var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.json doesn't exist
    resolve 'file' or 'directory' /var/www/Claroline/web/packages/fullcalendar
      resolve file
        /var/www/Claroline/web/packages/fullcalendar is not a file
        /var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.js doesn't exist
        /var/www/Claroline/web/packages/fullcalendar.json doesn't exist
      resolve directory
        /var/www/Claroline/web/packages/fullcalendar/package.json doesn't exist (directory description file)
        directory default file index
          resolve file index in /var/www/Claroline/web/packages/fullcalendar
            /var/www/Claroline/web/packages/fullcalendar/index doesn't exist
            /var/www/Claroline/web/packages/fullcalendar/index.webpack.js doesn't exist
            /var/www/Claroline/web/packages/fullcalendar/index.web.js doesn't exist
            /var/www/Claroline/web/packages/fullcalendar/index.js doesn't exist
            /var/www/Claroline/web/packages/fullcalendar/index.json doesn't exist
[/var/www/Claroline/node_modules/fullcalendar]
[/var/www/Claroline/node_modules/fullcalendar]
[/var/www/Claroline/web/packages/fullcalendar.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar.web.js]
[/var/www/Claroline/web/packages/fullcalendar.web.js]
[/var/www/Claroline/web/packages/fullcalendar.js]
[/var/www/Claroline/web/packages/fullcalendar.js]
[/var/www/Claroline/web/packages/fullcalendar.json]
[/var/www/Claroline/web/packages/fullcalendar.json]
[/var/www/Claroline/web/packages/fullcalendar/index]
[/var/www/Claroline/web/packages/fullcalendar/index.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar/index.web.js]
[/var/www/Claroline/web/packages/fullcalendar/index.js]
[/var/www/Claroline/web/packages/fullcalendar/index.json]
[/var/www/Claroline/node_modules/fullcalendar.webpack.js]
[/var/www/Claroline/node_modules/fullcalendar.web.js]
[/var/www/Claroline/node_modules/fullcalendar.js]
[/var/www/Claroline/node_modules/fullcalendar.json]
 @ ./web/packages/fullcalendar/dist/locale/fr.js 1:100-123

npm ERR! Linux 4.9.0-4-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "webpack"
npm ERR! node v6.12.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! claroline@1.0.0 webpack: `export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the claroline@1.0.0 webpack script 'export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the claroline package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs claroline
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls claroline
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /var/www/Claroline/npm-debug.log

root@monserveur:/var/www/Claroline#

 

Mon serveur est bien à jour.

Quelqu'un aurait une idée SVP car je suis bloqué à cette étape ?

Merci

Il y a 11 mois


08/01/2018 11:39

Posté par Mickaël DUBARD le 08/01/2018 11:00:59.

Bonjour,
J'ai installé Claroline (10.6.4) sur une VM (type KVM) Debian 9.3 (1 socket - 2 cores / 8Go RAM). J'utilise actuellement le navigateur Firefox version ESR (52.5.0 - 64bits).

Je tente de mettre à jour ma version (10.6.4) vers la dernière version de Claroline (10.8.3) et voici l'erreur que j'ai après l'execution de la commande: "composer update --prefer-dist --no-dev"

...

...

  - Removing claroline/distribution (10.x-dev be86687)
  - Installing claroline/distribution (10.x-dev d428f59)
    Downloading: 100%         

Package werkint/jsmin is abandoned, you should avoid using it. No replacement was suggested.
Package u01jmg3/ics-parser is abandoned, you should avoid using it. Use johngrogg/ics-parser instead.
Package guzzle/common is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/stream is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/http is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Writing lock file
Generating autoload files
> composer bundles
PHP Warning:  require(/var/www/Claroline/vendor/composer/../symfony/phpunit-bridge/bootstrap.php): failed to open stream: No such file or directory in /var/www/Claroline/vendor/composer/autoload_real.php on line 66
PHP Fatal error:  require(): Failed opening required '/var/www/Claroline/vendor/composer/../symfony/phpunit-bridge/bootstrap.php' (include_path='.:/usr/share/php') in /var/www/Claroline/vendor/composer/autoload_real.php on line 66
Script composer bundles handling the post-update-cmd event returned with error code 255
root@monserveur:/var/www/Claroline#

...

...

 

Quelqu'un aurait une idée SVP car je suis bloqué actuellement ?

Je suis la procédure décrite ICI

Merci

Réponse:

Il y a 11 mois


08/01/2018 11:53

npm install fullcalendar 

règle le problème

Il y a 11 mois


08/01/2018 11:55

vider le cache ?

rm -rf app/cache/*

Il y a 11 mois


08/01/2018 12:10

Salut Laurent,

 

Merci pour ta réponse. J'ai vidé le cache puis installé le module fullcalendar mais malheureusement...toujours pareil ...même erreur :(

ERROR in ./web/packages/fullcalendar/dist/locale/fr.js
Module not found: Error: Cannot resolve module 'fullcalendar' in /var/www/Claroline/web/packages/fullcalendar/dist/locale
resolve module fullcalendar in /var/www/Claroline/web/packages/fullcalendar/dist/locale
looking for modules in /var/www/Claroline/node_modules
/var/www/Claroline/node_modules/fullcalendar doesn't exist (module as directory)
resolve 'file' fullcalendar in /var/www/Claroline/node_modules
resolve file
/var/www/Claroline/node_modules/fullcalendar doesn't exist
/var/www/Claroline/node_modules/fullcalendar.webpack.js doesn't exist
/var/www/Claroline/node_modules/fullcalendar.web.js doesn't exist
/var/www/Claroline/node_modules/fullcalendar.js doesn't exist
/var/www/Claroline/node_modules/fullcalendar.json doesn't exist
looking for modules in /var/www/Claroline/web/packages
resolve 'file' fullcalendar in /var/www/Claroline/web/packages
resolve file
/var/www/Claroline/web/packages/fullcalendar is not a file
/var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.json doesn't exist
resolve 'file' or 'directory' /var/www/Claroline/web/packages/fullcalendar
resolve file
/var/www/Claroline/web/packages/fullcalendar is not a file
/var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.json doesn't exist
resolve directory
/var/www/Claroline/web/packages/fullcalendar/package.json doesn't exist (directory description file)
directory default file index
resolve file index in /var/www/Claroline/web/packages/fullcalendar
/var/www/Claroline/web/packages/fullcalendar/index doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.webpack.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.web.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.json doesn't exist
[/var/www/Claroline/node_modules/fullcalendar]
[/var/www/Claroline/node_modules/fullcalendar]
[/var/www/Claroline/web/packages/fullcalendar.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar.web.js]
[/var/www/Claroline/web/packages/fullcalendar.web.js]
[/var/www/Claroline/web/packages/fullcalendar.js]
[/var/www/Claroline/web/packages/fullcalendar.js]
[/var/www/Claroline/web/packages/fullcalendar.json]
[/var/www/Claroline/web/packages/fullcalendar.json]
[/var/www/Claroline/web/packages/fullcalendar/index]
[/var/www/Claroline/web/packages/fullcalendar/index.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar/index.web.js]
[/var/www/Claroline/web/packages/fullcalendar/index.js]
[/var/www/Claroline/web/packages/fullcalendar/index.json]
[/var/www/Claroline/node_modules/fullcalendar.webpack.js]
[/var/www/Claroline/node_modules/fullcalendar.web.js]
[/var/www/Claroline/node_modules/fullcalendar.js]
[/var/www/Claroline/node_modules/fullcalendar.json]
@ ./web/packages/fullcalendar/dist/locale/fr.js 1:100-123

ERROR in ./web/packages/fullcalendar/dist/locale/en-gb.js
Module not found: Error: Cannot resolve module 'fullcalendar' in /var/www/Claroline/web/packages/fullcalendar/dist/locale
resolve module fullcalendar in /var/www/Claroline/web/packages/fullcalendar/dist/locale
looking for modules in /var/www/Claroline/node_modules
/var/www/Claroline/node_modules/fullcalendar doesn't exist (module as directory)
resolve 'file' fullcalendar in /var/www/Claroline/node_modules
resolve file
/var/www/Claroline/node_modules/fullcalendar doesn't exist
/var/www/Claroline/node_modules/fullcalendar.webpack.js doesn't exist
/var/www/Claroline/node_modules/fullcalendar.web.js doesn't exist
/var/www/Claroline/node_modules/fullcalendar.js doesn't exist
/var/www/Claroline/node_modules/fullcalendar.json doesn't exist
looking for modules in /var/www/Claroline/web/packages
resolve 'file' fullcalendar in /var/www/Claroline/web/packages
resolve file
/var/www/Claroline/web/packages/fullcalendar is not a file
/var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.json doesn't exist
resolve 'file' or 'directory' /var/www/Claroline/web/packages/fullcalendar
resolve file
/var/www/Claroline/web/packages/fullcalendar is not a file
/var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.json doesn't exist
resolve directory
/var/www/Claroline/web/packages/fullcalendar/package.json doesn't exist (directory description file)
directory default file index
resolve file index in /var/www/Claroline/web/packages/fullcalendar
/var/www/Claroline/web/packages/fullcalendar/index doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.webpack.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.web.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.json doesn't exist
[/var/www/Claroline/node_modules/fullcalendar]
[/var/www/Claroline/node_modules/fullcalendar]
[/var/www/Claroline/web/packages/fullcalendar.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar.web.js]
[/var/www/Claroline/web/packages/fullcalendar.web.js]
[/var/www/Claroline/web/packages/fullcalendar.js]
[/var/www/Claroline/web/packages/fullcalendar.js]
[/var/www/Claroline/web/packages/fullcalendar.json]
[/var/www/Claroline/web/packages/fullcalendar.json]
[/var/www/Claroline/web/packages/fullcalendar/index]
[/var/www/Claroline/web/packages/fullcalendar/index.webpack.js]
[/var/www/Claroline/web/packages/fullcalendar/index.web.js]
[/var/www/Claroline/web/packages/fullcalendar/index.js]
[/var/www/Claroline/web/packages/fullcalendar/index.json]
[/var/www/Claroline/node_modules/fullcalendar.webpack.js]
[/var/www/Claroline/node_modules/fullcalendar.web.js]
[/var/www/Claroline/node_modules/fullcalendar.js]
[/var/www/Claroline/node_modules/fullcalendar.json]
@ ./web/packages/fullcalendar/dist/locale/en-gb.js 1:100-123

npm ERR! Linux 4.9.0-4-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "webpack"
npm ERR! node v6.12.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! claroline@1.0.0 webpack: `export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the claroline@1.0.0 webpack script 'export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the claroline package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs claroline
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls claroline
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /var/www/Claroline/npm-debug.log
root@monserveur:/var/www/Claroline#

 

Voici les traces dans npm-debug.log:



0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'webpack' ]
2 info using npm@3.10.10
3 info using node@v6.12.3
4 verbose run-script [ 'prewebpack', 'webpack', 'postwebpack' ]
5 info lifecycle claroline@1.0.0~prewebpack: claroline@1.0.0
6 silly lifecycle claroline@1.0.0~prewebpack: no script for prewebpack, continuing
7 info lifecycle claroline@1.0.0~webpack: claroline@1.0.0
8 verbose lifecycle claroline@1.0.0~webpack: unsafe-perm in lifecycle true
9 verbose lifecycle claroline@1.0.0~webpack: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/var/www/Claroline/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
10 verbose lifecycle claroline@1.0.0~webpack: CWD: /var/www/Claroline
11 silly lifecycle claroline@1.0.0~webpack: Args: [ '-c',
11 silly lifecycle   'export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify' ]
12 silly lifecycle claroline@1.0.0~webpack: Returned: code: 1  signal: null
13 info lifecycle claroline@1.0.0~webpack: Failed to exec webpack script
14 verbose stack Error: claroline@1.0.0 webpack: `export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:920:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
15 verbose pkgid claroline@1.0.0
16 verbose cwd /var/www/Claroline
17 error Linux 4.9.0-4-amd64
18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "webpack"
19 error node v6.12.3
20 error npm  v3.10.10
21 error code ELIFECYCLE
22 error claroline@1.0.0 webpack: `export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify`
22 error Exit status 1
23 error Failed at the claroline@1.0.0 webpack script 'export NODE_ENV=production && rm -rf web/dist/* && npm run dll && node_modules/webpack/bin/webpack.js --config=vendor/claroline/distribution/webpack.prod.js --progress --colors --display-error-details && npm run uglify'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the claroline package,

24 verbose exit [ 1, true ]

 

Une idée ?

Merci

Il y a 11 mois


08/01/2018 12:22

Re,

 

Voici ce que j'ai dans le dossier fullcalendar:

 

root@monserveur:/var/www/Claroline/web/packages/fullcalendar# ls -altr
total 88
-rw-r--r--  1 root     root       443 déc 18 06:19 README.md
-rw-r--r--  1 root     root      1053 déc 18 06:19 LICENSE.txt
-rw-r--r--  1 root     root      4594 déc 18 06:19 CONTRIBUTING.md
-rw-r--r--  1 root     root     50328 déc 18 06:19 CHANGELOG.md
-rw-r--r--  1 root     root       852 déc 18 06:19 bower.json
drwxr-xr-x  3 root     root      4096 jan  8 11:05 dist
drwxr-xr-x  3 root     root      4096 jan  8 11:05 .
-rw-r--r--  1 root     root      1145 jan  8 11:05 .bower.json
drwxrwxr-x 83 www-data www-data  4096 jan  8 12:05 ..
root@monserveur:/var/www/Claroline/web/packages/fullcalendar#

 

Le problème c'est que l'install cherche des fichiers:

 

...

...

/var/www/Claroline/web/packages/fullcalendar is not a file
/var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.json doesn't exist
resolve 'file' or 'directory' /var/www/Claroline/web/packages/fullcalendar
resolve file
/var/www/Claroline/web/packages/fullcalendar is not a file
/var/www/Claroline/web/packages/fullcalendar.webpack.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.web.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar.json doesn't exist
resolve directory
/var/www/Claroline/web/packages/fullcalendar/package.json doesn't exist (directory description file)
directory default file index
resolve file index in /var/www/Claroline/web/packages/fullcalendar
/var/www/Claroline/web/packages/fullcalendar/index doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.webpack.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.web.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.js doesn't exist
/var/www/Claroline/web/packages/fullcalendar/index.json doesn't exist

...

...

 

qui se trouvent visiblement dans le dossier "dist" ci dessus:

 

root@monserveur:/var/www/Claroline/web/packages/fullcalendar/dist# ls -altr
total 1188
-rw-r--r-- 1 root root 179201 déc 18 06:19 locale-all.js
drwxr-xr-x 2 root root   4096 déc 18 06:19 locale
-rw-r--r-- 1 root root   4626 déc 18 06:19 gcal.min.js
-rw-r--r-- 1 root root  12582 déc 18 06:19 gcal.js
-rw-r--r-- 1 root root   1997 déc 18 06:19 fullcalendar.print.min.css
-rw-r--r-- 1 root root   5577 déc 18 06:19 fullcalendar.print.css
-rw-r--r-- 1 root root 212441 déc 18 06:19 fullcalendar.min.js
-rw-r--r-- 1 root root  15686 déc 18 06:19 fullcalendar.min.css
-rw-r--r-- 1 root root 621148 déc 18 06:19 fullcalendar.js
-rw-r--r-- 1 root root  97342 déc 18 06:19 fullcalendar.d.ts
-rw-r--r-- 1 root root  33314 déc 18 06:19 fullcalendar.css
drwxr-xr-x 3 root root   4096 jan  8 11:05 .
drwxr-xr-x 3 root root   4096 jan  8 11:05 ..
root@monserveur:/var/www/Claroline/web/packages/fullcalendar/dist#

 

...et non à la racine du dossier "/var/www/Claroline/web/packages/fullcalendar" !!!

Certains fichiers semblent aussi ne pas exister !

 

C'est bizzare non ?

Il y a 11 mois


08/01/2018 12:49

Re,

Après l'installation de Fullcalendar, j'ai 2 erreurs qui semblent bénin puisque les raisons sont optionnelles...mais peut-être ai-je tort ?

 

root@monserveur:/var/www/Claroline# npm install fullcalendar
claroline@1.0.0 /var/www/Claroline
└─┬ fullcalendar@3.8.0
  └── jquery@3.2.1

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
root@monserveur:/var/www/Claroline#

 

Là je sèche...je ne sais plus où regarder pour tenter de résoudre mon problème :(

Il y a 11 mois


08/01/2018 13:52

J'ai du mal à voir où tu en es, tu pourrais me rejoindre sur gitter ici :

https://gitter.im/claroline/Claroline

Qu'on regarde ça directement ensemble ?

Il y a 11 mois


08/01/2018 15:08

Merci Laurent.
J'en suis à l'étape 3 de la mise à jour:

npm install && npm run bower && npm run webpack

où la commande "npm run webpack" ne se termine pas correctement (voir les erreurs ci-dessus).
Je te rejoins sur gitter tout de suite...

 

Il y a 11 mois


10/01/2018 11:30

Bonjour,

Suite aux précieux conseils donnés par l'équipe de développement de Claroline (que je remercie au passage) voici comment j'ai résolu mon problème de mise à jour (j'ai appliqué la procédure de Laurent donné ICI...avec juste quelque ajustement par rapport aux erreurs que j'avais sur ma plateforme):

  • 1. On va dans le dossier où claroline est installé :
    cd /var/www/claroline

remplacer /var/www/claroline par le chemin du dossier d'installation

  • 2. J'ai fais l'update de mon dépôt local sans le "--no-dev" car visiblement, il y a des dépendances qui sont requis et qui se trouve dans le "dev":
    composer update --prefer-source
  • 3. On installe les bibliothèque externe et compile les éléments nécessaire

    npm install && npm run bower && npm run webpack

Si le problème se pose avec "fullcalendar" (comme je l'ai décris plus haut) alors il faut faire:

npm install fullcalendar

puis...

npm run webpack
  • 4. On exécute les scripts de mise à jour (base de donnée, ...)
    php app/console claroline:update 10.x.x 10.y.y

    où 10.x.x correspond à la version avant mise à jour et 10.y.y la version cible de la mise à jour

  • 5. On désactive le mode "maintenance"...
    php app/console claroline:maintenance:disable
  • 6. On vide le cache

    rm -rf app/cache/*

 

 On contrôle ensuite que notre plateforme est de nouveau opérationnelle ;)

Il y a 11 mois