Stuck at post-installation phase loop when installing YunoHost on Raspberry Pi 4

What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.0
How are you able to access your server: The webadmin
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No

Describe your issue

Hello,
I’m new to self-hosting and am trying to install YunoHost on a Raspberry Pi model B, 4GB RAM – connected to the same router as a Windows 11 PC that I use for the webadmin.
I have flashed a SD card with the latest image, and connected the RPi to my router with an ethernet cable.
Via the webadmin I get to this step:

Congratulations, YunoHost has been successfully installed!
Two more steps are required…

I then come to the “Add domain” step.
I have tried both to add a nohost.me domain, and later a domain that I own. I fill out the details about admin user.
The main problem is that after the animated Pacman step, the webadmin just returns to the same screen:
“Add domain”.
I cannot get past this step, it just loops back.

If I click on the “User interface” button instead of filling out the domain again, I get an error message:
The error log is:

“Secure Connection Failed
The connection to yunohost.local was interrupted while the page was loading.
The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.”

I’m using Firefox as my web browser on a Windows 11 machine.
I have port forwarded the ports described in the documentation in the admin interface of my local router. I have found the local IP adress of the server.

The funny thing is, checking the router admin interface, it says my Rpi 4 has the host name which I typed in last in the post-installation step, a domain that I own. But I still cannot access the YunoHost admin interface, as it appears it cannot complete the last installation step.

I use a VPN service, and have tried the installation both with the VPN turned on and turned off. Similar results.

So I am basically stuck, and can’t complete the installation.

Any help is appreciated. Thank you.

Share relevant logs or error messages

Cannot share logs as I haven’t been able to complete the installation.

Urgh yeah for some reason i ended up (re)installing my RPi tonight and experincing the same issue … no time right now to dig it up, I worked around by running the postinstall in CLI :confused:

3 Likes

Hi :smiling_face:

Sorry fall like an hair on soup.

I have same issue even use command line with SSH. Even use your script.
I m stuck and when I arrived on logging windows the Log button is like rock.

But when I’m on SSH the ID turn @domain even if I start @ip

I look for archive of iso but link on Google is dead. I think try installing old iso and perform upgrade

1 Like

Do you have the time to explain how you did that using the CLI?
I’m new to the Rpi. Did you connect a screen and keyboard to it to access the CLI? What commands did you use?

Alternatively, maybe an old YunoHost image would work, and then upgrading it (Guillermo’s idea).

But from my side it’s look broken i have this and link can’t work for archives

So I managed to connect to the Rpi using CLI (MobaXterm).

I did two tries, typing “yunohost tools postinstall”:

First try, using a domain that I own:

“Error message:
Error: The domain already exists”

It seems the device is somehow registered with that domain, but the postinstallation is not complete anyway.

Second try, using a nohost.me domain that I believe is not taken:
"Error: Unable to reach DynDNS provider dyndns.yunohost.org: either your YunoHost is not correctly connected to the internet or the dynette server is down.
"
But I don’t think it is down!

I’m considering reflashing the image and going straight for the CLI.

BTW, I found one other similar support topic here describing similar errors, however here the CLI solved the issue:

1 Like

For my part, I have the same problem whether it’s via SSH or the browser.

The same problem whether it’s using a domain name, a domain offered by YNH.fr, or even a subdomain of my domain name.

However, the SSH client ID changes, but I can’t proceed further. I get the error message: the domain already exists.

I ran Alek’s script, but the results are the same.

1 Like

Hi there, i have the same problem and can not install YunoHost on my Raspberry Pi 5 in the moment. When is there a fix for this available? Where can i contribute to the fix?

1 Like

I seem to be experiencing this same issue when trying to reinstall ynh to a Raspberry Pi B3+. I cannot get past the Main Domain screen after successfully completing the initial installation. I have the name fossfix.noho.st although I cannot seem to reclaim it, nor can I use a new name, the result is the same; successful installation confirmed although cannot progress from Main Domain. Login screen button does not activate either if I try to use my new credentials.

Kind thanks in advance for any assistance offered.

1 Like

I also had this postinstall-loop-problem in my Raspberry Pi 5 when I used the Yunohost image. The solution was to first install Raspberry Pi OS and then Yunohost on top according to the instructions “dedicated server with Debian 12”. Install YunoHost | Yunohost Documentation
I used the official 64bit Raspberry Pi OS without the desktop, as you wouldn’t see it anyway. Then I followed the instructions from Yunohost - with the post-installation via the command line.
Maybe this helps some of you.

2 Likes

Yahoo! It worked!
Installed Rpi OS Lite (without desktop) and enabled SSH access before flashing the card.
After booting my Rpi 4 I accessed it via SSH and then installed Yunohost via the command line as described.

Continuing my self-hosting journey now…

1 Like

This can be added as an alternate install method for RPI on the yunohost documentation. A PR is welcome.

Unfortunately I don’t know how to make a pull request and I don’t have the possibility to look into it right now. Maybe someone else can do it? Otherwise I’ll try in a few weeks.

Hello,

I tried installing via Raspbian, but apparently the pi user no longer exists, so even with the “ssh” file created on the boot partition, I couldn’t connect to install via curl.

I tried installing YunoHost from the full command line after burning the ISO file.

I got an error about “forge.yunohost.org” being accessible.

Some index files failed to download. They have been ignored, or old ones were used instead.

Then, during the post-install, I got the following error:

Unable to download the default app catalog: Failed to connect to https://app.yunohost.org/default/v3/apps.json… Maybe the service is down, or you are not properly connected to the Internet in IPV4/IPV6.

I ran the post-installation, which asks me for the usual information, seems to create the aliases, and terminates the process. But when I try to access the error logs, it tells me it’s not installed. I also tried running a diagnostic, same error.

However, when I recommend the post-install, it tells me the domain name already exists.

I admit I’m a little stuck on what solutions to implement.

Is there a link to download bulleyes and then perform a migration ?

Thank you for this successful solution :grinning_face: All I would add is that after I had flashed the sim with Pi OS Lite, I had to create a blank ssh file in the root folder, before I could ssh onto the server. Thereafter everything worked as you advised. Thanks again :+1:

1 Like

Sorry, could i ask which couple of ID and password you use ?

I try : pi with raspberry but can’t work

Yes I got stuck here too, so I went back and flashed the sim again with the Pi Imager, but this time I added a first user in the Pi imager > Advanced Options screen and flashed the sim. Then (using Windows) I placed a blank ssh file (create a new text file and just remove the .txt extension) into the root folder, before putting the sim back into the Rpi board. Once I powered up the board, I was able to ssh in to the newly created first user. Hope this helps.

Edit: You should add your WiFi Country Code in the Advanced Options screen also, otherwise you may need to add it later, manually in the CLI.

1 Like

Thanks a lot for sharing i flash from Linux computer. I will see if they are similary option i can do manually. The loader want to install under Zorin Os

Great thanks for wording :smiling_face:

Yes - if you can reach some kind of pre-config screen in your Pi imager, you should be able to access these details before flashing the sim. Good Luck :crossed_fingers:

Edit: You can download a suitable Linux imager here

Yes exactly. I used the official Raspberry Pi Imager under Linux Mint to flash Raspberry Pi OS Lite. Before flashing you can set up the admin account and activate SSH very easily within the tool.