[fossil-users] cgi server configuration on OpenBSD's base httpd(apache 1.3)

2011-01-05 Thread Sunil Nimmagadda
Hello,

I am trying to learn setting up fossil server in cgi mode with stock
httpd(apache 1.3) chrooted to /var/www by default. My problem...

#!/usr/local/bin/fossil
repository: repo/dotfiles/dotfiles.fossil

This cgi script errs out "premature end of script" and when I manually
run the cgi it says...

/usr/lcal/bin/fossil unkown command ./dotfiles 

with "#!/usr/local/bin fossil cgi" I get "302 Moved Temporarly" with
redirection to "http:///index"; running manually at cmd line but "500
Internal Server error" when accessed from a browser.

Please let me know if am missing something.

___
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] cgi server configuration on OpenBSD's base httpd(apache 1.3)

2011-01-05 Thread Sunil Nimmagadda
Thanks Clark,
   One more thing I overlooked was copying libs to chroot...
ldd fossil shows three more additional libs needed apart from libc and
ld.so...

/usr/lib/libz.so.4.1
/usr/lib/libcrypto.so.18.0
/usr/lib/libssl.so.15.1

It works now.

On Wed, Jan 05, 2011 at 03:00:29PM -0800, Clark Christensen wrote:
> If you put the fossil executable in your site's cgi-bin directory (or maybe a 
> symlink targeting /usr/local/bin/fossil), you should be able to make it work 
> as:
> 
> #!/cgi-bin/fossil
> repository: repo/dotfiles/dotfiles.fossil
> 
> This assumes your cgi-bin dir is /var/www/cgi-bin.
> 
>  -Clark
> 
> 
> 
> - Original Message 
> From: Sunil Nimmagadda 
> To: fossil-users@lists.fossil-scm.org
> Sent: Wed, January 5, 2011 7:53:51 AM
> Subject: [fossil-users] cgi server configuration on OpenBSD's base 
> httpd(apache 
> 1.3)
> 
> Hello,
> 
> I am trying to learn setting up fossil server in cgi mode with stock
> httpd(apache 1.3) chrooted to /var/www by default. My problem...
> 
> #!/usr/local/bin/fossil
> repository: repo/dotfiles/dotfiles.fossil
> 
> This cgi script errs out "premature end of script" and when I manually
> run the cgi it says...
> 
> /usr/lcal/bin/fossil unkown command ./dotfiles 
> 
> with "#!/usr/local/bin fossil cgi" I get "302 Moved Temporarly" with
> redirection to "http:///index"; running manually at cmd line but "500
> Internal Server error" when accessed from a browser.
> 
> Please let me know if am missing something.
> 
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> 
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
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] cgi server configuration on OpenBSD's base httpd(apache 1.3)

2011-01-06 Thread Sunil Nimmagadda
On Thu, Jan 06, 2011 at 07:58:39AM -0500, Richard Hipp wrote:
> On Thu, Jan 6, 2011 at 2:18 AM, Sunil Nimmagadda  wrote:
> 
> > Thanks Clark,
> >   One more thing I overlooked was copying libs to chroot...
> > ldd fossil shows three more additional libs needed apart from libc and
> > ld.so...
> >
> > /usr/lib/libz.so.4.1
> > /usr/lib/libcrypto.so.18.0
> > /usr/lib/libssl.so.15.1
> >
> > It works now.
> >
> 
> The Fossil executable that runs the Fossil self-hosting website is also in a
> chroot jail.  But for it, I statically link.  The less you have in your
> chroot jail, the more secure it is, right?
> 
Right, should have looked closely at FLAVORS in the first place. Thanks for
the input.
> 
> 
> >
> > On Wed, Jan 05, 2011 at 03:00:29PM -0800, Clark Christensen wrote:
> > > If you put the fossil executable in your site's cgi-bin directory (or
> > maybe a
> > > symlink targeting /usr/local/bin/fossil), you should be able to make it
> > work as:
> > >
> > > #!/cgi-bin/fossil
> > > repository: repo/dotfiles/dotfiles.fossil
> > >
> > > This assumes your cgi-bin dir is /var/www/cgi-bin.
> > >
> > >  -Clark
> > >
> > >
> > >
> > > - Original Message 
> > > From: Sunil Nimmagadda 
> > > To: fossil-users@lists.fossil-scm.org
> > > Sent: Wed, January 5, 2011 7:53:51 AM
> > > Subject: [fossil-users] cgi server configuration on OpenBSD's base
> > httpd(apache
> > > 1.3)
> > >
> > > Hello,
> > >
> > > I am trying to learn setting up fossil server in cgi mode with stock
> > > httpd(apache 1.3) chrooted to /var/www by default. My problem...
> > >
> > > #!/usr/local/bin/fossil
> > > repository: repo/dotfiles/dotfiles.fossil
> > >
> > > This cgi script errs out "premature end of script" and when I manually
> > > run the cgi it says...
> > >
> > > /usr/lcal/bin/fossil unkown command ./dotfiles
> > >
> > > with "#!/usr/local/bin fossil cgi" I get "302 Moved Temporarly" with
> > > redirection to "http:///index"; running manually at cmd line but "500
> > > Internal Server error" when accessed from a browser.
> > >
> > > Please let me know if am missing something.
> > >
> > > ___
> > > fossil-users mailing list
> > > fossil-users@lists.fossil-scm.org
> > > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> > >
> > > ___
> > > fossil-users mailing list
> > > fossil-users@lists.fossil-scm.org
> > > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> > ___
> > fossil-users mailing list
> > fossil-users@lists.fossil-scm.org
> > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> >
> 
> 
> 
> -- 
> D. Richard Hipp
> d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Unable to open database file

