View Ticket
Not logged in
Ticket UUID: 68b4e947d038749e3989e0905319f8664f152586
Title: '"Fossil"' is not recognized as an internal or external command
Status: Closed Type: Incident
Severity: Important Priority: Zero
Subsystem: Resolution: Duplicate
Last Modified: 2012-10-15 15:09:57
Version Found In: [4f24addea9] 2009-12-20 21:34:51 UTC
Description & Comments:
I realize this looks like an error on my part and it probably is. I apologize in advance but I'm new to running fossil on windows 7.

Can Fossil run on windows 7 64 Ultimate? The error I'm getting suggests my path variable is not setup correctly but it is as I'm able to run the fossil command from any directory on my system. It's as if once I do run it my path variable is not longer applicable. To test this I ran fossil from the directory of it's executable and pointed it to the database that I want to server up but get the same error. I've also made sure I open the command prompt as an administrator and the firewall was open to anything fossil. The following are the steps I went through to get this odd behaviour.

I use the command "fossil server -port x RepositoryName"

and the server starts stating

"Listening for HTTP requests on port x" "Type Ctrl-C to stop the HTTP server".

Then I try to connect with a browser (tried ie, firefox, and opera) and in the fossil command prompt window I see this error message underneath the "Type Ctrl-C...." message.

'"Fossil"' is not recognized as an internal or external command, operable program or batch file.

The browser does not give me an error but just gives me a blank screen and says it's done loading the page.

Anyone have any ideas or encountered this before? I really enjoy using fossil and don't want to switch programs.


drh added on 2010-01-08 19:29:53:
Fossil calls system() to run a copy of itself to handle each incoming HTTP request separately. It would appear that Windows 7 is doing something that prevents this from happening.

I do not have access to windows 7 and so I have no ability to debug this. Do any windows programmers have a clue what might be causing the problem?


jeremy_c added on 2010-01-08 20:50:04:
I am running Windows 7 and use fossil ui all the time w/o issue. I then tried fossil server -port 8888 repo.fsl and it also works w/o issue. I am unable to reproduce this problem.

fossil help reports: This is fossil version [def89b9393] 2010-01-01 01:30:14 UTC


anonymous added on 2010-01-08 21:27:24:
So I made a copy of the Fossil.exe to the folder where the repository is and it started working. This was not necessary when I was running XP. Again it's as if the path variable doesn't exist after I start the fossil server but works fine for starting it. Sorry for any bother and thanks for the help.

-Rob


jeremy_c added on 2010-01-08 21:41:26:
My fossil.exe is not in my current directory, nor the directory of the repository. It is in my path, though.

Jeremy


jeremy_c added on 2010-01-08 21:42:46:
Oh, I forgot to mention, I am on Windows Home Premium x64. So, I am 64bit but not Ultimate. However, I doubt that the difference between Home Premium and Ultimate is the problem.


anonymous added on 2010-01-08 22:04:43:
As a sanity check I renamed the one in my repository directory to test it one last time. I then typed fossil and got the fossil usage message "fossil COMMAND ..." and ran the server again with "Fossil server -port x RepositoryName" and it started. Then I used a firefox that had a successful server page already loaded and it refresh and got a blank screen. Again I checked the command prompt and saw "'"Fossil"' is not recognized as an internal or external command, operable program or batch file. Changed the file name back and refreshed again and it worked... Perplexing to me.


jeremy_c added on 2010-01-08 23:54:02:
Where did you get your binary? Is there maybe something wrong with the compiler or maybe it's linking to a different lib than mine but I cannot reproduce your error no matter what I try.


anonymous added on 2010-01-09 13:54:57:
Here is the link I used. http://www.fossil-scm.org/download/fossil-w32-20091220213451.zip I talked to someone else about it and they suggested I also path the directory that I had my repository in but that didn't work.


jan.nijtmans added on 2012-08-30 12:09:50 UTC:
This looks like a dup of [c8c0b78c84] proposed fix committed to branch "ticket-c8c0b78c84"