Unable to install Peertube

Hi, hope everyone is fine - I’m happy to be using Yunohost to host a lot of important services, so thanks for that!

My YunoHost server

Hardware: Old laptop or computer
YunoHost version: 11.2.10
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: Peertube v6.0.3~ynh1

Description of my issue

I’m trying to install Peertube, but failed. There a full log here:

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

This is how the log ends and what seems to create the problem:

2024-02-19 14:14:01,668: DEBUG - [domain2.tld:443] 2024-02-19 14:14:01.667 e[32minfoe[39m: Installing plugin peertube-plugin-auth-ldap.
2024-02-19 14:14:01,794: DEBUG - [domain2.tld:443] 2024-02-19 14:14:01.794 e[31merrore[39m: Cannot exec yarn. {
2024-02-19 14:14:01,795: DEBUG -   "command": "add peertube-plugin-auth-ldap@0.0.12"
2024-02-19 14:14:01,795: DEBUG - }
2024-02-19 14:14:01,795: DEBUG - [domain2.tld:443] 2024-02-19 14:14:01.795 e[31merrore[39m: Cannot install plugin peertube-plugin-auth-ldap, removing it...
2024-02-19 14:14:01,795: DEBUG - undefined
2024-02-19 14:14:01,807: DEBUG - npm notice
2024-02-19 14:14:01,807: DEBUG - npm notice New minor version of npm available! 10.2.4 -> 10.4.0
2024-02-19 14:14:01,807: DEBUG - npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
2024-02-19 14:14:01,807: DEBUG - npm notice Run `npm install -g npm@10.4.0` to update!
2024-02-19 14:14:01,807: DEBUG - npm notice
2024-02-19 14:14:01,813: DEBUG - + ynh_exit_properly
2024-02-19 14:14:01,813: DEBUG - + local exit_code=255
2024-02-19 14:14:01,813: DEBUG - + [[ install =~ ^install$|^upgrade$|^restore$ ]]
2024-02-19 14:14:01,814: DEBUG - + '[' 255 -eq 0 ']'
2024-02-19 14:14:03,317: ERROR - Unable to install peertube: An error occurred inside the app installation script

Yarn is installed, so I don’t know why it fails or cannot run Yarn.

Thanks for any hints at what I could do to fix it.

Best,
Carsten

The real problem is a couple of lines up:

2024-02-19 14:13:59,483: WARNING - Feb 19 14:13:58 peertube[4035629]: [domain2.tld:443] 2024-02-19 14:13:58.404 error: Cannot install application. {
2024-02-19 14:13:59,483: WARNING - Feb 19 14:13:58 peertube[4035629]:   "err": {
2024-02-19 14:13:59,483: WARNING - Feb 19 14:13:58 peertube[4035629]:     "stack": "Error: EACCES: permission denied, scandir '/home/yunohost.app/peertube/storage/cache/previews'",
2024-02-19 14:13:59,483: WARNING - Feb 19 14:13:58 peertube[4035629]:     "message": "EACCES: permission denied, scandir '/home/yunohost.app/peertube/storage/cache/previews'",
2024-02-19 14:13:59,484: WARNING - Feb 19 14:13:58 peertube[4035629]:     "errno": -13,
2024-02-19 14:13:59,484: WARNING - Feb 19 14:13:58 peertube[4035629]:     "code": "EACCES",
2024-02-19 14:13:59,484: WARNING - Feb 19 14:13:58 peertube[4035629]:     "syscall": "scandir",
2024-02-19 14:13:59,484: WARNING - Feb 19 14:13:58 peertube[4035629]:     "path": "/home/yunohost.app/peertube/storage/cache/previews"
2024-02-19 14:13:59,484: WARNING - Feb 19 14:13:58 peertube[4035629]:   }
2024-02-19 14:13:59,484: WARNING - Feb 19 14:13:58 peertube[4035629]: }

Wonder what the permissions on $data_dir should be…

2 Likes

Well spotted, thanks! This must be a leftover from the old installation.

I’ll remove it and try again.

2 Likes

/home/yunohost.app/peertube/ seems to be a leftover from a previous installation.

It should probably have been removed when the original install was uninstalled.

When the new install was run it created a new peertube user which received a new ID but the directory was owned by the old peertube user ID. Hence the permission problem.

I just removed /home/yunohost.app/peertube/ and then the installation went fine. Thanks a lot for helping out! :slight_smile:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.