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

New install fails (6.0.2~ynh3) #421

Open
MyNameIsTroll opened this issue Jan 6, 2024 · 31 comments
Open

New install fails (6.0.2~ynh3) #421

MyNameIsTroll opened this issue Jan 6, 2024 · 31 comments

Comments

@MyNameIsTroll
Copy link

MyNameIsTroll commented Jan 6, 2024

Describe the bug

I had to uninstall the old version of peertube because I had a problem upgrading from 5.2.0 to 5.2.1 ynh1.
When I try to install this new version (6.0.2~ynh3), the installation fails.

Context

  • Hardware: Raspberry Pi at home
  • YunoHost version: 11.2.9.1 (stable)
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen |
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Logs

https://paste.yunohost.org/raw/kalezerehe

@makotoworkshop
Copy link

makotoworkshop commented Jan 7, 2024

Same here
https://paste.yunohost.org/raw/rujilonexo

Context

  • Hardware: PC
  • YunoHost version: 11.2.9.1 (stable)
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen |
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

@ericgaspar
Copy link
Member

Did you try this solution proposed by Alex on the forum?
https://forum.yunohost.org/t/cant-upgrade-peertube/27913/2

@MyNameIsTroll
Copy link
Author

@ericgaspar not yet but i will try, thanks.

@makotoworkshop
Copy link

@ericgaspar , « It's work for me ! »
Many Thanks !

@MyNameIsTroll
Copy link
Author

MyNameIsTroll commented Jan 9, 2024

Good news for @makotoworkshop 👍

Unfortunately, this doesn't work for me.
@makotoworkshop You simply used the command : yunohost app setting peertube admin -v <some_admin_username> ?

This command doesn't produce anything for me because I've uninstalled peertube and the application is no longer on my server.

@ericgaspar
Copy link
Member

This command doesn't produce anything for me because I've uninstalled peertube and the application is no longer on my server.

no problem then, just reinstall PeerTube from scratch

@MyNameIsTroll
Copy link
Author

I've tried, but it doesn't work for me.
I put the error logs on my first post.

@ericgaspar
Copy link
Member

error [email protected]: The engine "node" is incompatible with this module. Expected version ">=18.x". Got "12.22.12"
this error is strange... how did you end up by having Node 12 installed. We are using Node 18 ->

nodejs_version=18

@oufmilo
Copy link
Contributor

oufmilo commented Jan 9, 2024

Good news for @makotoworkshop 👍

Unfortunately, this doesn't work for me. @makotoworkshop You simply used the command : yunohost app setting peertube admin -v <some_admin_username> ?

This command doesn't produce anything for me because I've uninstalled peertube and the application is no longer on my server.

It's work for me with this command 👍

@MyNameIsTroll
Copy link
Author

MyNameIsTroll commented Jan 9, 2024

Great, another happy one :) @oufmilo 👍

I don't understand why I have this problem with nodejs. Usually I administer everything with the yunohost web interface, I don't think I've messed with nodejs though.

Does anyone know a way to fix this?

I read a similar problem on the yunohost forum, but I don't know how to fix this problem.
https://forum.yunohost.org/t/installation-hedgedoc-1-9-8-ynh2-nodejs/25542

@makotoworkshop
Copy link

makotoworkshop commented Jan 9, 2024

Good news for @makotoworkshop 👍

Unfortunately, this doesn't work for me. @makotoworkshop You simply used the command : yunohost app setting peertube admin -v <some_admin_username> ?

This command doesn't produce anything for me because I've uninstalled peertube and the application is no longer on my server.

Yes, just with <some_admin_username> is my admin username.

Have you try to restore the Yunohost backup (this automaticaly created by Yunohost before apply the upgrade, by the upgrading script process) ?
Then you might be use the magical command ^^

@tituspijean
Copy link
Member

@MyNameIsTroll it looks like the issue solely lies with Yarn vs Node vs NPM. Let's try installing the app with the changes made in the aforementioned PR:
sudo yunohost app install https://github.com/YunoHost-Apps/peertube_ynh/tree/debug-yarn -f

🤞
Please share the logs if it fails again.

@MyNameIsTroll
Copy link
Author

@tituspijean thanks, i'll try this and i feed you back 👍

@MyNameIsTroll
Copy link
Author

He failed again unfortunately:
The logs: https://paste.yunohost.org/raw/ofoyacexus

@tituspijean
Copy link
Member

Oops sorry, one small overlook. Try again with the same command :)

@MyNameIsTroll
Copy link
Author

Hi @tituspijean I just tried it, but it didn't work:

https://paste.yunohost.org/raw/amaquvehot

@tituspijean
Copy link
Member

