Error while processing Rock-on

        Traceback (most recent call last):

File “/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py”, line 41, in _handle_exception
yield
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon.py”, line 406, in _get_available
cur_res = requests.get(cur_meta_url, timeout=10)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/api.py”, line 55, in get
return request(‘get’, url, **kwargs)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/api.py”, line 44, in request
return session.request(method=method, url=url, **kwargs)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/sessions.py”, line 279, in request
resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/sessions.py”, line 374, in send
r = adapter.send(request, **kwargs)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/adapters.py”, line 215, in send
raise Timeout(e)
Timeout: HTTPConnectionPool(host=‘rockstor.com’, port=80): Request timed out. (timeout=10)

k (most recent call last):
File “/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py”, line 41, in _handle_exception
yield
File “/opt/rockstor/src/rockstor/storageadmin/views/rockon.py”, line 406, in _get_available
cur_res = requests.get(cur_meta_url, timeout=10)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/api.py”, line 55, in get
return request(‘get’, url, **kwargs)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/api.py”, line 44, in request
return session.request(method=method, url=url, **kwargs)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/sessions.py”, line 279, in request
resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/sessions.py”, line 374, in send
r = adapter.send(request, **kwargs)
File “/opt/rockstor/eggs/requests-1.1.0-py2.7.egg/requests/adapters.py”, line 215, in send
raise Timeout(e)
Timeout: HTTPConnectionPool(host=‘rockstor.com’, port=80): Request timed out. (timeout=10)

Hmm, I’m not sure exactly how Rock-ons work, but it just appears it can’t connect to rockstor.com from the output. Can you curl to rockstor.com? Or ping rockstor.com on the server?

2 Likes

Now working maybe some temporarily lockdown server…

@dil3mm4 and @xradeon It may be that we should look to the scaling capability of our Rock-ons server, or it maybe our timeout is just a little to short with our increasing number of Rock-ons.

We should keep an eye on this and if anyone experiences this same timeout error, and they have proven connectivity to the indicated server then do please post here on the forum as then we can then more easily judge the urgency or otherwise of the related config tweaks.

I’ll also try to get around to putting in better back-end monitoring which should also help here. The server concerned has plenty of capacity which is what leads me to think it’s a config issue either in the http service or on the client timeout side.

@xradeon Thanks for helping out on this thread.

If you take a look at the following repo:

each rock-on is defined by a single json file and there exists a root.json file which in simply a list of the individual Rock-on definition files that are expected to be found on the same server. These files act, collectively, as a rock-on repository and allows us to be able to update/modify rock-ons by modifying this central repository. Anyway I’m sure you already sussed that bit so here is the code section within the rockstor-core repo that queries this Rock-on repository:

Hope that helps, at least to clarify how a Rockstor install picks up new Rock-ons from the central Rockstor Rock-ons repository.

1 Like