2011-03-10 Thread Sunil Nimmagadda
I am following quick start guide and did the following to setup fossil
server and accessing it from a different client machine.

My server setup...
OpenBSD apache(1.3) chrooted to /var/www
Fossil compiled with -static for self-contained executable.
Fossil version -> This is fossil version [34c23c6fd4] 2011-03-10 02:39:51 UTC

/var/www/users/bob# fossil new foo.fossil
project-id: b20f07ffc2ef5e984a897140cdba4a7f24738dbc
server-id:  1fa3c53148d66df4fd0fd023a0bd14d24aba48d0
admin-user: root (initial password is "faf36a")

/var/ww/users/bob# ls -la foo.fossil
-rw-rw-rw--  1 root  daemon  53248 Mar 10 05:34 foo.fossil

Fossil cgi-script...
#!/usr/local/bin/fossil
repository: /users/bob/foo.fossil

/var/www/users/bob# fossil ui foo.fossil
Enable check-in, developer previleges for "Nobody"

client setup...
~/repo> fossil clone http://server/cgi-bin/fossil.cgi foo.fossil
Bytes  Cards  Artifacts Deltas
Sent:  53  1  0  0
Received: 342  4  1  0
Sent: 680 28  0  0
Received: 674  2  0  0
Total network traffic: 645 bytes sent, 0 bytes received
Rebuilding repository meta-data...
  100.0% complete...
project-id: 2424ed10afd0e33e443f1e1ff6a03db57cf6ccaf
server-id:  3b1e2f3fac32ead5037c363ca8a862d734921110

~/foo> fossil open ~/repo/foo.fossil

~/foo> fossil add blah.c
ADDED blah.c

~/foo> fossil commit
Autosync:  http://server/cgi-bin/fossil.cgi
Bytes  Cards  Artifacts Deltas
Sent: 130  1  0  0
Received:  78  1  0  0
Total network traffic: 272 bytes sent, 0 bytes received
/usr/bin/vi "/Users/bob/check2/ci-comment-8DA095CBF89A.txt"
New_Version: 25499957d937adc4b05885dc2629e5e7324e69b6
Autosync:  http://server/cgi-bin/fossil.cgi
Bytes  Cards  Artifacts Deltas
Sent: 809  7  2  0
**Error: Database error: unable to open database file**
INSERT INTO rcvfrom(uid, mtime, nonce, ipaddr)VALUES(3, julianday('now'), NULL, 
'xxx.248.84.92')
Received: 163  1  0  0
Total network traffic: 533 bytes sent, 0 bytes received
fossil: Autosync failed

~/foo>fossil pull
Server:http://server/cgi-bin/fossil.cgi
Bytes  Cards  Artifacts Deltas
Sent: 146  2  0  0
Received:  94  2  0  0
Total network traffic: 288 bytes sent, 0 bytes received

Am I doing something wrong here. How come pull is sucessfull while
sync/commit/push fail (Database error: unable to open database file).

thanks,
Sunil.

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users