Saturday, March 02, 2024
support@conference.yunohost.org
March
Mon Tue Wed Thu Fri Sat Sun
        1
2
3
4
5
6
7 8 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
             

[04:37:00] <Flamy, a Dragon 🐉> Hi. I have a question. YunoHost documentation suggests opening ports on your router to access your device remotely. Is this actually safe and secure? I've read other stuff about self hosting and most things say to set up a VPN, which I've been struggling with doing pretty much all week. To the point that I've come to question whether it is needed in the first place. Hence my question. Thank you in advance for answering.
[08:21:49] <tituspijean> Flamy, a Dragon 🐉: Hi, opening ports is needed for connecting your server to the internet. Sure, you could avoid opening all required ports on your router and use a VPN, but then:
- you would still generally need to open the VPN port on your router
- you could buy a VPN and trust its safety (it has to have open ports at some point)
- you could self-host a VPN on another device, but oh wait you would need to open its ports.

(Insert here a rant on the definition on safe and secure, coming some day in the documentation, and whose conclusion is "it's relative")

Open the ports on your router. There is one safety there, as you need to specify which device the port is forwarded to. Then the second wall of defense is YunoHost's firewall. Then it's the software listening on the open port.
[10:34:44] <rabdomant> Hello, creating the firs user in the onion domain I have an error
[10:34:51] <rabdomant> https://xmpp-upload.samueledward.ynh.fr/upload/jgS1Yv8OVo9p5687/27238977-cae4-4fde-a51d-51dce329c434.png
[10:35:18] <rabdomant> https://xmpp-upload.samueledward.ynh.fr/upload/bEibQ9jLvm1v5714/2199cf6a-a3c7-4ff8-a97a-ae5f7120899c.png
[10:36:53] <rabdomant> changing the name of the new user is ok
[11:17:47] <mrT> but trying to connect the user through monocles or conversations in port 443, with app under orbot, it appears negotiation TLS failed after accept the certificate
[11:22:59] <mrT> > but to me trying to connect the user through monocles or conversations in port 443, with app under orbot, it appears negotiation TLS failed after accept the certificate

[18:00:57] <xananax> I've tried updating nextcloud and got an error because of a bad app. I then manually deleted the app from `/var/www/nextcloud/apps`, and reran the update. It seems to have run properly (I can access the nextcloud instance), but I got

```
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
Error: Could not upgrade nextcloud: This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`.
Info: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240302-174801-app_upgrade-nextcloud' to get help
Error: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240302-174801-app_upgrade-nextcloud' to get help
```

I did run `sudo apt install --fix-broken`, but it doesn't seem to have fixed things.
I still get

```
# yunohost app upgrade --no-safety-backup nextcloud
Info: Now upgrading nextcloud...
Error: Command '['git', 'ls-remote', '--symref', 'https://github.com/YunoHost-Apps/nextcloud_ynh', 'HEAD']' returned non-zero exit status 128.
Error: Could not fetch source files, is the URL correct?

# yunohost app upgrade --no-safety-backup gitea
Info: Now upgrading gitea...
Error: Command '['git', 'ls-remote', '--symref', 'https://github.com/YunoHost-Apps/gitea_ynh', 'HEAD']' returned non-zero exit status 128.
Error: Could not fetch source files, is the URL correct?
```

Here is the log paste: https://paste.yunohost.org/raw/ecimoyuril
[18:01:36] <xananax> (I use `--no-safety-backup` because I backup externally)
[18:35:52] <hook> FunkWhale – what’s the right way to make it use `yunohost.multimedia`’s folder shared with other apps?
[18:36:53] <hook> Do I use the `/home/yunohost.multimedia/share/Music` or `/home/yunohost.multimedia/{$my_user}/Music`?
[19:01:55] <hook> If I understand the docs right, it seems shared folder is the way to go.
[19:02:32] <rodinux> > <@Xananax:matrix.org> (I use `--no-safety-backup` because I backup externally)

The message getcwd() is when you are in a path broken ! If you remove an app you don't have to do it from the path needed to be also removed...
[19:13:25] <hook> Hmmm, this does not seem to have done what I intended.
[19:28:43] <rodinux> > <@Xananax:matrix.org> I've tried updating nextcloud and got an error because of a bad app. I then manually deleted the app from `/var/www/nextcloud/apps`, and reran the update. It seems to have run properly (I can access the nextcloud instance), but I got
>
> ```
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> sh: 0: getcwd() failed: No such file or directory
> Error: Could not upgrade nextcloud: This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`.
> Info: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240302-174801-app_upgrade-nextcloud' to get help
> Error: The operation 'Upgrade the 'nextcloud' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240302-174801-app_upgrade-nextcloud' to get help
> ```
>
> I did run `sudo apt install --fix-broken`, but it doesn't seem to have fixed things.
> I still get
>
> ```
> # yunohost app upgrade --no-safety-backup nextcloud
> Info: Now upgrading nextcloud...
> Error: Command '['git', 'ls-remote', '--symref', 'https://github.com/YunoHost-Apps/nextcloud_ynh', 'HEAD']' returned non-zero exit status 128.
> Error: Could not fetch source files, is the URL correct?
>
> # yunohost app upgrade --no-safety-backup gitea
> Info: Now upgrading gitea...
> Error: Command '['git', 'ls-remote', '--symref', 'https://github.com/YunoHost-Apps/gitea_ynh', 'HEAD']' returned non-zero exit status 128.
> Error: Could not fetch source files, is the URL correct?
> ```
>
> Here is the log paste: https://paste.yunohost.org/raw/ecimoyuril

I have got something similar, I have to do this `apt install yunohost` in your log you have `yunohost 0`
[19:30:08] <rodinux> `yunohost_version: '0'`
[20:18:10] <xananax> > <@rodinux:matrix.org> The message getcwd() is when you are in a path broken ! If you remove an app you don't have to do it from the path needed to be also removed...

I removed a nextcloud app (a plugin). I did not remove a yunohost app
[20:19:27] <xananax> Nextcloud supports simply deleting an app from the `/apps` directory; this isn't the problem
[20:20:40] <xananax> I tried `apt install yunohost` but it doesn't seem to do anything
[20:21:03] <xananax> in apt, my yunohost version is correct, the log refers to something else probably
[20:21:43] <0> xananax: yunohost isn't in apt repos
[20:22:10] <0> You need to install it through curl https://install.yunohost.org | bash
[20:37:42] <xananax> `cd .` fixed it. It seems yunohost deleted and recreated the `/apps` dir where I was located, and it seems this was throwing off everything