Need to be online?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Need to be online?

rlovtangen
When connected over VPN to a customer, I noticed that all gvm commands where hanging. E.g. 'gvm switch grails' or 'gvm use grails 2.1.1'.
Debugging the problem with wireshark revealed that gvm tries to contact http://get.gvmtool.net/candidates/grails/2.1.1 which should return the response "valid". Due to some DNS issues this address was not available when connected over VPN.

Why do I have to be online to switch to a grails versions I already have installed? Is there a workaround for this?
Reply | Threaded
Open this post in threaded view
|

Re: Need to be online?

marco.vermeulen
Administrator
GVM does not need to be online all the time. An aeroplane mode is available for when the internet is not reachable, allowing GVM to carry on functioning (although with a limited feature set) when you are offline.

The problem here is that GVM relies on curl to respond to make it's decisions (or simply return nothing if the internet is not reachable). Typically an empty response is used to switch GVM to aeroplane mode. In your case, curl is hanging and hence GVM gets stuck too.

I'll be implementing a config switch in the very near future where you can force aeroplane mode for situations like you are facing at the moment. Could I ask you to raise on issue for this on our GitHub issues page please? If so, I will try implementing this for the upcoming release.

Hope this help!
---
Marco Vermeulen
Reply | Threaded
Open this post in threaded view
|

Re: Need to be online?

rlovtangen
Sure, will do.

I understand that it needs to be online to list available versions, install them etc, but switching already installed versions shouldn't need to curl online resources in my ears. But there might be architectural decisions or features that I'm not aware of. 

A GitHub issue is coming up.

Best Regards,
Ronny

On Mar 18, 2013, at 10:50 PM, "marco.vermeulen [via GVM Forum]" <[hidden email]> wrote:

GVM does not need to be online all the time. An aeroplane mode is available for when the internet is not reachable, allowing GVM to carry on functioning (although with a limited feature set) when you are offline.

The problem here is that GVM relies on curl to respond to make it's decisions (or simply return nothing if the internet is not reachable). Typically an empty response is used to switch GVM to aeroplane mode. In your case, curl is hanging and hence GVM gets stuck too.

I'll be implementing a config switch in the very near future where you can force aeroplane mode for situations like you are facing at the moment. Could I ask you to raise on issue for this on our GitHub issues page please? If so, I will try implementing this for the upcoming release.

Hope this help!
---
Marco Vermeulen



If you reply to this email, your message will be added to the discussion below:
http://forum.gvmtool.net/Need-to-be-online-tp28p29.html
To unsubscribe from Need to be online?, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Need to be online?

rlovtangen
In reply to this post by marco.vermeulen
https://github.com/gvmtool/gvm/issues/144

On Mar 18, 2013, at 10:50 PM, "marco.vermeulen [via GVM Forum]" <[hidden email]> wrote:

GVM does not need to be online all the time. An aeroplane mode is available for when the internet is not reachable, allowing GVM to carry on functioning (although with a limited feature set) when you are offline.

The problem here is that GVM relies on curl to respond to make it's decisions (or simply return nothing if the internet is not reachable). Typically an empty response is used to switch GVM to aeroplane mode. In your case, curl is hanging and hence GVM gets stuck too.

I'll be implementing a config switch in the very near future where you can force aeroplane mode for situations like you are facing at the moment. Could I ask you to raise on issue for this on our GitHub issues page please? If so, I will try implementing this for the upcoming release.

Hope this help!
---
Marco Vermeulen



If you reply to this email, your message will be added to the discussion below:
http://forum.gvmtool.net/Need-to-be-online-tp28p29.html
To unsubscribe from Need to be online?, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Need to be online?

marco.vermeulen
Administrator
Thanks.
---
Marco Vermeulen