Various errors on domain change

Hardware: Raspberry Pi4 at home
YunoHost version: 4.2.0
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue:

Hi ! I installed YunoHost couple of weeks ago (I am globally super happy of it :sunny: !) with a generic domaine.ynh.com and I wanted to change with my own domai.ne

I saw that this is not a new topic (here, here and there) and follow this plan:

  1. config the dns of my new domai.ne in OVH
  2. check that it point to my server
  3. register this new domai.ne on yunohost
  4. config the dns of my new domai.ne in OVH with the dns config described in the domain section of yunohost
  5. make let’s encrypt ssl for this domai.ne
  6. X change each application to the new domai.ne
  7. change the default domain of yunohost
  8. change the mail and alias of my account
  9. create sub.domai.ne
  10. X configure the sub.domai.ne correctly for let’s encrypt to work
  11. ToDo change the sub.domai.ne of my app using the sub.domai.ne

For changing the domain of applications, I have various results:

  • Airsonic ko nginx 404
  • Lstu ok
  • Jellyfin ok
  • Monitorix ok
  • Netdata ko (in admin panel : Erreur: "400" Bad Request Action: "PUT" /yunohost/api/apps/netdata /changeurl Message d’erreur : I don’t understand you… ) Maybe a problem with the packadge??
  • Nextcloud ok (I got a nginx 404, it took couple of hours but is now working)
  • Galène ko (page not found!)
  • Piwigo ok
  • Shell in a box ok
  • Syncthings ok
  • Wallabag ok (I got a nginx 404, it took some time but is now working)

Is there a simple way to correct these errors ? If not, I’ll, I will simply uninstall /reinstall (not sure a restore would work) it on the new domai.ne Airsonic, Galène and NetData.
EDIT: I reinstall these apps and will report the issue in Git.

For the config of the sub.domai.ne, I added a A record then all the dns config described in the domain section of yunohost (as for a domain) but it didn’t work. If someone could help me on this config ^^ ?
EDIT: simply added a cname for the subdomain in the dns provider, create this subdomain in ynh, install the letsencrypt in CLI (more details in the link at the post 11)

Many thanks for your help,
Steven

If you want us to be able to help you, you will want to post logs, likely under /var/log/nginx. Also, for the apps that aren’t working, post the nginx config files (generally /etc/nginx/conf.d/your.own.domai.ne.d/the_app_config.conf). You can also try and find the config files for the specific applications and see if there is anything wrong with them.

2021/03/30 03:49:22 [error] 18078#18078: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”
2021/03/30 05:15:08 [error] 18078#18078: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”
2021/03/30 05:15:14 [error] 18078#18078: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”
2021/03/30 06:24:48 [crit] 18078#18078: *13333 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 64.62.197.32, server: 0.0.0.0:443
2021/03/30 06:37:38 [error] 18078#18078: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”
2021/03/30 06:38:00 [error] 18079#18079: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”
2021/03/30 06:47:28 [error] 18081#18081: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”
2021/03/30 06:48:03 [error] 18078#18078: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/nocloud.ynh.fr/crt.pem”
2021/03/30 06:53:09 [notice] 23648#23648: signal process started
2021/03/30 06:53:11 [info] 23737#23737: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2021/03/30 06:53:12 [info] 23748#23748: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2021/03/30 06:53:53 [info] 23848#23848: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2021/03/30 06:53:54 [info] 23857#23857: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2021/03/30 06:54:59 [notice] 26566#26566: signal process started
2021/03/30 07:01:04 [notice] 8324#8324: signal process started
2021/03/30 07:01:05 [info] 8416#8416: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2021/03/30 07:01:07 [info] 8475#8475: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2021/03/30 07:02:13 [info] 9429#9429: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
2021/03/30 08:17:09 [error] 8429#8429: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”
2021/03/30 08:39:21 [error] 8429#8429: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”
2021/03/30 09:28:30 [error] 8429#8429: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/nocloud.ynh.fr/crt.pem”
2021/03/30 09:32:04 [error] 8428#8428: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”
2021/03/30 09:32:04 [error] 8426#8426: r3.o.lencr.org could not be resolved (110: Operation timed out) while requesting certificate status, responder: r3.o.lencr.org, certificate: “/etc/yunohost/certs/noclou.de/crt.pem”

#source of config file : Setting up Nginx - Airsonic
#adapted for yunohost
rewrite ^/airsonic$ /airsonic/ permanent;
location /airsonic/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header Host $http_host;
proxy_max_temp_file_size 0;
proxy_pass http://127.0.0.1:8096;
proxy_redirect http:// https://;
# set client body size to 500 MB
# Allows to upload zip file up to 500 MB
# See 413 (Request Entity Too Large) on .zip upload via interface · Issue #4 · YunoHost-Apps/airsonic_ynh · GitHub
client_max_body_size 500M;
#Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
#proxy_set_header Content-Security-Policy “default-src ‘self’; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’ www.gstatic.com; img-src ‘self’ *.akamaized.net; style-src ‘self’ ‘unsafe-inline’ fonts.googleapis.com; font-src ‘self’ fonts.gstatic.com; frame-src ‘self’; object-src ‘none’”;
}

location / {
#Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass https://127.0.0.1:8443;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
#WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}

Merci @Jules-Bertholet ^^ !

I do not see anything unsual, but I am not an expert

They look fine to me also. It seems the issue is with the configurations of the apps themselves. You can try and look through those

No problème, I think I’ll reinstall and put my config back. Do you know where to report that the function “change domain” is ko for these apps packadge (airsonic, netdata and galène)?
Maybe there is a topic by apps ?

Thanks
Steven

I reinstalled airsonic and net data.
I have some trouble with the reinstall of galene (Error on restoring and reinstalling galene)

Problem of reinstall solved by Aleks !

I have only 1 thing to sort out : how to configure personal subdomain. I configure a cname in ovh for each… ?

I found how to configure personnal subdomains here.

Everything worked perfectly at the end !

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.