-
-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
Following the Self-hosting Howto procedure i am encountering the following error on Ubuntu 22.04.5-desktop after launching the command linux@linux:~/map_test/openfreemap$ ./init-server.py http-host-static localhost
update-alternatives: using /usr/bin/mcview to provide /usr/bin/view (view) in auto mode
Setting up aria2 (1.36.0-1) ...
Setting up p7zip-full (16.02+dfsg-8) ...
Setting up python3-venv (3.10.6-1~22.04.1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for initramfs-tools (0.140ubuntu13.5) ...
update-initramfs: Generating /boot/initrd.img-6.8.0-90-generic
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libc-bin (2.35-0ubuntu3.11) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for install-info (6.8-4build1) ...
[sudo] password: [sudo] password: Hit:1 http://it.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://it.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 http://it.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists...
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
[sudo] password: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4734 100 4734 0 0 9121 0 --:--:-- --:--:-- --:--:-- 9138
curl: (23) Failure writing output to destination
Traceback (most recent call last):
File "/home/linux/map_test/openfreemap/./init-server.py", line 157, in <module>
cli()
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/linux/map_test/openfreemap/./init-server.py", line 67, in http_host_static
prepare_shared(c)
File "/home/linux/map_test/openfreemap/ssh_lib/tasks.py", line 30, in prepare_shared
rclone(c)
File "/home/linux/map_test/openfreemap/ssh_lib/rclone.py", line 9, in rclone
c.sudo('curl https://rclone.org/install.sh | sudo bash')
File "/home/linux/.local/lib/python3.10/site-packages/decorator.py", line 235, in fun
return caller(func, *(extras + args), **kw)
File "/home/linux/.local/lib/python3.10/site-packages/fabric/connection.py", line 23, in opens
return method(self, *args, **kwargs)
File "/home/linux/.local/lib/python3.10/site-packages/fabric/connection.py", line 777, in sudo
return self._sudo(self._remote_runner(), command, **kwargs)
File "/home/linux/.local/lib/python3.10/site-packages/invoke/context.py", line 232, in _sudo
return runner.run(cmd_str, watchers=watchers, **kwargs)
File "/home/linux/.local/lib/python3.10/site-packages/fabric/runners.py", line 83, in run
return super().run(command, **kwargs)
File "/home/linux/.local/lib/python3.10/site-packages/invoke/runners.py", line 395, in run
return self._run_body(command, **kwargs)
File "/home/linux/.local/lib/python3.10/site-packages/invoke/runners.py", line 451, in _run_body
return self.make_promise() if self._asynchronous else self._finish()
File "/home/linux/.local/lib/python3.10/site-packages/invoke/runners.py", line 518, in _finish
raise UnexpectedExit(result)
invoke.exceptions.UnexpectedExit: Encountered a bad command exit code!
Command: "sudo -S -p '[sudo] password: ' curl https://rclone.org/install.sh | sudo bash"
Exit code: 1
Stdout: already printed
Stderr: already printed
What i am doing wrong? This is my .env file placed under openfreemap/docker
# Leave this empty if you use SSH keys
SSH_PASSWD=linux
# domain/subdomain
# Set up an A record pointing to your server's IP address and
# write the full domain here
DOMAIN_DIRECT=localhost
# Your email address to be used for the Let's Encrypt certificates
[email protected]
# Skip the full planet download, useful for testing (true/false)
SKIP_PLANET=true
# Use self-signed certs / skip the certificate management part.
# If you are using a custom solution like VPN, Traefik,
# or Cloudflare managed certificates, set this to true.
# In this case, you'll have self-signed certificates after the script completes.
SELF_SIGNED_CERTS=false
### --- Advanced setup below this line --- ###
### --- 99.9% you don't need any of this! --- ###
# DOMAIN_ROUNDROBIN is a very special feature for getting certificates on one server,
# uploading them to a bucket, and then downloading them to multiple http-host servers.
# For a single host, you don't need it!
DOMAIN_ROUNDROBIN=
# Variables used by the load balancer script - you don't need these!
HTTP_HOST_LIST=
TELEGRAM_TOKEN=
TELEGRAM_CHAT_ID=
Also, i had to put the SSH password because auth using SSH keys is not working (says No authentication method when launching init-server.py)
Metadata
Metadata
Assignees
Labels
No labels