-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server setup stuck at "starting watchtower" #22
Comments
I think this step is try to confirm that other client can connect to server via your public IP address. If you don't provide So, if you know your public address you can try
and run install script again. |
Right. I think it has to do with the fact that I'm sitting behind a nat, do
the randomly generated port number is not open to the public. Although I
did put my server behind DMZ. So I'm not too sure what's going on at the
moment. Thank you anyways!
…On Wed, Mar 21, 2018, 11:49 PM 七秒不觉梦 ***@***.***> wrote:
I think this step is try to confirm that other client can connect to
server via your *public* IP address.
If you don't provide SB_PUBLIC_IP as a env var, it will be the response
of curl https://ipinfo.io/ip.
So, if you know your public address you can try
export SB_PUBLIC_IP="12.34.56.78"
and run install script again.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AUTDpR9sQ1bD_mG4l23I845FYK-h4Fixks5tgx9ZgaJpZM4S2O0v>
.
|
The installation process waits for the server to be up and running. It does so by querying with
One theory is that the server is running fine, but ${SB_API_URL} is being blocked by the firewall. Maybe we should use localhost in the test instead, but it's unclear to me if it would solve the problem. Needs further investigation |
I suspect it has something to do with the ports being blocked too. I'm not sure but I was wondering if it'd be possible to have UPnP baked in the script, or have the user input in the port and open it up manually? |
Ok, I think I figured out the problem. It indeed has to do with the port being blocked behind firewall. I manually set SB_API_PORT to something like "34567" in the script, and opened up this specific port on both my router and ufw. Things are working now. Suggestion: allow users to choose which port to use or bake UPnP in the script. |
I ran into this as well on Ubuntu 16.04 and needed to add a port forwarding rule on the network switch to allow incoming traffic on a specific port. I set the port with I would theorize that there are two possible issues with the current process.
|
Doh! I made an error with:
How I can display what I set? Or how can I clear the settings? |
- to display: `echo $SB_PUBLIC_IP`
- to clear: `export SB_PUBLIC_IP=""`
- you can use `export SB_PUBLIC_IP="{correct ip}"` directly without clear
4044ever <notifications@github.com> 于 2018年3月27日周二 00:10写道:
… Doh! I made an error with:
export SB_PUBLIC_IP="12.34.56.78"
How I can display what I set? Or how can I clear the settings?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQVHEgP-aXeVMd4TIKh6vQ6H62e7fxU6ks5tiRLngaJpZM4S2O0v>
.
|
The original issue was likely due to a firewall. #38 should have clarified what's going on in the installation and provide the information needed for you to unblock the ports. I'm marking this as closed. Feel free to open a new issue for things that were not resolved with the change. |
Hi,
On my Ubuntu 17.10, when I run the install_server.sh script, I would get stuck at "> Starting Watchtower ......................... OK". Combing through the script, it seems the line "until curl --cacert "${SB_CERTIFICATE_FILE}" -s "${SB_API_URL}/access-keys" >/dev/null; do sleep 1; done" is giving me trouble because I tried to run this line only but the command seems to be stuck due to the get-out-of-loop condition not met. Let me know if anyone knows how to solve this.
The text was updated successfully, but these errors were encountered: