[Temp fix provied] Peertube instalation failed

Bonjour,
Impossible de réinstaller Peertube sur un vps ovh, je ne sais pas lire les logs. Est ce que quelqu’un peut m’orienter vers un un début de solution ?
Merci

2018-09-30 12:40:53,923: WARNING - Installation of N - Node.js version management
2018-09-30 12:40:54,934: WARNING - 2018-09-30 12:40:54 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592] -> "n.tar.gz" [1]
2018-09-30 12:40:57,441: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2018-09-30 12:41:16,489: WARNING - debconf: unable to initialize frontend: Dialog
2018-09-30 12:41:16,490: WARNING - debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
2018-09-30 12:41:16,491: WARNING - debconf: falling back to frontend: Readline
2018-09-30 12:41:16,492: WARNING - debconf: unable to initialize frontend: Readline
2018-09-30 12:41:16,494: WARNING - debconf: (This frontend requires a controlling tty.)
2018-09-30 12:41:16,500: WARNING - debconf: falling back to frontend: Teletype
2018-09-30 12:41:16,600: WARNING - dpkg-preconfigure: unable to re-open stdin:
2018-09-30 12:41:24,518: WARNING - ERROR:  could not open extension control file "/usr/share/postgresql/9.6/extension/unaccent.control": No such file or directory
2018-09-30 12:41:24,519: WARNING - ERROR:  could not open extension control file "/usr/share/postgresql/9.6/extension/pg_trgm.control": No such file or directory
2018-09-30 12:41:36,442: WARNING - 2018-09-30 12:41:36 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/45213667/4bada680-b748-11e8-91ec-99094d9e9b08?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180930%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180930T104135Z&X-Amz-Expires=300&X-Amz-Signature=40f81c9c903863f2120d2e01868d4747770eacb2e2b8004d41b03836a1754b28&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dpeertube-v1.0.0-beta.13.tar.xz&response-content-type=application%2Foctet-stream [2040752/2040752] -> "app.tar.xz" [1]
2018-09-30 12:42:11,949: WARNING - warning Resolution field "@types/bluebird@3.5.21" is incompatible with requested version "@types/bluebird@3.5.18"
2018-09-30 12:45:45,753: WARNING - warning " > angular2-hotkeys@2.1.2" has incorrect peer dependency "rxjs@^5.5.0".
2018-09-30 12:45:45,772: WARNING - warning " > bootstrap@4.1.3" has unmet peer dependency "jquery@1.9.1 - 3".
2018-09-30 12:45:45,773: WARNING - warning " > bootstrap@4.1.3" has unmet peer dependency "popper.js@^1.14.3".
2018-09-30 12:45:45,773: WARNING - warning " > ts-jest@23.1.4" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
2018-09-30 12:45:45,773: WARNING - warning " > ts-jest@23.1.4" has unmet peer dependency "babel-jest@^23.0.0 || ^24.0.0".
2018-09-30 12:45:45,773: WARNING - warning " > karma-jasmine-html-reporter@1.3.1" has incorrect peer dependency "jasmine-core@>=3.2".
2018-09-30 12:45:59,010: WARNING - Created symlink /etc/systemd/system/multi-user.target.wants/peertube.service → /etc/systemd/system/peertube.service.
2018-09-30 12:46:30,701: WARNING - /opt/node_n/lib/node_modules/npm/node_modules/npmlog/log.js:57
2018-09-30 12:46:30,701: WARNING - log.progressEnabled = log.gauge.isEnabled()
2018-09-30 12:46:30,702: WARNING -                                 ^
2018-09-30 12:46:30,702: WARNING - 
2018-09-30 12:46:30,703: WARNING - TypeError: log.gauge.isEnabled is not a function
2018-09-30 12:46:30,703: WARNING -     at Object.<anonymous> (/opt/node_n/lib/node_modules/npm/node_modules/npmlog/log.js:57:33)
2018-09-30 12:46:30,703: WARNING -     at Module._compile (module.js:653:30)
2018-09-30 12:46:30,704: WARNING -     at Object.Module._extensions..js (module.js:664:10)
2018-09-30 12:46:30,706: WARNING -     at Module.load (module.js:566:32)
2018-09-30 12:46:30,713: WARNING -     at tryModuleLoad (module.js:506:12)
2018-09-30 12:46:30,713: WARNING -     at Function.Module._load (module.js:498:3)
2018-09-30 12:46:30,714: WARNING -     at Module.require (module.js:597:17)
2018-09-30 12:46:30,714: WARNING -     at require (internal/module.js:11:18)
2018-09-30 12:46:30,715: WARNING -     at /opt/node_n/lib/node_modules/npm/bin/npm-cli.js:22:13
2018-09-30 12:46:30,720: WARNING -     at Object.<anonymous> (/opt/node_n/lib/node_modules/npm/bin/npm-cli.js:153:3)
2018-09-30 12:46:30,720: WARNING - !!
2018-09-30 12:46:30,726: WARNING -   peertube's script has encountered an error. Its execution was cancelled.
2018-09-30 12:46:30,727: WARNING - !!
2018-09-30 12:46:30,731: WARNING -

