DanWin / hosting

This is a setup for a Tor based shared web hosting server
https://danwin1210.de/hosting/
GNU General Public License v3.0
341 stars 126 forks source link

registration takes too long #131

Closed zwieblinger closed 10 months ago

zwieblinger commented 1 year ago

The installation of the script runs without problems until the end. When I register a user, the URL is listed and it seems the registration is complete, but the login does not work.

DanWin commented 1 year ago

Hello @zwieblinger , sounds like you didn't complete the final steps of enabling systemd timers and rebooting. Account creation should run every minute.

zwieblinger commented 1 year ago

Thanks for your answer, but unfortunately that was not the problem.

When I reboot after "enabling systemd timers", I can no longer reach the page via the onion address.

I'm working with proxmox - could it possibly be that? I have already tested privileged and unprivileged containers, as well as VMs.

zwieblinger commented 1 year ago

/etc/fstab

DanWin commented 1 year ago

Hmm, I see. If your VM doesn't survive a reboot, then something is broken. Do you still have access to the terminal or ssh? If so, I'd suggest to run journalctl and look through the logs. Maybe there is an error message that could help you identify the issue.

zwieblinger commented 1 year ago

Thank you for your offer of help. I have already tried everything: as a container, so viral machine, privileged and unprivileged, .....

But yesterday evening I started a try with the Raspi 4 and what can I say ? It works .... almost !

After rebooting, the Tor page did not open for 4, 5, 6 minutes, but then it was there.

But with the message "No Connection to MySQL database".

The passwords in var/www/common.php and /etc/postfix/sql/alias.cf are correct.

But I notice that the captcha is not displayed either.

Error message journalctl: ExecStartPre=/usr/sbin/sshd -t (code-exited, status=255/Exception) .... ssh.service: Start request repeated too quickly ssh.service: Fail with Exit-Code

TRIED THE FOLLOWING:

apt-get update

cd /usr/bin;ln -sf python3.9 /usr/bin/python3

service sshd restart

then executed "clean_nginx_sockets.sh" and rebooted

Unfortunately without success !

DanWin commented 1 year ago

Yes, tor can take a few minutes sometimes. Especially if you've been previously connected, it's often good to change identity, or restart the tor client, when trying to connect to the hidden service again after a reboot. Try removing the sntrup761x25519-sha512@openssh.com from KexAlgorithms in /etc/ssh/sshd_config it is only supported in most recent ssh versions. Perhaps your OS is shipping an outdated version of ssh, where it is not yet supported. As for database connection, you should check the mariadb.service with journalctl -u mariadb.service or take a look at /var/log/mysql/error.log, depending on where it is logged to.