Hello guys, I have been setup a vFense server for an Amazon AWS infraestructure.
- While the agent installation on Ubuntu servers was OK, I can't install it on Amazon Linux servers. I have tried to install the RPM version following this post:
>>> platform.linux_distribution()[0].lower()
I have as ouput: ' '
So, I can't add a new OS type in the install script and the rvplugin.py
If I add ' ' in those files the agent is installed, but not connect to the server. The agent log says the following:
ERROR : 07/31/2014 11:44:11 AM : Could not check-in to server. See logs for details.
DEBUG : 07/31/2014 11:45:11 AM : Sending message to server
DEBUG : 07/31/2014 11:45:11 AM :
https://xxx.xx.xxx.xx/rvl/v1//core/checkinDEBUG : 07/31/2014 11:45:11 AM : Logging into server
DEBUG : 07/31/2014 11:45:11 AM : Login status code: 200
DEBUG : 07/31/2014 11:45:11 AM : Login server text:
DEBUG : 07/31/2014 11:45:11 AM : Url:
https://xxx.xxx.xx.xx/rvl/v1//core/checkin DEBUG : 07/31/2014 11:45:11 AM : Status code: 404
DEBUG : 07/31/2014 11:45:11 AM : Server text: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1309, in _execute
result = self.prepare()
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1998, in prepare
raise HTTPError(self._status_code)
HTTPError: HTTP 404: Not Found
ERROR : 07/31/2014 11:45:11 AM : Unable to read data from server. Invalid JSON?
ERROR : 07/31/2014 11:45:11 AM : Exception: No JSON object could be decoded
DEBUG : 07/31/2014 11:45:11 AM : Traceback (most recent call last):
File "/opt/TopPatch/agent/src/net/netmanager.py", line 176, in send_message
received_data = response.json()
File "/opt/TopPatch/agent/deps/requests/models.py", line 651, in json
return json.loads(self.text or self.content, **kwargs)
File "/opt/TopPatch/agent/deps/rpm6/Python-2.7.5/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/opt/TopPatch/agent/deps/rpm6/Python-2.7.5/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/opt/TopPatch/agent/deps/rpm6/Python-2.7.5/lib/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
ERROR : 07/31/2014 11:45:12 AM : Could not check-in to server. See logs for details.