Friday, August 04, 2023
support@conference.yunohost.org
August
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
     
             

[00:51:01] <miro5001> cat /etc/resolv.conf
[04:48:58] <Christopher> it is a PC. You think I have to reinstall Yunohost?

[04:48:59] <Tag> Well, on a PC you could try to boot a live USB and resize the partition
[04:49:00] <Tag> Yes, that's not a quick and easy task :/ You'll have to prepare, and be sure to do a backup and download it! This way, if anything goes wrong, you will be able to re-install a fresh yunohost and restore the backup
[04:49:00] <Christopher> Ok, so that sounds like a task for another day, unless there isn't an immediate resolution to what I have going on now.

[04:50:12] <Christopher> Got it, so how do find out what I can still delete from the boot partition to free up space?

[04:54:31] <Tag> It's not really safe, you'll have to clean things up afterwards, but you can try to remove old kernels manually.
You can run `uname -r` to see the kernel you're running on right now.
Then checks what kernels are actually listed by `ls /boot`
[04:54:33] <Tag> Usually, to remove old kernels, I run `apt autoremove`, but since your apt is broken it will probably fail
[04:54:33] <Christopher> uname -r
5.10.0-23-amd64

ls /boot
config-5.10.0-22-amd64 initrd.img-5.10.0-23-amd64 vmlinuz-5.10.0-22-amd64
config-5.10.0-23-amd64 lost+found vmlinuz-5.10.0-23-amd64
grub System.map-5.10.0-22-amd64
initrd.img-5.10.0-22-amd64 System.map-5.10.0-23-amd64


[04:54:36] <Christopher> Yeah, I've tried the autoremove several times already
[04:56:50] <Tag> Wokay you're running 23 already, then remove 22 with `rm /boot/config-5.10.0-22-amd64 /boot/vmlinuz-5.10.0-22-amd64 /boot/initrd.img-5.10.0-22-amd64`
[04:56:51] <Tag> and you should be able to run `sudo apt install --fix-broken`
[04:56:51] <Christopher> Ok, I'll give it a shot
[04:59:04] <Christopher> Looks like my server is all fixed up! Thanks Tag
[04:59:06] <Tag> And at some point you will want to increase this /boot partition for sure, at least 500M is the recommended size nowadays
[04:59:06] <Tag> Wokay so one more things to clean-up the mess would be to run apt autoremove
[04:59:09] <Christopher> ok

[05:00:51] <Christopher> Added the partition increase to my to-do list. 😀
[07:30:45] <douwe> I am trying to find out which version of Nginx I have
[07:30:46] <douwe> hey nginx is installed and runnign correctly according to the YNH diagnosis tool.

But when I prompt `nginx` in the terminal, the is output is: `-bash: nginx: command not found`
[07:46:38] <lapineige> What does a `service nginx reload` gives you ?
[09:09:32] <Aleks (he/him/il/lui)> You probably need to be root or use sudo because nginx's bin is in /usr/sbin instead of /usr/bin
[09:10:59] <Aleks (he/him/il/lui)> (My god we should really write some sort of command like `yunohost tools cleanup-old-kernels`)
[10:24:43] <douwe> nothing.

