Skip to content
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

desktop client can't handle proxy settings #91

Closed
AMS-76 opened this issue Apr 17, 2015 · 11 comments
Closed

desktop client can't handle proxy settings #91

AMS-76 opened this issue Apr 17, 2015 · 11 comments

Comments

@AMS-76
Copy link

AMS-76 commented Apr 17, 2015

Hello everybody,

we ran into a problem with the desktop client when the internet access is governed by a firewall-proxy which demands personal authentication.

So we would be glad, if the desktop client could be enhanced by the possibility of handing over proxy settings (at least which Proxy to use, username and password)

thx in advance

Axel

@cdujeu
Copy link
Member

cdujeu commented Apr 17, 2015

Hi Axel,
Thanks for posting.
I just added a feature in the code, it's fairlly basic but I would be interested that you test it.
Basically, what you have to do is grab the latest version from https://pyd.io/build/pydio-sync/develop/packages/
Install it, and create a proxies.json file inside the configuration folder (see below) with the following content:

{
     "http": "http://user:password@proxyIP:proxyPort", 
     "https": "http://user:password@proxyIP:proxyPort"
}

For the moment user & password are in clear inside this file, but once this is validated we will of course add a mechanism to configure that from within the UI, and store the password in the keychain. You may have to start the app once to make sure the config folder is started, and restart the app after creating the proxies.json file.

The config folder is on Mac under ~/Library/Application Support/Pydio/ and on Windows under /AppData/Roaming/Pydio/ ( = user directory, something like /Users/username).

Tell me!

@AMS-76
Copy link
Author

AMS-76 commented Apr 22, 2015

Hello Charles,

sorry for replying that late, I've been absent for a few days.

Thanks for reacting that fast. We're going to test the proxy settings and I'll report back as soon as possible.

Kind regards,

Axel

@AMS-76
Copy link
Author

AMS-76 commented Apr 27, 2015

Hello again,

finally I got the responses. It works as intended when using the proxy settings.

Kind regards,

Axel

@karolskolar
Copy link

Hello,
I tried to follow the instructions for creating proxies.json, but this solution does not work for me.
We are using corporate proxy and for example, I`m able to run Spotify with proxy type: HTTP.
Is it necessary to use some escape characters in JSON, when the password contains special characters?

Pleas, could you suggest any solution, which could help? Once I leave the company, Pydio Sync is working correctly.

Thank you.

Karol

@7omate
Copy link
Contributor

7omate commented Aug 2, 2016

it may be necessary... This seems to do the job http://bernhardhaeussner.de/odd/json-escape/

@karolskolar
Copy link

Hello,
thank you, but this was not the issue.

Please, any suggestions?
Thank you.

Karol

On 2 August 2016 at 16:01, 7omate notifications@github.com wrote:

it may be necessary... This seems to do the job
http://bernhardhaeussner.de/odd/json-escape/


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#91 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGiWGXNyuGTFIt03_l0dWBu7erC-WqN_ks5qb02ugaJpZM4ECjAA
.

Karol Školár
+421 905 012 693
karol.skolar@gmail.com

@7omate
Copy link
Contributor

7omate commented Aug 4, 2016

Do you have any errors? In pydio.log or in your proxie's?

@karolskolar
Copy link

Hello,
Im sorry to omit providing the log files. There is repeating error in log. Check it, please, below. It looks that the proxy is not working. But Im able to browse the with
with browsers, and Spotify is also working with Proxy configured.

Please, note, that I replaced my domain with XX.XXXXX.XX.
Thank you!

Karol

2016-08-04 15:02:00 INFO 8796 Thread-1 logging : 1627 | info | Loading
remote changes with sequence 1092 for job id XX.XXXXX.XX-my-files
2016-08-04 15:02:20 ERROR 8796 Thread-1 logging : 1601 | error |
HTTPSConnectionPool(host='XX.XXXXX.XX', port=443): Max retries exceeded
with url:
/pydio/api/my-files/changes/1092/?stream=true&flatten=false&auth_token=mGhEvHZ8Y8sufrnFYocTmTHh&auth_hash=541166b8e5ebe982487d3d49e774075ac37851dd:fa0d4a9effa6d29ee492dee47111519f7e9a2c92863b0bb65e27762823dead4b
(Caused by
ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection
object at 0x0000000004186EF0>, 'Connection to XX.XXXXX.XX timed out.
(connect timeout=20)'))
Traceback (most recent call last):
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\pydio.job.continous_merger",
line 456, in run
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\pydio.job.continous_merger",
line 767, in load_remote_changes_in_store
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\pydio.sdkremote.remote",
line 407, in changes_stream
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\pydio.sdkremote.remote",
line 337, in perform_request
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\pydio.sdkremote.remote",
line 271, in perform_with_tokens
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\requests.api",
line 65, in get
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\requests.api",
line 49, in request
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\requests.sessions",
line 461, in request
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\requests.sessions",
line 573, in send
File
"C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\requests.adapters",
line 419, in send
ConnectTimeout: HTTPSConnectionPool(host='XX.XXXXX.XX', port=443): Max
retries exceeded with url:
/pydio/api/my-files/changes/1092/?stream=true&flatten=false&auth_token=mGhEvHZ8Y8sufrnFYocTmTHh&auth_hash=541166b8e5ebe982487d3d49e774075ac37851dd:fa0d4a9effa6d29ee492dee47111519f7e9a2c92863b0bb65e27762823dead4b
(Caused by
ConnectTimeoutError(<requests.packages.urllib3.connection.VerifiedHTTPSConnection
object at 0x0000000004186EF0>, 'Connection to XX.XXXXX.XX timed out.
(connect timeout=20)'))
2016-08-04 15:02:21 ERROR 8796 Thread-1 logging : 1601 | error | No
Internet connection detected! Waiting for 60 seconds to retry

On 4 August 2016 at 14:37, 7omate notifications@github.com wrote:

Do you have any errors? In pydio.log or in your proxie's?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#91 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGiWGbxJ5DfXjB5f1iHN_X5u0x1DAmvAks5qcd0DgaJpZM4ECjAA
.

Karol Školár
+421 905 012 693
karol.skolar@gmail.com

@7omate
Copy link
Contributor

7omate commented Aug 4, 2016

ConnectTimeout: HTTPSConnectionPool(host='XX.XXXXX.XX', port=443): Max retries exceeded with url:
That looks like a proxy problem not a PydioSync problem, sorry.

@karolskolar
Copy link

But what problem?I'm able to connect to my pydio web interface via browser
which uses the same proxy.
Is there difference in accessing pydio server from web or app either than
https which can be blocked by proxy?
If yes,is there any utility to test the connection to the server in same
way as PydioSync use to use?

Thank you.
Karol

On Thu, Aug 4, 2016, 3:30 PM 7omate notifications@github.com wrote:

ConnectTimeout: HTTPSConnectionPool(host='XX.XXXXX.XX', port=443): Max
retries exceeded with url:

That looks like a proxy problem not a PydioSync problem, sorry.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#91 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGiWGWJ0arsp407Fp0KdKdbqsMb_8geuks5qcelcgaJpZM4ECjAA
.

@sagaru
Copy link
Contributor

sagaru commented Aug 4, 2016

@karolskolar Try to use the proxies.json file in the format mentioned below, just to let you know with the enterprise version of pydio, you have many proxy options directly available via UI.

{
"http": {
"username": "username1",
"password": "password1",
"hostname": "192.168.0.12",
"port": "8888"
},
"https": {
"username": "username1",
"password": "password1",
"hostname": "192.168.0.18",
"port": "8889"
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants