The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Other WebDAV (http://forums.omnigroup.com/forumdisplay.php?f=57)
-   -   local webdav syncing problem (http://forums.omnigroup.com/showthread.php?t=9416)

kingsinger 2008-08-15 12:44 PM

local webdav syncing problem
 
So I set up a local webdav server on OS X 10.4 using Manas' directions on his blog. It seems to be working. I can mount it locally with the finder and move a file into it or out of it. I can also mount it from a different computer, both on the LAN and over the internet in an SSH tunnel.

But when I tried to do an OF sync with it, it said that the sync had failed. And when I look in the WebDav volume, I see a folder with the following name:

OmniFocus.ofocus-copy-in-progress-kQxc0HuXvA8

Also, when I enter the webdav url into my browser, I get the following error:

"You don't have permission to access /omnisync/ on this server."

Any thoughts on this? I seem to remember somebody saying something about some extra sync logging you can turn on. But now I can't find that.

Could there still be some sort of a permissions problem I'm missing in the server config?

JL

Lizard 2008-08-15 02:43 PM

paste the following into Terminal:

[CODE]defaults write com.omnigroup.OmniFocus XMLFileManagerDebug -bool true[/CODE]

You might also check out the server logs:
/var/log/apache2 or /var/log/httpd

kingsinger 2008-08-15 02:48 PM

Also, I notice there was a place to get an error message in the omni preferences. I got this error:

The 127.0.0.1 server returned "bad gateway" (502) in response to a request to "MOVE /omnisync/OmniFocus.ofocus-copy-in-progress-pmBsCphTPqR"

Any thoughts on that?

whpalmer4 2008-08-15 05:23 PM

[QUOTE=kingsinger;44887]So I set up a local webdav server on OS X 10.4 using Manas' directions on his blog. It seems to be working. I can mount it locally with the finder and move a file into it or out of it. I can also mount it from a different computer, both on the LAN and over the internet in an SSH tunnel.

But when I tried to do an OF sync with it, it said that the sync had failed. And when I look in the WebDav volume, I see a folder with the following name:

OmniFocus.ofocus-copy-in-progress-kQxc0HuXvA8

Also, when I enter the webdav url into my browser, I get the following error:

"You don't have permission to access /omnisync/ on this server."

Any thoughts on this? I seem to remember somebody saying something about some extra sync logging you can turn on. But now I can't find that.

Could there still be some sort of a permissions problem I'm missing in the server config?

JL[/QUOTE]
It took me a while, but I finally remembered what the problem was that caused me to get the 502 error with my 10.4.11 setup last month. In your configuration file, you need to have a ServerName <name> directive that matches the hostname you are using in your address. The easiest thing to do is to use whatever your machine reports to the hostname command in the Terminal, which can also be gotten by looking at the Sharing preferences panel in System Preferences, right underneath the computer name. Update the configuration file to have that ServerName directive, restart the webserver, make sure you use the same name in your URL and it should work.

Lizard 2008-08-15 05:45 PM

[beat me to it]

kingsinger 2008-08-15 05:51 PM

Although I managed to get this far, I'm really pretty limited on this terminal and config file editing stuff. Do you think you could perhaps spell out the specific code you stuck in the file with a concrete example for this dimbulb.

If I'm just using the LAN IP address as the host name, is that what I would use?

So for example, when I hit command K to open the dav volume I type in [url]http://127.0.0.1/omnisync[/url] and it mounts. Or from a different machine on my LAN I enter [url]http://hostIPaddress/omnisync[/url].

Or do I need to insert the term I created in the Alias line of the dav config file? (i.e., omnisync).

TIA

whpalmer4 2008-08-15 06:27 PM

[QUOTE=kingsinger;44912]Although I managed to get this far, I'm really pretty limited on this terminal and config file editing stuff. Do you think you could perhaps spell out the specific code you stuck in the file with a concrete example for this dimbulb.

If I'm just using the LAN IP address as the host name, is that what I would use?

So for example, when I hit command K to open the dav volume I type in [url]http://127.0.0.1/omnisync[/url] and it mounts. Or from a different machine on my LAN I enter [url]http://hostIPaddress/omnisync[/url].

Or do I need to insert the term I created in the Alias line of the dav config file? (i.e., omnisync).

TIA[/QUOTE]
Okay, the server name for my laptop is Bill-Palmers-Macbook.local, so I put ServerName Bill-Palmers-Macbook.local in the httpd.conf file. Your Mac and your iPhone already know how to do the conversion of that name to the local IP address on your LAN.

[code]

#
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
#ServerName new.host.name
ServerName bill-palmers-macbook.local

[/code]

Then I configure OmniFocus to use [url]http://bill-palmers-macbook.local/webdav[/url] and I'm off to the races. My alias directive was:

[code]
Alias /webdav "/Library/WebServer/WebDAV"
[/code]

The thing that dashes your hopes when it looks like the end is in sight is that you can mount a webdav volume without the servername bit being correct -- but then you'll get some 502 errors when you actually try to manipulate some files.

kingsinger 2008-08-16 08:14 AM

Okay. That worked to get it syncing on the LAN. But what about syncing remotely over the internet in an ssh tunnel?

I open up a tunnel to my dyndns server name, which then gets forwarded by my home router to the hard ip address I have set up on my home machine. Then I've got a port forward set up where port 8080 on my laptop forwards to port 80 on the remote desktop where the webdav share is.

I put the following url into omni's sync settings but it failed:

127.0.0.1:8080/omnisync

omnisync is the alias of my webdav share.

When I do use goliath or the finder this url takes me righ to the share and mounts it.

Is there anyway in the config file to let the webdav server know that server name equals either my computer name or the hard IP address for that computer? Or in the alternative, could I replace my computer name with the hard ip address for the computer in the server config file?

TIA for any additional thoughts on this. I'm halfway there. But it would be great to take it the rest of the way.


All times are GMT -8. The time now is 01:12 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.