Try:

$ sudo apt-get install postgresql-contrib apt-transport-https

and install again.

Thanks, but still not good …

sudo apt-get install postgresql-contrib apt-transport-https
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-transport-https is already the newest version (1.4.8).
Suggested packages:
  libdbd-pg-perl
The following NEW packages will be installed:
  postgresql-contrib postgresql-contrib-9.6
0 upgraded, 2 newly installed, 0 to remove and 13 not upgraded.
Need to get 554 kB of archives.
After this operation, 2,379 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian stretch/main amd64 postgresql-contrib all 9.6+181+deb9u2 [55.8 kB]
Get:2 http://security.debian.org stretch/updates/main amd64 postgresql-contrib-9.6 amd64 9.6.10-0+deb9u1 [499 kB]
Fetched 554 kB in 0s (2,644 kB/s)                                              
Selecting previously unselected package postgresql-contrib-9.6.
(Reading database ... 51816 files and directories currently installed.)
Preparing to unpack .../postgresql-contrib-9.6_9.6.10-0+deb9u1_amd64.deb ...
Unpacking postgresql-contrib-9.6 (9.6.10-0+deb9u1) ...
Selecting previously unselected package postgresql-contrib.
Preparing to unpack .../postgresql-contrib_9.6+181+deb9u2_all.deb ...
Unpacking postgresql-contrib (9.6+181+deb9u2) ...
Setting up postgresql-contrib-9.6 (9.6.10-0+deb9u1) ...
update-alternatives: updating alternative /usr/share/postgresql/9.6/man/man1/postmaster.1.gz because link group postmaster.1.gz has changed slave links
Processing triggers for postgresql-common (181+deb9u2) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
Setting up postgresql-contrib (9.6+181+deb9u2) ...

and install again :

2018-09-30 18:48:28,152: WARNING - Installation of N - Node.js version management
2018-09-30 18:48:29,365: WARNING - 2018-09-30 18:48:29 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592] -> "n.tar.gz" [1]
2018-09-30 18:48:31,288: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2018-09-30 18:48:42,134: WARNING - debconf: unable to initialize frontend: Dialog
2018-09-30 18:48:42,137: WARNING - debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
2018-09-30 18:48:42,137: WARNING - debconf: falling back to frontend: Readline
2018-09-30 18:48:42,137: WARNING - debconf: unable to initialize frontend: Readline
2018-09-30 18:48:42,138: WARNING - debconf: (This frontend requires a controlling tty.)
2018-09-30 18:48:42,139: WARNING - debconf: falling back to frontend: Teletype
2018-09-30 18:48:42,242: WARNING - dpkg-preconfigure: unable to re-open stdin:
2018-09-30 18:48:54,378: WARNING - 2018-09-30 18:48:54 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/45213667/4bada680-b748-11e8-91ec-99094d9e9b08?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180930%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180930T164853Z&X-Amz-Expires=300&X-Amz-Signature=5e4928c0b3aaddaded6866e225fde1a8eba0d3cc5176f555a8eaead9c4a39dc9&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dpeertube-v1.0.0-beta.13.tar.xz&response-content-type=application%2Foctet-stream [2040752/2040752] -> "app.tar.xz" [1]
2018-09-30 18:49:05,114: WARNING - warning Resolution field "@types/bluebird@3.5.21" is incompatible with requested version "@types/bluebird@3.5.18"
2018-09-30 18:50:43,854: WARNING - warning " > angular2-hotkeys@2.1.2" has incorrect peer dependency "rxjs@^5.5.0".
2018-09-30 18:50:43,877: WARNING - warning " > bootstrap@4.1.3" has unmet peer dependency "jquery@1.9.1 - 3".
2018-09-30 18:50:43,878: WARNING - warning " > bootstrap@4.1.3" has unmet peer dependency "popper.js@^1.14.3".
2018-09-30 18:50:43,878: WARNING - warning " > ts-jest@23.1.4" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
2018-09-30 18:50:43,879: WARNING - warning " > ts-jest@23.1.4" has unmet peer dependency "babel-jest@^23.0.0 || ^24.0.0".
2018-09-30 18:50:43,879: WARNING - warning " > karma-jasmine-html-reporter@1.3.1" has incorrect peer dependency "jasmine-core@>=3.2".
2018-09-30 18:50:56,319: WARNING - Created symlink /etc/systemd/system/multi-user.target.wants/peertube.service → /etc/systemd/system/peertube.service.
2018-09-30 18:51:27,507: WARNING - /opt/node_n/lib/node_modules/npm/node_modules/npmlog/log.js:57
2018-09-30 18:51:27,515: WARNING - log.progressEnabled = log.gauge.isEnabled()
2018-09-30 18:51:27,516: WARNING -                                 ^
2018-09-30 18:51:27,517: WARNING - 
2018-09-30 18:51:27,518: WARNING - TypeError: log.gauge.isEnabled is not a function
2018-09-30 18:51:27,527: WARNING -     at Object.<anonymous> (/opt/node_n/lib/node_modules/npm/node_modules/npmlog/log.js:57:33)
2018-09-30 18:51:27,527: WARNING -     at Module._compile (module.js:653:30)
2018-09-30 18:51:27,531: WARNING -     at Object.Module._extensions..js (module.js:664:10)
2018-09-30 18:51:27,531: WARNING -     at Module.load (module.js:566:32)
2018-09-30 18:51:27,531: WARNING -     at tryModuleLoad (module.js:506:12)
2018-09-30 18:51:27,532: WARNING -     at Function.Module._load (module.js:498:3)
2018-09-30 18:51:27,532: WARNING -     at Module.require (module.js:597:17)
2018-09-30 18:51:27,533: WARNING -     at require (internal/module.js:11:18)
2018-09-30 18:51:27,533: WARNING -     at /opt/node_n/lib/node_modules/npm/bin/npm-cli.js:22:13
2018-09-30 18:51:27,534: WARNING -     at Object.<anonymous> (/opt/node_n/lib/node_modules/npm/bin/npm-cli.js:153:3)
2018-09-30 18:51:27,535: WARNING - !!
2018-09-30 18:51:27,535: WARNING -   peertube's script has encountered an error. Its execution was cancelled.
2018-09-30 18:51:27,537: WARNING - !!
2018-09-30 18:51:27,537: WARNING -

What is the version of nodjs,node,npm and yarn?

$ nodejs  -v
$ node -v
$ npm -v
$ yarn -v

each one answer me a : command not fond

Manually install in then and try again, ovh server have issues with bash.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

nodejs -v v8.12.0
node -v v8.12.0
npm -v 6.4.1
yarn -v 1.10.1

Try to install peertube again?

same again…

