YunoHost-Apps / vaultwarden_ynh

Open source password management solutions for YunoHost
https://bitwarden.com/
GNU General Public License v3.0
54 stars 17 forks source link

Installation fails with permission denied error during rustup setup #153

Closed joelselvaraj closed 2 years ago

joelselvaraj commented 2 years ago

Describe the bug

Unable to install vaultwarden. Rustup don't get installed and errors saying error: could not create bin directory: '/var/www/vaultwarden/.cargo/bin': Permission denied (os error 13)

Context

Steps to reproduce

sudo yunohost app install vaultwarden

Logs

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

yalh76 commented 2 years ago

Can you retry and let me know ?

joelselvaraj commented 2 years ago

I tried both the master and testing branch. It still fails with the same error. My permission for /var/www are as follows. Anything feels odd?

root@jsfamily:~# ls -la /var/www
total 36
drwxr-x---+  7 www-data       www-data 4096 Jan 20 10:31 .
drwxr-xr-x  13 root           root     4096 Aug 10  2020 ..
drwxr-x---   2 www-data       www-data 4096 Aug 10  2020 html
drwxr-xr-x   3 www-data       www-data 4096 Mar  9  2021 .local
drwxr-x---  14 www-data       www-data 4096 Jan 15 17:14 nextcloud
-rw-------   1 www-data       www-data 1024 Jan 20 00:21 .rnd
-rw-r--r--   1 www-data       www-data   66 Mar  9  2021 .selected_editor
drwxr-x---   2 matrix-synapse root     4096 Aug 10  2020 synapse
drwxr-x---  11 www-data       www-data 4096 Nov 23 12:30 .well-known

root@jsfamily:~# ls -la /var/
total 52
drwxr-xr-x  13 root      root     4096 Aug 10  2020 .
drwxr-xr-x  20 root      root     4096 Oct 12 03:54 ..
drwxr-xr-x   5 root      root     4096 Jan 20 10:08 backups
drwxr-xr-x  15 root      root     4096 Sep  8  2020 cache
drwxr-xr-x  48 root      root     4096 Sep 21 03:40 lib
drwxrwsr-x   2 root      staff    4096 May  2  2020 local
lrwxrwxrwx   1 root      root        9 Aug 10  2020 lock -> /run/lock
drwxr-xr-x  18 root      root     4096 Jan 20 00:00 log
drwxrwsr-t   8 root      mail     4096 Jan 21  2021 mail
drwxr-xr-x   3 root      root     4096 Sep 29 12:31 opt
lrwxrwxrwx   1 root      root        4 Aug 10  2020 run -> /run
drwxr-xr-x   6 root      root     4096 Aug 10  2020 spool
drwxrwxrwt   8 root      root     4096 Jan 20 10:09 tmp
drwxr-x---+  7 www-data  www-data 4096 Jan 20 10:31 www
drwxr-x---   5 metronome www-data 4096 Jan  8  2021 xmpp-upload