Sunday, July 02, 2023
support@conference.yunohost.org
July
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
           

[05:46:07] <jrkb> i absolutely love yunohost so far! thank you so much for this amazing piece of software :)

I have a question though, i just installed mastodon and the registration confirmation mails are not sent / received. any idea how i can debug this? I am new to both mastodon and yunohost,
[06:44:20] <jrkb> I see that there is an admin email configured https://github.com/YunoHost-Apps/mastodon_ynh/blob/master/conf/.env.production.sample#L59 ... is there a ui where i can change this?
[07:15:38] <jrkb> i receive other emails by yunohost. i vaguely remember changing the email from something@localhost to my domain, but i can't remember where
[07:55:09] <Chatpitaine Caverne> jrkb: Can you have a look in Tools / Services / dovecot ?
And in Mastodon service also.
Maybe you gonna find some error messages explaining what happens.
And you can share these logs with us by using Share with Yunopaste (this removes sensitive datas from the logs, so you can share if you need help).
[07:56:46] <jrkb> mastodon-sidekiq: https://paste.yunohost.org/cipisamewu
[07:57:17] <jrkb> mastodon-web: https://paste.yunohost.org/ahexofamen
[07:57:31] <jrkb> i see, there are some errors (dovecot): https://paste.yunohost.org/hogomovuli
[07:58:27] <jrkb> possibly this is related `error: open file /etc/mailname: No such file or directory`
[07:59:26] <jrkb> it's from last week though, i just today tried again to resend the confirmation mail
[08:00:55] <jrkb> perhaps june 25 is when i adjusted the email address somewhere from something@localhost to something@my.domain
[08:06:25] <jrkb> and thanks for the hints. i appreciate the help! i hope to figure this out soon, i otherwise cannot send invites to the instance. it would be sooooo amazing if it works :) i am really itching for this and am grateful for any support
[08:09:14] <phlip> Hi, I wanted to update dotclear from 2.24 to 2.26 from the dotclear admin console and although the first part of the process went smoothly, I guess transferring and copying the new files, it went sore as it tried to finish the process. Since then I cannot run my blog https://sante9naturel. fr neither I can log as an admin in dotclear. Any idea as to clear this problem? I deled all cookies, no changes.
[08:24:46] <Chatpitaine Caverne> jrkb: I don't see for now (I don't use Mastodon).
If you have SSH access, you could have a look in the file mastodon.production which should be or in /var/www/mastodon, or in /opt/yunohost/mastodon.
And check if the Mail part is correctly configured.
[08:29:53] <jrkb> hmmm there is an `/var/www/mastodon/live/.env.production` with
```
# Sending mail
# ------------
SMTP_SERVER=localhost
SMTP_PORT=25
#SMTP_LOGIN=
#SMTP_PASSWORD=
SMTP_FROM_ADDRESS=my.account@my.domain # just adjusted this before pasting. it is my proper email, which also works for sending mails via roundcube
#SMTP_REPLY_TO=
#SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
SMTP_DELIVERY_METHOD=sendmail # delivery method can also be smtp
SMTP_AUTH_METHOD=none
#SMTP_CA_FILE=/etc/ssl/certs/ca-certificates.crt
SMTP_OPENSSL_VERIFY_MODE=none
#SMTP_ENABLE_STARTTLS_AUTO=true
#SMTP_TLS=true

```
[08:30:47] <jrkb> possibly the SMTP_LOGIN & SMTP_PASSWORD has to be set? i would love to avoid putting my account password in cleartext in there though
[08:35:27] <Chatpitaine Caverne> Yeah, not sure, i'm not an expert also.
For such cases where I don't like to put password in file, I created a Yunohost user mail agent who as only the rights to mails.
[08:56:34] <jrkb> user mail agent, as in you create a new yunohost user, which is only there to send emails?
[08:57:42] <jrkb> > <@chatpitaine:cirkau.art> Yeah, not sure, i'm not an expert also.
> For such cases where I don't like to put password in file, I created a Yunohost user mail agent who as only the rights to mails.

but thanks a lot for your suggestions, this was super useful for me
[09:01:00] <choyer> > hmmm there is an `/var/www/mastodon/live/.env.production` with
> ```
> # Sending mail
> # ------------
> SMTP_SERVER=localhost
> SMTP_PORT=25
> #SMTP_LOGIN=
> #SMTP_PASSWORD=
> SMTP_FROM_ADDRESS=my.account@my.domain # just adjusted this before pasting. it is my proper email, which also works for sending mails via roundcube
> #SMTP_REPLY_TO=
> #SMTP_DOMAIN= # defaults to LOCAL_DOMAIN
> SMTP_DELIVERY_METHOD=sendmail # delivery method can also be smtp
> SMTP_AUTH_METHOD=none
> #SMTP_CA_FILE=/etc/ssl/certs/ca-certificates.crt
> SMTP_OPENSSL_VERIFY_MODE=none
> #SMTP_ENABLE_STARTTLS_AUTO=true
> #SMTP_TLS=true
>
> ```

This gave me a major headache for days as well before I was able to figure it out trying a plethora of different settings. I almost gave up on Mastodon as I couldn’t any mails to be sent. Now it works, will copy my settings in a bit and post, probably those help.
[12:54:47] <webmink> eric_G: How far off is the upgrade to CryptPad 5.3 please?
[13:40:19] <eric_G> webmink: Comme dirait le grand schtroumpf; non c'est plus trop loin !
[16:03:54] <Hagen (fimidi.com)> Hi 👋
I use the monica app und wanted to update from 3.7 to 4.0.
The update failed and here is the log https://paste.yunohost.org/raw/esuqoxaqum
Any ideas?
[16:27:55] <Hagen (fimidi.com)> > <@hagengraf:matrix.org> Hi 👋
> I use the monica app und wanted to update from 3.7 to 4.0.
> The update failed and here is the log https://paste.yunohost.org/raw/esuqoxaqum
> Any ideas?

Is this the right place to ask?
[16:30:25] <tituspijean[m]> It is! The forum is also a possibility.
[18:42:28] <orhtej2> > <@hagengraf:matrix.org> Hi 👋
> I use the monica app und wanted to update from 3.7 to 4.0.
> The update failed and here is the log https://paste.yunohost.org/raw/esuqoxaqum
> Any ideas?

known issue I guess: https://github.com/YunoHost-Apps/monica_ynh/issues/69
[19:13:38] <Hagen (fimidi.com)> > known issue I guess: https://github.com/YunoHost-Apps/monica_ynh/issues/69

🙏I have a look
[19:34:39] <orhtej2> Anyone knows stuff about `composer`? Outcome of fresh install vs update in `monica` differs, as if `@php artisan package:discover` used some (incorrectly) cached state
[19:35:59] <orhtej2> as per [this comment](https://github.com/YunoHost-Apps/monica_ynh/issues/69#issuecomment-1616793767)
[21:16:30] <choyer> Those are my settings that work now:

# Sending mail

# ------------

SMTP\_SERVER=mydomain.tld
SMTP\_PORT=587
SMTP\_LOGIN=LoginNameOfYourYunohostUser
SMTP\_PASSWORD=AGoodLongDifficultPassword
SMTP\_FROM\_ADDRESS=FromMailAddress
#SMTP\_REPLY\_TO=
#SMTP\_DOMAIN= # defaults to LOCAL\_DOMAIN
SMTP\_DELIVERY\_METHOD=smtp
SMTP\_AUTH\_METHOD=plain
#SMTP\_CA\_FILE=/etc/ssl/certs/ca-certificates.crt
SMTP\_OPENSSL\_VERIFY\_MODE=none
SMTP\_ENABLE\_STARTTLS\_AUTO=true
#SMTP\_TLS=true
[21:17:53] <choyer> > <@choyer:tchncs.de> Those are my settings that work now:
>
> # Sending mail
>
> # ------------
>
> SMTP\_SERVER=mydomain.tld
> SMTP\_PORT=587
> SMTP\_LOGIN=LoginNameOfYourYunohostUser
> SMTP\_PASSWORD=AGoodLongDifficultPassword
> SMTP\_FROM\_ADDRESS=FromMailAddress
> #SMTP\_REPLY\_TO=
> #SMTP\_DOMAIN= # defaults to LOCAL\_DOMAIN
> SMTP\_DELIVERY\_METHOD=smtp
> SMTP\_AUTH\_METHOD=plain
> #SMTP\_CA\_FILE=/etc/ssl/certs/ca-certificates.crt
> SMTP\_OPENSSL\_VERIFY\_MODE=none
> SMTP\_ENABLE\_STARTTLS\_AUTO=true
> #SMTP\_TLS=true

I created a specific user in yunohost with only the mail permission so that I do not have to add the admin user's password into this file.
[21:39:45] <orhtej2> > <@choyer:tchncs.de> I created a specific user in yunohost with only the mail permission so that I do not have to add the admin user's password into this file.

such `noreply@domain.tld` user may be general-use commodity, no?