haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.21k stars 1.54k forks source link

Cannot download library under proxy in Ubuntu1210 64bit #129

Closed shiquanwang closed 9 years ago

shiquanwang commented 11 years ago

As mentioned in #87 , the problem appeared again.

I'm behind company proxy with authentication. I tried two ways:

  1. set <http_proxy> and <https_proxy> directly in the form of <http<s>_proxy="http<s>://<uname>:<passwd>@<hostname>:<port>">
  2. use cntlm and set <http_proxy> and <https_proxy> in the form of <http<s>_proxy="http://localhost:3128t">

The results are that when I try to download a library from the server, the status of downloading tasks is:

Download Tasks
org-note 
connecting server...  Cancel

Below is the content of the logs:

  1. applet.log
[03/05/2013 04:56:43 PM] ../common/applet-common.c(102): Load config dir /home/shiquanwang/.ccnet success
[03/05/2013 04:56:46 PM] ../common/applet-common.c(454): Starting ccnet ...
[03/05/2013 04:56:46 PM] ../common/applet-common.c(471): ccnet daemon started
[03/05/2013 04:56:46 PM] seafile-applet.c(174): seafile started
[03/05/2013 04:56:47 PM] ../common/applet-common.c(384): connecting ccnet ...
[03/05/2013 04:56:47 PM] ../common/applet-common.c(573): Connected to ccnet.
[03/05/2013 04:56:47 PM] seafile-applet.c(62): Starting seafile ...
[03/05/2013 04:56:47 PM] ../common/applet-common.c(555): [hearbeat mon] started.
[03/05/2013 04:56:47 PM] seafile-applet.c(326): [hearbeat mon] started.
[03/05/2013 04:56:47 PM] seafile-applet.c(45): Starting web ...
[03/05/2013 04:56:48 PM] ../common/applet-common.c(361): [web] testing web server ...
[03/05/2013 04:56:48 PM] ../common/applet-common.c(376): web server now ready
[03/05/2013 04:56:48 PM] ../common/applet-common.c(513): [web] web server ready, now start browser
[03/05/2013 04:57:45 PM] ../common/applet-common.c(354): Failed to send command shutdown: Network Error
[03/05/2013 04:57:45 PM] ../common/applet-common.c(562): [hearbeat mon] stopped.
  1. ccnet.log
[03/05/13 16:56:46] ../common/session.c(382): Listen on 127.0.0.1 13419
[03/05/13 16:56:46] ../common/session.c(254): Update pubinfo file
[03/05/13 16:56:47] ../common/session.c(362): Accepted a local client
[03/05/13 16:56:47] ../common/session.c(362): Accepted a local client
[03/05/13 16:56:47] ../common/session.c(362): Accepted a local client
[03/05/13 16:56:47] ../common/session.c(362): Accepted a local client
[03/05/13 16:56:48] ../common/session.c(362): Accepted a local client
[03/05/13 16:57:01] ../common/processors/rcvcmd-proc.c(519): Add server b4e40170 cloud.seafile.com:10001
[03/05/13 16:57:01] ../common/connect-mgr.c(345): [Conn] Start outgoing connect to (null)(b4e40170db) 113.11.198.73:10001
[03/05/13 16:57:11] ../common/connect-mgr.c(204): [Conn] peer (null)(b4e40170db) connection fails
[03/05/13 16:57:45] ../common/session.c(333): Exit at Tue Mar  5 16:57:45 2013
  1. seafile.log
[03/05/13 16:56:47] ../common/mq-mgr.c(60): [mq client] mq cilent is started
[03/05/13 16:56:47] ../common/mq-mgr.c(106): [mq mgr] publish to hearbeat mq: seafile.heartbeat
[03/05/13 16:56:47] GC started. Total block number is 0.
[03/05/13 16:56:47] GC index size is 1024 Byte.
[03/05/13 16:56:47] Pupulating index.
[03/05/13 16:56:47] Scanning and deleting unused blocks.
[03/05/13 16:56:47] GC finished. 0 blocks are removed.
[03/05/13 16:57:01] clone-mgr.c(447): add relay before clone, cloud.seafile.com:10001
[03/05/13 16:57:01] clone-mgr.c(305): Transition clone state for 7f0f5a92 from [init] to [connect].
[03/05/13 16:57:45] Disconnected from daemon
freeplant commented 11 years ago

Hi, ccnet.log is enough.

Seafile client connects the server via a custom protocol over TCP, using port 10001 and 12001. So it is not affected by the http proxy settings. If your company blocks ports 10001 and 12001, the client cannot sync with our server.

You can test it by

telnet cloud.seafile.com 10001  
shiquanwang commented 11 years ago

I just tested. Both ping cloud.seafile.org and telnet cloud.seafile.org 10001 failed.

Is there any way to work around that?

blablup commented 11 years ago

It would be nice if it would be possible to tunnel everything via https like teamviewer/netviewer and a lot of other applications do. So for the Proxy/Firewall it would look like https. I don't know how much work this would be.

freeplant commented 11 years ago

@shiquanwang No way to work around it yet. Your company may apply a strict network policy today, causing your client no longer work.

@blablup We will look at this solution.

lins05 commented 11 years ago

It's "cloud.seafile.com", NOT "cloud.seafile.org"

Regards Lin

On Tue, Mar 5, 2013 at 8:49 PM, Shiquan Wang notifications@github.comwrote:

I just tested. Both ping cloud.seafile.org and telnet cloud.seafile.org 10001 failed.

Is there any way to work around that?

— Reply to this email directly or view it on GitHubhttps://github.com/haiwen/seafile/issues/129#issuecomment-14438224 .

shiquanwang commented 11 years ago

sorry.

i can ping cloud.seafile.com and telnet cloud.seafile.com 10001

what do i need to provide to check this issue? 在 2013-3-5 晚上9:54,"lins05" notifications@github.com写道:

It's "cloud.seafile.com", NOT "cloud.seafile.org"

Regards Lin

On Tue, Mar 5, 2013 at 8:49 PM, Shiquan Wang notifications@github.comwrote:

I just tested. Both ping cloud.seafile.org and telnet cloud.seafile.org 10001 failed.

Is there any way to work around that?

— Reply to this email directly or view it on GitHub< https://github.com/haiwen/seafile/issues/129#issuecomment-14438224> .

— Reply to this email directly or view it on GitHubhttps://github.com/haiwen/seafile/issues/129#issuecomment-14440785 .

freeplant commented 11 years ago

Hi. If you can telnet cloud.seafile.com, it may just be network instability.

If ccnet still can't connect to seafile server tomorrow, I will send you a debug version with detailed log info, so that you can help us to find the problem.

shiquanwang commented 11 years ago

I tested again.

Yesterday, I tested at home via VPN. So things may not be correct.

Today I tried ping and telnet cloud.seafile.com, both failed.

Then I'll hope tunneling function like socat can be added if possible.