tituspijean commented Jan 12, 2024

In your CLI, can you run sudo which node and sudo which npm, and share the outputs?

If it is /usr/local/bin/node and /usr/local/bin/npm, then what is the output of sudo ls -la /usr/local/bin/{npm,node}?

@MyNameIsTroll
Copy link
Author

MyNameIsTroll commented Jan 12, 2024

@tituspijean of course :

sudo which node = /usr/local/bin/node
sudo which npm = /usr/local/bin/npm

sudo ls -la /usr/local/bin/{npm,node}:


-rwxr-xr-x 1 root root 82273584 Dec 25 06:25 /usr/local/bin/node
lrwxrwxrwx 1 root root       38 Dec 25 06:25 /usr/local/bin/npm -> ../lib/node_modules/npm/bin/npm-cli.js

@tituspijean
Copy link
Member

OK, what's the output of node -v?

@MyNameIsTroll
Copy link
Author

MyNameIsTroll commented Jan 12, 2024

node -v :
-bash: /usr/local/bin/node: No such file or directory

/usr/local/bin $ ls -lah

total 79M
drwxr-xr-x  2 root root 4.0K Dec 25 06:25 .
drwxr-xr-x 10 root root 4.0K Dec 25 22:29 ..
lrwxrwxrwx  1 root root   45 Dec 25 06:25 corepack -> ../lib/node_modules/corepack/dist/corepack.js
-rwxr-xr-x  1 root root  79M Dec 25 06:25 node
lrwxrwxrwx  1 root root   38 Dec 25 06:25 npm -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxrwxrwx  1 root root   38 Dec 25 06:25 npx -> ../lib/node_modules/npm/bin/npx-cli.js

image

@tituspijean
Copy link
Member

🤯 I concede I am lost now... I really cannot replicate your issue.

I have tried something else in the code. Can you run the command again?

@MyNameIsTroll
Copy link
Author

Of course, no problem. I'll try again.
Thanks for your help, I don't understand anything ^_^'

https://paste.yunohost.org/raw/razarugome

@tituspijean
Copy link
Member

New fix added, let's try again. 🤞

@MyNameIsTroll
Copy link
Author

MyNameIsTroll commented Jan 12, 2024

Not yet, it seems ^^
https://paste.yunohost.org/raw/ihuwohodog

@tituspijean
Copy link
Member

I'm utterly flabbergasted.

@MyNameIsTroll
Copy link
Author

Me too...
Thank you for your help. Don't waste your evening :)

@lapineige
Copy link
Member

lapineige commented Jan 14, 2024

env PATH=/opt/node_n/n/versions/node/18/bin:/opt/node_n/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin corepack enable
DEBUG - /usr/bin/env: ‘node’: No such file or directory

Node madness :(

@kodxana
Copy link

kodxana commented Jan 29, 2024

Just for your info PeerTube rquires NodeJS 18 from verison 6.0.0
https://github.com/Chocobozzz/PeerTube/releases/tag/v6.0.0
Read notes :)

@lapineige
Copy link
Member

@kodxana Read the code ;)
https://github.com/YunoHost-Apps/peertube_ynh/blob/master/scripts/_common.sh#L7

@MadMan247
Copy link

Hello,
I do not know if this applies here, but I did encounter this issue when attempting to install peertube 6.0.3 (maybe 6.0.4?) through the official documentation here.
This issue occurred for me VERY SPECIFICALLY after trying to install yarn classic, which requires nodejs to work. I think (don't quote me) that the latest version of "nodejs", before being changed to "node" is that 12.22.X. (I used ubuntu, and for me it was 12.22.9)
image
Here, the command sudo apt update && sudo apt install yarn installs nodejs as a dependency, and the following line sudo apt update && sudo apt install --no-install-recommends yarn does not, but requires you to add the alias to use node as nodejs. For me, I still got stuck at this step, as sudo could still not properly find and use node/yarn. Thanks to yunohost, I still get my own peertube instance.

You may be able to remove the package 12.22.12 through the command line by removing the package "nodejs" (not "node")

@KodeIn
Copy link

KodeIn commented Jun 26, 2024

I also have troubles with installing peertube again after uninstalling it. I wanted to move it to another sub domain.
Here is the log of the new install:
https://paste.yunohost.org/raw/suwitovebo

I tried to restore the old backup, but I got the same problems, looks like it doesn't find ffmpeg during service launch.

And the LDAP package used by the plugin has been decommissioned about 2 months ago by the maintainer.
https://github.com/ldapjs/node-ldapjs/blob/8ffd0bc9c149088a10ec4c1ec6a18450f76ad05d/README.md

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

Successfully merging a pull request may close this issue.

9 participants