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
Creating tunnels on start #12
Comments
@inomad360, do you have the |
I will test tomorrow and let you know.
…On Sun, Jul 12, 2020 at 3:20 PM Aldo Hoeben ***@***.***> wrote:
@inomad360 <https://github.com/inomad360>, do you have the Create a
tunnel when OctoPrint starts checkbox checked? That should create a
tunnel when OctoPrint starts. If it doesn't, that is a bug that needs to be
investigated.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQHIWNUO4UJS34PNOXA5USTR3IEGLANCNFSM4OX57DWA>
.
|
I have tested and it does NOT automatically create tunnel on startup. I have unplugged the server 2x and restarted. I can confirm that I have checked the "Create a tunnel when OctoPrint starts checkbox" checked? I am on 0.2.0 and using a custom domain. The custom domain fix works great. |
Then I'll have to investigate why this is not working. Could you upload your octoprint.log for me? Just in case something unexpected is visible there. |
here it is
…On Mon, Jul 13, 2020 at 12:40 PM Aldo Hoeben ***@***.***> wrote:
Then I'll have to investigate why this is not working. Could you upload
your octoprint.log for me? Just in case something unexpected is visible
there.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQHIWNQMMH3W743K3XCJSCDR3M2JLANCNFSM4OX57DWA>
.
|
Unfortunately, attachments don't carry over via github. So you would either have to drag/drop it into a comment here in the github interface, or post a link to somewhere on dropbox, google drive or the likes. |
This is a strange error in your log: It looks like ngrok can't access the ngrok server because the network is unreachable when OctoPrint starts. I am grasping at straws here, but I see that you also have the Astroprint plugin installed, and there is at least one user that says the two plugins are somehow incompatible: #5 (but I don't know how/why). Could you try disabling that plugin to see if that makes any difference? |
Thanks for checking the log. Uninstalled Astroprint and rebooted. Ngrok did not create a tunnel upon startup and error is there in the log . Here is what I tried:
Will further diagnose today. |
There are strange things going on in your network. From the latest log you posted:
(so not just ngrok) |
1 seems to be your router, which can be reached. That's good. I am again grasping a straw: could it be that it takes a while after booting before your Pi has a reliable connection to your wifi? |
I uninstalled and installed ngrok plugin, still the same error. The plug in works, but it does not connect to the custom subdomain initially on startup even when the button is checked. I am not a coder here - but how does the plugin create a tunnel after startup if it does not have access to ngrok servers? |
I have no idea. Could you try pinging |
This is not an isolated issue (though I still think the problem is somehow in your network/router): It looks like I may have to add a "retry" mechanism if the first connection to the ngrok service fails. |
To diagnose the issue, I have re-flashed and re-installed octoprint. Still will not login upon restart. Log attached. Thank you. |
...also, since it connects without any issues after the reboot is complete, can there be a check to see if it is logged in with a time lag? |
Commit 37405be adds a retry after 20 seconds. This is in the |
Please help testing the fix by installing the current development version via OctoPrint Settings -> Plugin Manager -> Get more -> ... from URL with the following url: https://github.com/fieldOfView/OctoPrint-ngrok/archive/devel.zip |
Seems to work at boot. Tried twice. Thank you so much.
…On Mon, Jul 27, 2020 at 10:21 AM Aldo Hoeben ***@***.***> wrote:
Please help testing the fix by installing the current development version
via OctoPrint Settings -> Plugin Manager -> Get more -> ... from URL with
the following url:
https://github.com/fieldOfView/OctoPrint-ngrok/archive/devel.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQHIWNVAXSYHFROUBBJNTRTR5WEPNANCNFSM4OX57DWA>
.
|
Great, thanks for testing. Of course the greater issue remains to fix your network while starting, but that is beyond the scope of this plugin. Good to know it works for now. |
Thank you. Works very well.
…On Thu, Jul 30, 2020 at 12:07 PM Aldo Hoeben ***@***.***> wrote:
Closed #12 <#12>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQHIWNU7DMVPIRJAEGHK23TR6GLDZANCNFSM4OX57DWA>
.
|
@inomad360 reported in #6 (comment):
Is it possible to create a tunnel when
octopi boots? I remotely turn the printer on/off. When octopi comes online,
the default seems to be no tunnel. Since I have a paid domain, I have o be
in the network o create it. Thank you.
The text was updated successfully, but these errors were encountered: