Help Installing YunoHost in AWS Lightsail (Debian 12)

What type of hardware are you using: VPS bought online
What YunoHost version are you running: Latest, what curl https://install.yunohost.org | bash installs. I can’t find a specific version.
How are you able to access your server: SSH
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: No. Vanilla AWS Lightsail Debian 12.8, 2gb memory, 2 vCPUs

Describe your issue

Installation goes just fine. But I get no useable response from YunoHost. It just hangs. Here are my steps:

  • Setup AWS Lightsail instance (Debian 12.8 / 2gb memory, 2 vCPUs)
  • ssh to instance
  • sudo -i
  • curl https://install.yunohost.org | bash
  • override SSH = Y (I also tried “N”. Same result)

Installation works (note LDAP errors in log section, but nothing reported from the installer. I get this:

  │ You can perform this step, either:                                        │
  │ • from the command line, by running 'yunohost tools postinstall' as root  │
  │ • or from your web browser, by accessing :                                │
  │    - https://172.26.8.202/ (local IP, if self-hosting at home)            │
  │    - https://44.242.220.217/ (global IP, if you're on a VPS)              │

When I point my browser at https://44.242.220.217/ it just hangs. If I point my brower to 44.242.220.217 without the https:// it redirects to https://44.242.220.217/yunohost/admin but then still hangs.

I get responses curling it from inside the VPS:

root@ip-172-26-8-202:~# curl localhost
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

root@ip-172-26-8-202:~# curl localhost/yunohost/admin
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
root@ip-172-26-8-202:~# 

I’ve blown away the VPS and reinstalled several times. Just for grins, I installed apache2 instead of YunoHost & it worked fine.

Any help would be greatly appreciated! Thank you. This project is amazing!

Share relevant logs or error messages

Interesting bits in the installation log include:

Job for slapd.service failed because the control process exited with error code.
See "systemctl status slapd.service" and "journalctl -xeu slapd.service" for details.
invoke-rc.d: initscript slapd, action "start" failed.
× slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
     Loaded: loaded (/etc/init.d/slapd; generated)
    Drop-In: /usr/lib/systemd/system/slapd.service.d
             └─slapd-remain-after-exit.conf
     Active: failed (Result: exit-code) since Mon 2025-01-20 21:14:07 UTC; 22ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 47098 ExecStart=/etc/init.d/slapd start (code=exited, status=1/FAILURE)
        CPU: 9ms

Jan 20 21:14:07 ip-172-26-8-202 systemd[1]: Starting slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...
Jan 20 21:14:07 ip-172-26-8-202 slapd[47098]: No configuration file was found for slapd at /etc/ldap/slapd.conf. ... (warning).
Jan 20 21:14:07 ip-172-26-8-202 systemd[1]: slapd.service: Control process exited, code=exited, status=1/FAILURE
Jan 20 21:14:07 ip-172-26-8-202 systemd[1]: slapd.service: Failed with result 'exit-code'.
Jan 20 21:14:07 ip-172-26-8-202 systemd[1]: Failed to start slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol).

Hi wirtes,

What a shame it’s not ‘light sailing’ during the install!

Not clear whether you tried; hat happens when you run

# 'yunohost tools postinstall

as root, from the command line?

1 Like

Thanks for responding!

Yes, I tried it once configuring it using yunohost tools postinstall from the command line. And the results were the same. I could configure yunohost via SSH, but I cannot reach the instance properly from the Internet.

I’ve never been able to get a login screen or any usable response from a web browser.

I don’t understand what you write. You executed yunohost tools postinstall, and then your browser hangs?

Please paste the command and the output! If something is blocked somewhere, eventually there’s a timeout; that should also be printed in that case.

I have no experience with AWS Lightsail. Does it have a management interface, that allows you to prohibit certain actions? (I tried to have a short look, but it took me over five minutes to find more concrete information than “Try three months for free”, and that AWS asks quite premium prices for the lowest of specs)

Thank you for all your help!

The installation through the command line works great. There are no errors reported, though I did see an OpenLDAP error in the logs.

The problems appears to be with nginx, the web server. I cannot access the YunoHost installation from the web at all. That’s where the browser hangs. I cannot complete the installation via the web. But I can complete the installation from the command line through yunohost tools postinstall.

If I complete the installation from the command line, I still cannot access the site from the web. The web browser will eventually timeout.

Good that the postinstall ran its course! One step ahead :slight_smile:

Why mention them, if you don’t show them? You don’t have to, but this is a bit of a cliffhanger.

There was a thread by @DarKou earlier today with somewhat similar symptoms; that was resolved by using another browser. In that case, there was a connection to the webpage though.

It sounds as if there is a firewall active somewhere between you and your server. My guess would be “somewhere in AWS”.

Thanks. I did show the OpenLDAP errors in the error log section of my original message.

I’ll try more this evening (US time). Thank you!

Ah, my bad. I notice the same warning on my server:


Jan 17 22:18:27 .. systemd[1]: Starting slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)...
Jan 17 22:18:27 .. slapd[93734]: No configuration file was found for slapd at /etc/ldap/slapd.conf. ... (warning).
Jan 17 22:18:27 .. systemd[1]: slapd.service: Control process exited, code=exited, status=1/FAILURE
Jan 17 22:18:27 .. systemd[1]: slapd.service: Failed with result 'exit-code'.
Jan 17 22:18:27 .. systemd[1]: Failed to start slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol

Even so, LDAP works; perhaps it falls back to using /etc/ldap/ldap.conf:


# ls /etc/ldap
ldap.conf  sasl2  schema  slapd.d
# service slapd status
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
     Loaded: loaded (/etc/init.d/slapd; generated)
    Drop-In: /usr/lib/systemd/system/slapd.service.d
             └─slapd-remain-after-exit.conf
             /etc/systemd/system/slapd.service.d
             └─ynh-override.conf
     Active: active (running) since Fri 2025-01-17 22:20:59 CET; 3 days ago
       Docs: man:systemd-sysv-generator(8)
      Tasks: 6 (limit: 4592)
     Memory: 15.5M
        CPU: 13.399s
     CGroup: /system.slice/slapd.service
             └─120120 /usr/sbin/slapd -h "ldap://localhost:389/ ldaps:/// ldapi:///" -g openldap -u openldap -F /etc/ldap/slapd.d

Jan 21 12:42:04 frankfurt.osba.nl slapd[120120]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16
Jan 21 12:42:04 frankfurt.osba.nl slapd[120120]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.666.5.16

Have a nice and uneventful day, and good luck this evening

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