I have installed Nextcloud on my Centos 7 machine. And i’ve put some images on it. But now i would like to generate a zip file each night with a python script i’ve developed and to have it in my Nextcloud data folders using cron. So, the script will directly modify the data and so i’m asking if it will generate trouble.
I read that using occ command after the execution of my script can make it work. Could you confirm it ?
If you want to manipulate data directly, I would use external storage for it.
There is a python client library: https://github.com/owncloud/pyocclient
I have an erro while using oc.login(‘user’,‘password’). It returns the following error with http :
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/owncloud/owncloud.py", line 358, in login raise e owncloud.owncloud.HTTPResponseError: HTTP error: 502
And with https, i have another error :
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/owncloud/owncloud.py", line 354, in login self._update_capabilities() File "/usr/lib/python2.7/site-packages/owncloud/owncloud.py", line 1795, in _update_capabilities 'capabilities' File "/usr/lib/python2.7/site-packages/owncloud/owncloud.py", line 1649, in _make_ocs_request res = self._session.request(method, self.url + path, **attributes) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 424, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='server.com', port=443): Max retries exceeded with url: /nextcloud/ocs/v1.php/cloud/capabilities (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 502 Bad Gateway',)))
What could it be ?
Do you use a proxy? Or reverse proxy?