-
Notifications
You must be signed in to change notification settings - Fork 668
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
owncloudcmd ignores --httpproxy #6281
Comments
@tsteub Did your proxy option have the form |
In particular before the capability call. Also warn if no proxy is set because the command line doesn't follow the strict format requirements.
I've also found a small bug where the very first call was done before the proxy was set up. This might have caused your issue. |
In particular before the capability call. Also warn if no proxy is set because the command line doesn't follow the strict format requirements. (cherry picked from commit d0e7f61)
Yes, the proxy is specified in the correct format: http://proxy.tomas.local:3128 |
@tsteub If you like you could try the nightly 2.4.1 from https://build.opensuse.org/package/show/isv:ownCloud:community:nightly/owncloud-client which should have my patch. |
@ckamm : 2.4.1 nightly build works perfectly. Thank you. |
Sorry, I have the same problem... owncloudcmd --httpproxy 'http://domain\user@password:proxy.domain.priv:8083' --trust -u USER -p PASS /root/.owncloud/ https://owncloud.domain.com And the output is: FINISHED WITH STATUS QNetworkReply::NetworkError(OperationCanceledError) "Connection timed out" What's wrong? Thanks Mario |
Hey @mariolanno; are you using 2.4.1 nightly from https://build.opensuse.org/package/show/isv:ownCloud:community:nightly/owncloud-client? Check with Thanks! |
[root@machine ~]# owncloudcmd --version |
@mariolanno here: https://software.opensuse.org/download.html?project=isv:ownCloud:community:nightly&package=owncloud-client are the install instructions in case you need them; e.g. for Ubuntu 16.04:
|
I have RHEL 6.7 Thanks |
$ cd /etc/yum.repos.d $ yum upgrade owncloud-client Right? |
I cannot test it now. Thanks Mario |
I upgraded it but the following error occurred 01-16 17:30:12:271 [ fatal default ]: Could not read httpproxy. The proxy should have the format "http://hostname:port". |
@mariolanno by reading your previous comment, there might be a problem with your proxy hostname: |
the proxy address is correct, infact I put this when I set handly OwnCloud would the format in: |
Hi, If I put the following command owncloudcmd --trust -u username -p password /opt/ownc https://myowncloud.domain/owncloudI download all content from owncloud, how can I upload files located under /opt/own ? Thanks Mario |
@mariolanno Neat! was it an issue with the proxy address in the end?
Thanks! |
Thanks Samuel, I tested in webdav and works fine. Thanks a lot Mario |
Expected behaviour
Connection to owncloud server should use proxy
Actual behaviour
Proxy argument --httpproxy is ignored.
owncloudcmd tries to contact server directly.
Steps to reproduce
Server configuration
Does not matter in this case.
Client configuration
Client version: 2.4.0
Operating system: Ubuntu 16.04
OS language: English
Qt version used by client package (Linux only, see also Settings dialog): 5.6.2
Client package (From ownCloud or distro) (Linux only): from owncloud
Installation path of client:
/usr/bin/owncloudcmd symbolic link to /opt/ownCloud/ownCloud/bin/owncloudcmd
Logs
Client logfile: Output of
owncloud --logwindow
orowncloud --logfile log.txt
01-04 16:03:56:846 [ info sync.accessmanager ]: 2 "" "https://www.tomas-teubner.de/owncloud/ocs/v1.php/cloud/capabilities?format=json" has X-Request-ID "c260c1ec-ac9f-4295-91ac-f1c07ecc2476"
01-04 16:03:56:846 [ debug sync.cookiejar ] [ OCC::CookieJar::cookiesForUrl ]: QUrl("https://www.tomas-teubner.de/owncloud/ocs/v1.php/cloud/capabilities?format=json") requests: ()
01-04 16:03:56:847 [ info sync.networkjob ]: OCC::JsonApiJob created for "https://www.tomas-teubner.de/owncloud" + "ocs/v1.php/cloud/capabilities" ""
01-04 16:04:23:537 [ warning sync.networkjob ]: Network job timeout QUrl("https://www.tomas-teubner.de/owncloud/ocs/v1.php/cloud/capabilities?format=json")
01-04 16:04:23:537 [ warning sync.networkjob ]: QNetworkReply::NetworkError(OperationCanceledError) "Connection timed out" QVariant(Invalid)
01-04 16:04:23:537 [ info sync.networkjob.jsonapi ]: JsonApiJob of QUrl("https://www.tomas-teubner.de/owncloud/ocs/v1.php/cloud/capabilities?format=json") FINISHED WITH STATUS QNetworkReply::NetworkError(OperationCanceledError) "Connection timed out"
01-04 16:04:23:537 [ warning sync.networkjob.jsonapi ]: Network error: "ocs/v1.php/cloud/capabilities" "Connection timed out" QVariant(Invalid)
01-04 16:04:23:537 [ debug default ] [ main(int, char**)::<lambda ]: Server capabilities QJsonObject()
01-04 16:04:23:537 [ debug sync.networkjob ] [ OCC::AbstractNetworkJob::slotFinished ]: Network job OCC::JsonApiJob finished for "ocs/v1.php/cloud/capabilities"
Error connecting to server
Web server error log:
n/a
Server logfile: ownCloud log (data/owncloud.log):
n/a
The text was updated successfully, but these errors were encountered: