View Ticket
Not logged in
Ticket UUID: 96af2fca6da1664bad1cdf319675214f5f89a3a7
Title: web "Sync Now" need to provide repository path argument.
Status: Closed Type: Code_Defect
Severity: Important Priority:
Subsystem: Resolution: Duplicate
Last Modified: 2011-09-08 20:06:31
Version Found In: fc23960258
Description & Comments:
I am getting "use --repository or -R to specific the repository database" from Admin page when clicking "Sync Now".

anonymous added on 2010-01-27 14:01:00:
This is related to fc23960258


altufaltu added on 2010-01-27 14:19:51:
I'm getting 'cannot locate home directory - please set the HOMEPATH environment variable' on trying to sync.

Also, can this be extended to multiple servers / URLs and option to do push, pull or both (sync) for each of them?


ron added on 2010-01-27 14:29:31:
I see how being able to 'sync' the server via a click is very convenient. But unless you have access to the server (ssh or ftp or something), you cannot get a repository on it to begin with.

If you can put a repo on the server, you must necessarily have enough access to already tell it what URL to sync to.

It seems to me that allowing web access to change the URL is asking for trouble, though others will disagree.

I don't understand the HOMEPATH issue. Why would we have to change the PATH? That sounds like a server-side misconfiguration.


ron added on 2010-01-27 14:33:09:
Regarding the multiple syncs -- the "right" way to sync multiple servers is to run a "cron" job (or whatever the equivalent would be on Windows), to have a "fossil sync ..." process run periodically. One could then simply have more than one URL to sync to in separate fossil commands.

If you do not have access to cron functionality on the servers where you are hosting the repo (why wouldn't you?), then you could do the 'click' sync on several separate servers individually (each one sync-ing to a specific other server).


anonymous added on 2010-01-29 03:43:06:
I'm running fossil as CGI through apache. Remote URL is fossil-scm.org with no permission to push. If I click on Sync Now from admikn page, I get the error about setting HOMEPATH.


anonymous added on 2010-04-12 16:58:22:
I also get the use --repository or -R to specify the repository database error, but only when the server is running against an unopened project.


anonymous added on 2010-04-22 13:51:48:
New server setup as per instructions in "fossil help cgi". Everything works from the web UI EXCEPT the Admin -> Sync Now option. It produces a page with a single line in red:

use --repository or -R to specify the repository database

dmitry added on 2011-09-08 20:06:31 UTC:
Tracking "Sync now" in ticket [3b1533a090] as a "Feature request".