bardsoftware / ganttproject

Official GanttProject repository.
http://ganttproject.biz
GNU General Public License v3.0
860 stars 301 forks source link

Cannot open ganntproject using webdav in cpanel. #938

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I can't open a .gan file from my webdav server. The webdav server is configure 
by cpanel. Here is the information on my access:

URL: http://webdav.synchost.us

File path on web server: /public_html/test.gan

I get the following error when using the above settings:

io.milton.httpclient.MethodNotAllowedException: http error: 405 - 
http://webdav.synchost.us/ http error: 405 - http://webdav.synchost.us

Hope you can help me on this.

Note: The webdav disk is accessible and working correctly.
Regards,

John

Original issue reported on code.google.com by avilesjo...@gmail.com on 9 Jun 2014 at 9:18

GoogleCodeExporter commented 9 years ago
Can you try server url http://webdav.synchost.us/public_html/ ?

Original comment by dbaras...@ganttproject.biz on 9 Jun 2014 at 9:20

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for the quickly reply. I tried as you suggested by I still the same 
error below:

io.milton.httpclient.MethodNotAllowedException: http error: 405 - 
http://webdav.synchost.us/public_html/ http error: 405 - 
http://webdav.synchost.us/public_html/

I'm using the latest version of GanttProject.

Regards,

John

Original comment by avilesjo...@gmail.com on 9 Jun 2014 at 9:53

GoogleCodeExporter commented 9 years ago
Does the webdav settings in Ganttproject by default connects to port 2077? That 
is the port used by cpanel in sharing the webdav disk.

Original comment by avilesjo...@gmail.com on 9 Jun 2014 at 9:57

GoogleCodeExporter commented 9 years ago
Nope, GanttProject connects to standard HTTP ports 80 and 443. If cpanel uses 
port 2077 you may try adding it to the URL: 
http://webdav.synchost.us:2077/public_html/

Original comment by dbaras...@ganttproject.biz on 9 Jun 2014 at 10:05

GoogleCodeExporter commented 9 years ago
I have tried the URL you just posted already and I got this error:

I/O problems when accessing webdav.synchost.us The target server failed to 
respond.

Do you have another way in specifying the port used by cpanel?

Regards,

John

Original comment by avilesjo...@gmail.com on 9 Jun 2014 at 11:05

GoogleCodeExporter commented 9 years ago
Hi,

Any update on this? Hope you can help connecting to my webdav server in cpanel.

Regards,

John

Original comment by avilesjo...@gmail.com on 10 Jun 2014 at 2:15

GoogleCodeExporter commented 9 years ago
Probably something is wrong in webdav/httpclient libraries which we use. I can 
establish connection to webdav.synchost.us:2077 with the help of local nginx 
proxy, but when I configure libs to talk directly to webdav.synchost.us:2077 it 
doesn't work.

We'll investigate this issue. Meanwhile, you can try running nginx locally and 
forward calls from local port 80 to webdav.synchost.us:2077. This configuration 
snippet worked for me:

server {
    server_name test.webdav;  # must be configured in the local name resolver, e.g. /etc/hosts
    location / {
        proxy_pass http://webdav.synchost.us:2077;
        proxy_read_timeout 250;
    }
}

Original comment by dbaras...@ganttproject.biz on 10 Jun 2014 at 2:55

GoogleCodeExporter commented 9 years ago

Original comment by dbaras...@ganttproject.biz on 10 Jun 2014 at 2:56

GoogleCodeExporter commented 9 years ago

Original comment by dbaras...@ganttproject.biz on 10 Jun 2014 at 2:56

GoogleCodeExporter commented 9 years ago
Thank you for the quick response and for the workaround. I'm using a windows 
machine, can I still use nginx to redirect port 80 to 2077?

I also hope you can implement a permanent fix for this problem. Thank you for 
the support.

John

Original comment by avilesjo...@gmail.com on 10 Jun 2014 at 5:28

GoogleCodeExporter commented 9 years ago
As to the best of my knowledge, nginx works on windows, but you may start with 
more "native" utilities, e.g. netsh 
http://technet.microsoft.com/en-us/library/cc731068(v=ws.10).aspx

Original comment by dbaras...@ganttproject.biz on 10 Jun 2014 at 9:05

GoogleCodeExporter commented 9 years ago
Thanks for the quick reply. I've been trying nginx and netsh in my laptop but 
to no avail. Just to be sure the machine where you run the ganttproject 
application is different from the machine where the nginx is running?

Original comment by avilesjo...@gmail.com on 10 Jun 2014 at 10:26

GoogleCodeExporter commented 9 years ago
It doesn't matter. I run them on the same laptop, but it will not change if you 
run nginx proxy somewhere else.

Original comment by dbaras...@ganttproject.biz on 10 Jun 2014 at 10:44

GoogleCodeExporter commented 9 years ago
Hi Dmitry,

Thanks for the quick reply. I'm able to forward port 80 now to port 2077 on our 
server. I have successfully tested it on the browser where I used the URL 
192.168.15.2:80 and it forwards me to webdav.synchost.us:2077. But when using 
the Ganttproject application I got the following error below:

Something went wrong 
I/O problems when accessing test Software caused connection abort: recv failed

Info entered listed below:

URL: http://192.168.15.2:80
File path on web server: /

Can you please help me see what went wrong?

Regards,

John

Original comment by avilesjo...@gmail.com on 10 Jun 2014 at 10:52

GoogleCodeExporter commented 9 years ago
No idea. Internets says that "This usually means that there was a network 
error, such as a TCP timeout". 
http://stackoverflow.com/questions/135919/java-net-socketexception-software-caus
ed-connection-abort-recv-failed

Original comment by dbaras...@ganttproject.biz on 10 Jun 2014 at 10:58

GoogleCodeExporter commented 9 years ago
"I/O problems when accessing test"
GanttProject writes hostname in this message. Are you sure that you're using 
192.168.15.2? Where "test" came from?

You don't need to specify :80 port explicitly, btw.

Original comment by dbaras...@ganttproject.biz on 10 Jun 2014 at 11:15

GoogleCodeExporter commented 9 years ago
Hi I'm sure I'm using 192.168.15.2 for the "test" URL. Are you using the latest 
version of GanttProject?

Original comment by avilesjo...@gmail.com on 10 Jun 2014 at 11:28

GoogleCodeExporter commented 9 years ago
I will try this again later using a linux machine and see what happens.

Original comment by avilesjo...@gmail.com on 10 Jun 2014 at 11:50

GoogleCodeExporter commented 9 years ago
Can you try to access my webdisk just to check if the problem is within my 
connection here? I will give you the credentials to test it if it is ok with 
you.

Regards,

John

Original comment by avilesjo...@gmail.com on 11 Jun 2014 at 5:26

GoogleCodeExporter commented 9 years ago
It is okay, but not this week. I am almost offline next three days. Will be 
back on Sunday/Monday.

Original comment by dbaras...@ganttproject.biz on 11 Jun 2014 at 8:40

GoogleCodeExporter commented 9 years ago
How about now? If it is possible. If not then just on Sunday/Monday.

Original comment by avilesjo...@gmail.com on 11 Jun 2014 at 8:45

GoogleCodeExporter commented 9 years ago
Back from vacations. If you give me access credentials, I'll try to debug this 
issue.

Original comment by dbaras...@ganttproject.biz on 16 Jul 2014 at 9:35