```
root@ynh:/# service nginx reload
root@ynh:/#
````
[10:25:22] <douwe> but after that I do get:

```
root@ynh:/# nginx -v
nginx version: nginx/1.18.0
```
[10:27:30] <douwe> Yeah, I was root, But needed to reload as lapineige pointed out. Thnx for the tips
[10:30:57] <Aleks (he/him/il/lui)> Yes thats because you are root so it works ...
[11:58:25] <douwe> > <@douwe:thorp.eu> Hey, I have an issue with my nextcloud installation. I asked on the forum twice ( [here](https://forum.yunohost.org/t/nextcloud-the-server-has-no-working-internet-connection/22593) and [here](https://forum.yunohost.org/t/nextcloud-this-server-has-no-working-internet-connection/20878) ), but sadly no one could help me.
>
> I just removed nextcloud from my instance and made a brand new fresh installation. But the same problem is still there. I am tempted to open another forum topic, but that doesn't feel right. So I am asking here if anyone can help me.
>
> Big thanks already!

as per this question, I have found [some tips on the Nextcloud forum](https://help.nextcloud.com/t/this-server-has-no-working-internet-connection-when-it-actually-does/167527/7). Hopefully those are YNH-agnostic...


[12:20:36] <douwe> I just ran into this error:


> Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.0.2”. You are running 7.4.33. in /var/www/nextcloud/3rdparty/composer/platform_check.php on line 24


I am not offered a PHP update when I run `sudo apt update && sudo apt upgrade`.

Is this version of YNH not yet ready for PHP 8.0.2? Or is something else going on?
[12:30:42] <Tag> douwe: It should be php 8.1 right now. Is your system up to date ? And the nextcloud app ?
[13:14:03] <douwe> Tag: how can I best check and update if needed?
[13:15:26] <douwe> Tag: how can I best check and update if needed?

YNH says it is up to date and nextcloud is 27.0.1. The latest version
[13:16:54] <Tag> If yunohost doesn't advertise any update, then it's up to date.
Your nextcloud is supposed to run on php 8.1 so there is an issue somewhere.
[13:17:14] <Tag> Can you run `ls /etc/php/7.4/fpm/pool.d` and see if there anything about nextcloud ?
[13:18:16] <Tag> > <@douwe:thorp.eu> I just ran into this error:
>
>
> > Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.0.2”. You are running 7.4.33. in /var/www/nextcloud/3rdparty/composer/platform_check.php on line 24
>
>
> I am not offered a PHP update when I run `sudo apt update && sudo apt upgrade`.
>
> Is this version of YNH not yet ready for PHP 8.0.2? Or is something else going on?

Oh wait, when do you get this error ? In Nextcloud or in the CLI ?
[13:18:36] <k1ngzly> I'm trying to fix this right now https://paste.yunohost.org/raw/oponokuson
[13:18:37] <k1ngzly> I ran sudo apt-get install libmariadb-dev-compat already, any advice would be appreciated
[13:19:24] <douwe> ```
$ /etc/php/7.4/fpm/pool.d
bash: /etc/php/7.4/fpm/pool.d: Is a directory
```
[13:19:57] <douwe> I got that error in the CLI
[13:20:37] <douwe> In the meantime I went ahead a little and removed PHP 7.4 with `sudo apt-get remove --purge php7.4*`
[13:20:40] <Tag> /o\
[13:21:15] <douwe> How can I check if version 8.1 is used by nginx?
[13:22:14] <douwe> sorry for the impatience. Holding horses now
[13:22:20] <Tag> > <@douwe:thorp.eu> I got that error in the CLI

What was the command ?
[13:22:52] <douwe> but the composer error is gone :-)
[13:23:38] <Tag> Yes, for sure... hoping you don't have an another app that required php7.4
[13:23:42] <k1ngzly> did my post get eaten up by bad network connection
[13:24:48] <Tag> When you have multiple php version installed, you can add the version number you want to run to the command (`php8.1 your_file.php` instead of `php your_file.php`)
[13:25:04] <douwe> good point . gonna test now
[13:28:09] <Tag> k1ngzly: nope, but I have no clue. You'll have to wait a bit more... or post on the forum / github
[13:31:37] <Tag> k1ngzly: why did you mention libmariadb-dev-compat ? I don't see any error about mariadb in your log 🤔
[13:34:28] <douwe> meh, that broke my wallabag...
[13:36:28] <Tag> you can run `sudo yunohost app upgrade wallabag -F` to force an upgrade, that will probably fix your wallabag
[13:48:37] <douwe> whoa, that indeed did it.
[13:48:54] <douwe> thnx a bunch
[13:49:25] <douwe> can I be so bold to ask you also something about Nextcloud?
[14:07:57] <Tag> Don't ask to ask is one of the rules :p
[14:16:59] <orhtej2> > <@k1ngzly:libera.chat> I'm trying to fix this right now https://paste.yunohost.org/raw/oponokuson

looks like `mysqlclient` is having some issues, cannot install it outside of install scripts as well
[14:22:20] <douwe> don't want to over-ask.

My NC installation is having issues. I detailed them on the NC forum and also got some help. But the main problem is still not resolved
[14:22:49] <douwe> https://help.nextcloud.com/t/this-server-has-no-working-internet-connection-when-it-actually-does/167527/7
[14:22:53] <douwe> most people also there don't really want to help if they find out you are using some weird french software they never heard off...
[14:27:18] <douwe> but maybe, as you are in both worlds, you have an idea
[14:41:23] <orhtej2> > <@k1ngzly:libera.chat> did my post get eaten up by bad network connection

on a second thought how do you have Python 3.11? Bullseye ships with 3.9: https://packages.debian.org/bullseye/python3
[14:41:55] <orhtej2> (and I was able to `pip install mysqlclient` after resolving messups on my end)
[14:42:37] <orhtej2> (on a third thought is the bridge ignoring me again? :P)
[14:56:59] <orhtej3> k1ngzly how come you have Python 3.11 installed when installing homeassistant?
[14:58:55] <Tag> > <@douwe:thorp.eu> https://help.nextcloud.com/t/this-server-has-no-working-internet-connection-when-it-actually-does/167527/7

I don't know nextcloud that much, but what's the result of the `isSiteReachable.php` thing ?
[14:59:52] <douwe> that was positive. All sites can be reached from within NC
[15:00:35] <Tag> Then I don't know :/
[15:01:51] <douwe> thnx for thinking along ;-)
[15:41:12] <k1ngzly> Should I be using a different version of python?
[16:23:16] <orhtej2> > <@k1ngzly:libera.chat> Should I be using a different version of python?

I'm asking because Debian 11 Bullseye comes with Python 3.9, having 3.11 may indicate you're running Debian 12 Bookworm which is not supported yet
[17:38:21] <starlord> I am running out of space on my Yunohost and want to plug in a USB hard drive. What steps must I take to ensure the system uses it? (Total beginner here, access via webadmin/SSH).
[17:42:28] <Tag> starlord: you can start here : https://yunohost.org/en/administer/tutorials/external_storage
[17:45:12] <starlord> This seems like it deals a lot with moving data to a different disk, but I'm just wanting to add extra space as I use more and more. Do the same instructions apply?
[18:22:06] <douwe> hey I just (re-)installed Nextcloud (27.0.1) on my Yunohost (11.2.3) server. And wanted to configure some stuff using `occ`. But that command is not recognised...
[18:22:32] <douwe> is that normal that occ can't be found when NC is installed in YNH?
[18:23:15] <Chatpitaine Caverne> > <@douwe:thorp.eu> is that normal that occ can't be found when NC is installed in YNH?

It's not in the PATH. You find this command in /var/www/nextcloud.
[18:24:43] <Tag> You'll have to run it as nextcloud user too
[18:25:43] <douwe> what would be the prompt then?
[18:25:43] <Tag> Something like this :
```
cd /var/www/nextcloud
sudo -u nextcloud php8.1 --define apc.enable_cli=1 occ
```
[18:31:37] <douwe> that is the 3rd time you greatly help me today. 🙏
[22:25:51] <lapineige> Where do you want to add this extra space ? For what purpose ? That can change the answer
[22:47:56] <Guest50> Hi I'm trying to add a new language file to Misskey, I've added the language file already but I can't figure out how to re build it
[22:49:14] <Guest50> It seems that yunohost is only showing the version before I edited it (the file in /var/www/misskey)