Thursday, February 13, 2025
dev@conference.yunohost.org
February
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
   
             

[06:51:27] <Yunohost Git/Infra notifications> [yunohost] a​lexAubin pushed 1 commit to new-resources: app/resources: implement tests for the new nodejs/ruby/go/composer resources ([e777f52c](https://github.com/YunoHost/yunohost/commit/e777f52c4571e23a28966cc8c6946cd12900fc73))
[06:53:55] <Yunohost Git/Infra notifications> [yunohost] a​lexAubin pushed 1 commit to move-perm-data-out-of-ldap: app/permissions: draft new core app config panel to edit the permission stuff and upgrade/change_url/uninstall the app ([1536ae15](https://github.com/YunoHost/yunohost/commit/1536ae151305b2dd258b079f8143139311f310f8))
[07:42:26] <Yunohost Git/Infra notifications> [yunohost] a​lexAubin pushed 1 commit to new-resources: app/resources: implement tests for the new nodejs/ruby/go/composer resources ([b8dd3838](https://github.com/YunoHost/yunohost/commit/b8dd38380c5b91a13772328f0504bbd8c12e3620))
[10:22:18] <rodinux> hello I am discovering on few yunohost instance there is something perhaps wrong in postfix, no more lines in `/etc/postfix/app_senders_login_maps` so the apps have an error when try send mail...
[10:23:53] <Aleks (he/him/il/lui)> mokay
[10:23:56] <Aleks (he/him/il/lui)> are there any error returned by `yunohost tools regen-conf postfix` ?
[10:24:03] <rodinux> no
[10:26:00] <rodinux> but message like
```
Jan 12 16:02:20 domain postfix[2955459]: Postfix is using backwards-compatible default settings
Jan 12 16:02:20 domain postfix[2955459]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 12 16:02:20 domain postfix[2955459]: To disable backwards compatibility use "postconf compatibility_level=3.6" and "postfix reload"
Jan 12 16:02:20 domain postfix/postfix-script[2955512]: warning: not owned by root: /etc/postfix/.
Jan 12 16:02:20 domain postfix/postfix-script[2955513]: warning: not owned by root: /etc/postfix/./app_senders_login_maps.db
Jan 12 16:02:20 domain postfix/postfix-script[2955514]: warning: not owned by root: /etc/postfix/./app_senders_login_maps
Jan 12 16:02:20 domain postfix/postfix-script[2955558]: starting the Postfix mail system
Jan 12 16:02:20 domain postfix/master[2955560]: daemon started -- version 3.7.11, configuration /etc/postfix
Jan 12 16:05:02 domain postfix/pickup[2955562]: 09A2360F75: uid=997 from=<nextcloud>
Jan 12 16:05:02 domain postsrsd[3034888]: srs_forward: <nextcloud@domain.tld> not rewritten: Domain excluded by policy
Jan 12 16:05:02 domain postfix/cleanup[3034869]: 09A2360F75: message-id=<20250112150502.09A2360F75@domain.tld>
Jan 12 16:05:02 domain postfix/qmgr[2955563]: 09A2360F75: from=<nextcloud@domain.tld>, size=2322, nrcpt=1 (queue active)
Jan 12 16:05:03 domain dovecot: lda(nextcloud@domain.tld)<3034899><>: Error: auth-master: userdb lookup(nextcloud@domain.tld): connect(/var/run/dovecot/auth-master) failed: Connection refused
```
[10:26:22] <rodinux> Perhaps is normal ?
[10:27:09] <rodinux> ```
cat /etc/postfix/app_senders_login_maps
# This file is regenerated automatically.
# Please DO NOT edit manually ... changes will be overwritten!
```
[10:37:07] <rodinux> ```
cat /var/log/mail.err
Jan 12 16:02:03 domain dovecot: stats: Error: conn unix:stats (pid=2953504,uid=0): Socket supports major version 4, but we support only 3 (mixed old and new binaries?)
Jan 12 16:05:03 domain dovecot: lda(nextcloud@domain.tld)<3034899><>: Error: auth-master: userdb lookup(nextcloud@domain.tld): connect(/var/run/dovecot/auth-master) failed: Connection refused
Jan 12 16:05:03 domain dovecot: lda(3034899): Fatal: Internal error occurred. Refer to server log for more information.
```
[10:39:59] <Aleks (he/him/il/lui)> does `grep -o "^mail_pwd" /etc/yunohost/apps/*/settings.yml` returns something ?
[10:41:01] <rodinux> nope
[10:41:45] <Aleks (he/him/il/lui)> then supposedly no app is properly integrated with email ...
[10:41:59] <Aleks (he/him/il/lui)> does `grep allow_email /etc/yunohost/apps/*/manifest.toml` returns something ?
[10:42:38] <rodinux> grep allow_email /etc/yunohost/apps/*/manifest.toml
/etc/yunohost/apps/nextcloud/manifest.toml: allow_email = true
[10:42:45] <Aleks (he/him/il/lui)> hmkay
[10:44:27] <rodinux> in another server I have this
```
grep -o "^mail_pwd" /etc/yunohost/apps/*/settings.yml
/etc/yunohost/apps/nextcloud/settings.yml:mail_pwd
```
[10:48:07] <rodinux> sorry, this correct on all servers
[10:50:55] <rodinux> But I found the error in `mail.err` on another server with nextcloud
[10:51:14] <Aleks (he/him/il/lui)> i dunno how you managed to get in that state where mail_pwd doesnt exist for nextcloud x_x
[10:51:21] <Aleks (he/him/il/lui)> https://github.com/YunoHost/yunohost/blob/dev/src/utils/resources.py#L865
[10:51:55] <Aleks (he/him/il/lui)> maybe force-upgrading the app would solve it idk
[10:52:20] <rodinux> yes, it was a mistake...
[10:52:20] <Aleks (he/him/il/lui)> or i suppose you can also manually set the mail\_pwd setting with a random value, that should work
[10:52:56] <rodinux> but there is an error
```
```

[10:54:58] <rodinux> Om I try
[10:59:51] <rodinux> I just don't understand why some servers have the user of the app nextcloud in `/etc/postfix/app_senders_login_maps` others have nothing...
[11:01:58] <Aleks (he/him/il/lui)> have those nextcloud been upgraded in some funky ways ...?
[11:03:27] <rodinux> Ah, ok it's good, after doing a app upgrade --force and go to admin in nextcloud and tests the email
[11:04:35] <Aleks (he/him/il/lui)> but did those nextcloud instances got upgraded in some funky ways before this x_x
[11:04:58] <rodinux> not here
[11:06:12] <rodinux> when I look `/var/mail.info` I see logs from `Jan 12 16:05:03` ???
[11:10:11] <rodinux> I think since I have do the upgrade to Yunohost 12, the log for mails and the error I told you, are on the date of this migration `Jan 12`...
[11:24:43] <rodinux> Sorry for the noise..;
[17:15:40] <Yunohost Git/Infra notifications> [yunohost] Q​uiwy opened [pull request #2045](https://github.com/YunoHost/yunohost/pull/2045): Fix ynh_config_add helpers.v.2.1 example
[17:16:35] <Yunohost Git/Infra notifications> [yunohost] a​lexAubin merged [pull request #2045](https://github.com/YunoHost/yunohost/pull/2045): Fix ynh_config_add helpers.v.2.1 example
[17:16:38] <Yunohost Git/Infra notifications> [yunohost] a​lexAubin pushed 1 commit to main: doc: Fix ynh_config_add helpers.v.2.1 example (#2045) ([df85c4d3](https://github.com/YunoHost/yunohost/commit/df85c4d36d4f8821c086263b09a79b2a6b00bffd))
[20:03:42] <Yunohost Git/Infra notifications> [issues] L​agunix labeled :space_invader: bug on [issue #2534](https://github.com/YunoHost/issues/issues/2534): The repository is not signed
[20:03:42] <Yunohost Git/Infra notifications> [issues] L​agunix opened [issue #2534](https://github.com/YunoHost/issues/issues/2534): The repository is not signed
[20:11:30] <Yunohost Git/Infra notifications> [issues] L​agunix [commented](https://github.com/YunoHost/issues/issues/2277#issuecomment-2657612978) on [issue #2277](https://github.com/YunoHost/issues/issues/2277) Missing key for Sury repo: > yunohost tools regen-conf apt

# sudo yunohost tools regen-conf apt

Warning: gpg: no valid OpenPGP data found.
Error:...