Re: [fossil-users] fossil winsrv - how to use --files parameter
Od: Joe Mistachkin sql...@mistachkin.com Based on my analysis, I think this is the right fix: https://www.fossil-scm.org/index.html/info/d53a7528b5 Please confirm whether or not this works for you. If so, we'll merge it to trunk. fossil version [d53a7528b5] let me create and start the service, which eventually serves static content. There still might by a problem with --files argument(or my misunderstanding of using it). If I try to limit static content to only one file, it never serve it and always redirect to --notfound URL (details below). I observe the same for fossil server command. Thanks Peter example for http://localhost:8080/abcdxyz.jpg URL --service created with --files '*.jpg' fossil.exe winsrv create fossil_service --display fossil_service --start auto --port 8080 --files '*.jpg' --repository c:\soft\tools\. --notfound fossilcanonical/timeline --shows local static content on URL OK --service created with --files 'abcdxyz.jpg' fossil.exe winsrv create fossil_service --display fossil_service --start auto --port 8080 --files 'abcdxyz.jpg' --repository c:\soft\tools\. --notfound fossilcanonical/timeline --never shows local static content on URL, always redirect to --notfound URL ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil winsrv - how to use --files parameter
Thus said Petr Ferdus on Fri, 01 Aug 2014 07:03:16 +0200: but when I create service with --files '*.jpg' added, it is not possible to start such service What happens if you just use with a single file? e.g. don't use wildcards for the moment just to see if it will serve a single static file; --files 'diagram.jpg' for example. Andy -- TAI64 timestamp: 400053dd1556 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil winsrv - how to use --files parameter
Od: Andy Bradford amb-sendok-1409589811.bcfkjobholgdhgmda...@bradfords.org What happens if you just use with a single file? e.g. don't use wildcards for the moment just to see if it will serve a single static file; --files 'diagram.jpg' for example. Thank you for the tip. I am out of my XP box but on Win7 Pro SP1 with fossil 1.30 [dd5743a823] it behaves the same way as on XP - service is created as stopped - attempt to start it show the same error: Error 1053: The service did not respond to the start or control request in a timely fashion If I omit the --files service works OK (but not serving anything other than repo files). Service was created with: fossil.exe winsrv create fossil_service --display fossil_service --start auto --port 8080 --files 'IMG_3115.JPG' --repository c:\repos\. --notfound fossilcanonical/timeline Thanks Peter ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil winsrv - how to use --files parameter
Thus said Petr Ferdus on Sat, 02 Aug 2014 20:27:27 +0200: If I omit the --files service works OK (but not serving anything other than repo files). Service was created with: fossil.exe winsrv create fossil_service --display fossil_service --start auto --port 8080 --files 'IMG_3115.JPG' --repository c:\repos\. --notfound fossilcanonical/timeline I think this eliminates the possibility that it was due to the URL encoding of the filenames. (* would be encoded to %2A and I wondered if maybe the %2A was being handled strangely by Windows argument processing). So I'm at a loss at this point. I don't have a build environment for windows so I'm afraid I won't be of much use at this point. I looked at the code for --files on Windows and I didn't see anything obvious. Does Fossil emit any error messages to the Windows Event logs that might be of use here? Do you see any errors in the Event log when you try to start the service? Thanks, Andy -- TAI64 timestamp: 400053dd2ff9 ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil winsrv - how to use --files parameter
Petr Ferdus wrote: 1053 Error is in event log extended with information that the time limit of 3ms was not met(but information about error showed up almost instantaneously, definitely earlier than after 30 seconds) There is also related error sourced from Schannel with EventID 36888 for [UserID] S-1-5-18 with EventData AlertDesc 10 ErrorState 10. There are some references on this error in internet. I was so far not able to make sense from them. Based on my analysis, I think this is the right fix: https://www.fossil-scm.org/index.html/info/d53a7528b5 Please confirm whether or not this works for you. If so, we'll merge it to trunk. -- Joe Mistachkin ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil winsrv - how to use --files parameter
On 02.08.2014 22:11, Petr Ferdus wrote: I have checked, what windows show in service dialog in path to executable file field: C:\soft\tools\fossil.exe server --port 8080 --notfound fossilcanonical/timeline --files-urlenc %27IMG_3115.JPG%27 c:/soft/tools --files is transformed into --files-urlenc and ' is encoded as %27 This seems to be the problem; fossil server implements only the --files- option. The only other command that implements the --files-urlenc option is fossil http. HTH -- tsbg ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] fossil winsrv - how to use --files parameter
Thanks for the report. I'm not sure about the --files handling; however, the user name and password option handling should be fixed now, here: https://www.fossil-scm.org/index.html/info/9c2a5c097b -- Joe Mistachkin ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users