2018-09-30 22:05:44,527: WARNING - Installation of N - Node.js version management
2018-09-30 22:05:45,537: WARNING - 2018-09-30 22:05:45 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592] -> "n.tar.gz" [1]
2018-09-30 22:05:47,866: WARNING - Warning: apt-key output should not be parsed (stdout is not a terminal)
2018-09-30 22:06:04,307: WARNING - debconf: unable to initialize frontend: Dialog
2018-09-30 22:06:04,315: WARNING - debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
2018-09-30 22:06:04,315: WARNING - debconf: falling back to frontend: Readline
2018-09-30 22:06:04,316: WARNING - debconf: unable to initialize frontend: Readline
2018-09-30 22:06:04,316: WARNING - debconf: (This frontend requires a controlling tty.)
2018-09-30 22:06:04,316: WARNING - debconf: falling back to frontend: Teletype
2018-09-30 22:06:04,317: WARNING - dpkg-preconfigure: unable to re-open stdin:
2018-09-30 22:06:10,050: WARNING - 2018-09-30 22:06:09 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/45213667/4bada680-b748-11e8-91ec-99094d9e9b08?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180930%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180930T200609Z&X-Amz-Expires=300&X-Amz-Signature=150efc09b386d3579c201694848d0cecb8f459582b7c4cd640ec82efee9293e3&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dpeertube-v1.0.0-beta.13.tar.xz&response-content-type=application%2Foctet-stream [2040752/2040752] -> "app.tar.xz" [1]
2018-09-30 22:06:19,580: WARNING - warning Resolution field "@types/bluebird@3.5.21" is incompatible with requested version "@types/bluebird@3.5.18"
2018-09-30 22:07:42,959: WARNING - warning " > angular2-hotkeys@2.1.2" has incorrect peer dependency "rxjs@^5.5.0".
2018-09-30 22:07:42,968: WARNING - warning " > bootstrap@4.1.3" has unmet peer dependency "jquery@1.9.1 - 3".
2018-09-30 22:07:42,969: WARNING - warning " > bootstrap@4.1.3" has unmet peer dependency "popper.js@^1.14.3".
2018-09-30 22:07:42,969: WARNING - warning " > ts-jest@23.1.4" has unmet peer dependency "babel-core@^6.0.0 || ^7.0.0-0".
2018-09-30 22:07:42,969: WARNING - warning " > ts-jest@23.1.4" has unmet peer dependency "babel-jest@^23.0.0 || ^24.0.0".
2018-09-30 22:07:42,970: WARNING - warning " > karma-jasmine-html-reporter@1.3.1" has incorrect peer dependency "jasmine-core@>=3.2".
2018-09-30 22:07:47,285: WARNING - Created symlink /etc/systemd/system/multi-user.target.wants/peertube.service → /etc/systemd/system/peertube.service.
2018-09-30 22:08:18,075: WARNING - /opt/node_n/lib/node_modules/npm/node_modules/npmlog/log.js:57
2018-09-30 22:08:18,082: WARNING - log.progressEnabled = log.gauge.isEnabled()
2018-09-30 22:08:18,083: WARNING -                                 ^
2018-09-30 22:08:18,084: WARNING - 
2018-09-30 22:08:18,084: WARNING - TypeError: log.gauge.isEnabled is not a function
2018-09-30 22:08:18,085: WARNING -     at Object.<anonymous> (/opt/node_n/lib/node_modules/npm/node_modules/npmlog/log.js:57:33)
2018-09-30 22:08:18,086: WARNING -     at Module._compile (module.js:653:30)
2018-09-30 22:08:18,086: WARNING -     at Object.Module._extensions..js (module.js:664:10)
2018-09-30 22:08:18,087: WARNING -     at Module.load (module.js:566:32)
2018-09-30 22:08:18,087: WARNING -     at tryModuleLoad (module.js:506:12)
2018-09-30 22:08:18,088: WARNING -     at Function.Module._load (module.js:498:3)
2018-09-30 22:08:18,088: WARNING -     at Module.require (module.js:597:17)
2018-09-30 22:08:18,089: WARNING -     at require (internal/module.js:11:18)
2018-09-30 22:08:18,089: WARNING -     at /opt/node_n/lib/node_modules/npm/bin/npm-cli.js:22:13
2018-09-30 22:08:18,090: WARNING -     at Object.<anonymous> (/opt/node_n/lib/node_modules/npm/bin/npm-cli.js:153:3)
2018-09-30 22:08:18,090: WARNING - !!
2018-09-30 22:08:18,091: WARNING -   peertube's script has encountered an error. Its execution was cancelled.
2018-09-30 22:08:18,091: WARNING - !!
2018-09-30 22:08:18,092: WARNING -

Remove node module.
$ rm -rf /opt/node_n/lib/node_module
Try again

For all the people facing this issue, I have created a peertube branch with ovh server fix.
The people facing nodejs or yarn errors can use this branch. This branch will require manual steps after the installation. Please see the instruction in readme of the branch. I will update this branch with new versions till the issue get fixed.

Steps for installing

  1. Install nodejs

     $ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
     $ sudo apt-get install -y nodejs
    
  2. Install the peertube with OVH fix branch.

    $ yunohost app install --debug https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix

  3. After installation is complete run yarn install .

    $ cd /var/www/peertube && yarn install --production --pure-lockfile

  4. Give proper permissions to peertube

    $ chwon -R peertube:peertube /var/www/peertube

  5. Restart peertube and check if there is any error message.

    $ service peertube restart
    $ journalctl -feu peertube

  6. If there is no error in red in the last lines of log. Press ctrl+c to stop the logs.

  7. Go to your domain to check if peertube is running and everthing is ok.

  8. Change your root password by this command:

    $ cd /var/www/peertube && NODE_CONFIG_DIR="/var/www/peertube/config/" NODE_ENV=production npm run reset-password -- -u root

Username: root
password: created in above step

Peertube is running…
Thank you very much for your help, I appreciate.

1 Like