Re: [fossil-users] fossil 1.24 not working via ssh

2012-11-12 Thread j. van den hoff
I've tested this here (with Fossil-4473a27f3b6e049e) but can only report  
partial success:


* it works using bash/ksh as login shell on the remote machine _if_ there  
is not too much text (the allocated buffer size (5) is still rather  
modest but usually sure sufficient) coming in from `.profile' over the ssh  
connection. so that's a clear step forward. however:


* it does _not_ work if the default verbose (multi-line/blank line  
separated multi-paragraph, but much shorter than 5 bytes) ubuntu motd  
stuff comes in. the (visible) offending text looks something like this:


8--
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Mon Nov 12 13:20:41 CET 2012

  System load:  0.04  Processes:   114
  Usage of /:   72.3% of 9.96GB   Users logged in: 2
  Memory usage: 22%   IP address for eth0: 123.456.78.90
  Swap usage:   0%

  Graph this data and manage this system at  
https://landscape.canonical.com/


0 packages can be updated.
0 updates are security updates.
8--

  - what's strange is: if I copy this text into an `echo' command within  
`.profile' and then deactivate the MOTD (so seeminly getting the same  
stuff send over the
ssh connection during login), it works flawlessly!?. my guess would be  
that there are some unprintable characters/escapes sent as well which I do  
not see
so that copying the MOTD to `.profile' is not really the same thing as  
what is happening when ubuntu sends the stuff.


* it also does _not_ work (with bash that is: ksh keeps working) if I  
myself send some escape sequences from my login scripts (as mentioned in a
  previous mail intended to dynamically adjust my xterm-titlebars). what's  
happening here is completely unclear to me, since it seems bash specific.  
what's worse:
  issuing the respective `echo' directly in the script instead of within a  
shell-function (as is usually done in my setup) does not lead to a failure.
  my setup might be somewhat esoteric here, so maybe it's not too  
important, but it indicates of course that there still is something  
fundamentally not OK.


* and it does not at all work with tcsh as login shell on the remote  
machine (even if login is completely silent). in this case I get the error  
message

   tput: No value for $TERM and no -T specified
   TERM: Undefined variable.
   Fossil-4473a27f3b6e049e/fossil: ssh connection failed: [test1
   probe-4f5d9ab4]
  so, seemingly `tcsh' users are out of luck anyway.

questions:

* maybe the (echo/flush) process has to be iterated one further time to  
make fossil happy with ubuntu's motd (after all it's not the least  
frequent linux distro)?


* could fossil (or a debug version) not provide a (additional) hexdump (a  
la `hexdump -C' on linux) of the content of `zIn' instead of using
 `fossil_fatal(ssh connection failed: [%s], zIn);'? in this way one  
might be able to at least to recognize what exactly is coming in which  
might help in tracking
 down the source of the trouble: it need not be printable characters  
coming over the ssh connection after all.



j.


On Sun, 11 Nov 2012 23:44:31 +0100, Richard Hipp d...@sqlite.org wrote:

On Sun, Nov 11, 2012 at 5:11 PM, Matt Welland estifo...@gmail.com  
wrote:


I'll top-post an answer to this one as this thread has wandered and  
gotten

very long, so who knows who is still following :)

I made a simple tweak to the ssh code that gets ssh working for me on
Ubuntu and may solve some of the login shell related problems that have
been reported with respect to ssh:


http://www.kiatoa.com/cgi-bin/fossils/fossil/fdiff?v1=935bc0a983135b26v2=61f9ddf1e2c8bbb0



Not exactly the same patch, but something quite similar has been checked  
in
at http://www.fossil-scm.org/fossil/info/4473a27f3b - please try it out  
and

let me know if it clears any outstanding problems, or if I missed some
obvious benefit of Matt's patch in my refactoring.





Joerg iasked if this will make it into a future release. Can Richard or
one of the developers take a look at the change and comment?

Note that unfortunately this does not fix the issues I'm having with
fsecure ssh but I hope it gets us one step closer.

Thanks,

Matt
-=-



On Sun, Nov 11, 2012 at 1:53 PM, j. v. d. hoff  
veedeeh...@googlemail.comwrote:



On Sun, 11 Nov 2012 19:35:25 +0100, Matt Welland estifo...@gmail.com
wrote:

 On Sun, Nov 11, 2012 at 2:56 AM, j. van den hoff

veedeeh...@googlemail.com**wrote:

 On Sun, 11 Nov 2012 10:39:27 +0100, Matt Welland  
estifo...@gmail.com

wrote:

 sshfs is cool but in a corporate environment it can't always be  
used.

For


example fuse is not installed for end users on the servers I have
access
to.

I would also be very wary of sshfs and multi-user access. Sqlite3
locking
on NFS doesn't always 

Re: [fossil-users] fossil 1.24 not working via ssh

2012-11-12 Thread Richard Hipp
On Mon, Nov 12, 2012 at 8:36 AM, j. van den hoff
veedeeh...@googlemail.comwrote:

 I've tested this here (with Fossil-4473a27f3b6e049e) but can only report
 partial success:

 * it works using bash/ksh as login shell on the remote machine _if_ there
 is not too much text (the allocated buffer size (5) is still rather
 modest but usually sure sufficient) coming in from `.profile' over the ssh
 connection. so that's a clear step forward. however:

 * it does _not_ work if the default verbose (multi-line/blank line
 separated multi-paragraph, but much shorter than 5 bytes) ubuntu motd
 stuff comes in. the (visible) offending text looks something like this:


Please try again using http://www.fossil-scm.org/fossil/info/00cf858afe and
let me know if the situation improves.  If it still is not working, please
run with the --sshtrace command-line option and send me the diagnostic
output.  Thanks.




 8**--**
 Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic x86_64)

  * Documentation:  https://help.ubuntu.com/

   System information as of Mon Nov 12 13:20:41 CET 2012

   System load:  0.04  Processes:   114
   Usage of /:   72.3% of 9.96GB   Users logged in: 2
   Memory usage: 22%   IP address for eth0: 123.456.78.90
   Swap usage:   0%

   Graph this data and manage this system at https://landscape.canonical.**
 com/ https://landscape.canonical.com/


 0 packages can be updated.
 0 updates are security updates.
 8**--**

   - what's strange is: if I copy this text into an `echo' command within
 `.profile' and then deactivate the MOTD (so seeminly getting the same stuff
 send over the
 ssh connection during login), it works flawlessly!?. my guess would be
 that there are some unprintable characters/escapes sent as well which I do
 not see
 so that copying the MOTD to `.profile' is not really the same thing as
 what is happening when ubuntu sends the stuff.

 * it also does _not_ work (with bash that is: ksh keeps working) if I
 myself send some escape sequences from my login scripts (as mentioned in a
   previous mail intended to dynamically adjust my xterm-titlebars). what's
 happening here is completely unclear to me, since it seems bash specific.
 what's worse:
   issuing the respective `echo' directly in the script instead of within a
 shell-function (as is usually done in my setup) does not lead to a failure.
   my setup might be somewhat esoteric here, so maybe it's not too
 important, but it indicates of course that there still is something
 fundamentally not OK.

 * and it does not at all work with tcsh as login shell on the remote
 machine (even if login is completely silent). in this case I get the error
 message
tput: No value for $TERM and no -T specified
TERM: Undefined variable.
Fossil-4473a27f3b6e049e/**fossil: ssh connection failed: [test1
probe-4f5d9ab4]
   so, seemingly `tcsh' users are out of luck anyway.

 questions:

 * maybe the (echo/flush) process has to be iterated one further time to
 make fossil happy with ubuntu's motd (after all it's not the least frequent
 linux distro)?

 * could fossil (or a debug version) not provide a (additional) hexdump (a
 la `hexdump -C' on linux) of the content of `zIn' instead of using
  `fossil_fatal(ssh connection failed: [%s], zIn);'? in this way one
 might be able to at least to recognize what exactly is coming in which
 might help in tracking
  down the source of the trouble: it need not be printable characters
 coming over the ssh connection after all.


 j.



 On Sun, 11 Nov 2012 23:44:31 +0100, Richard Hipp d...@sqlite.org wrote:

  On Sun, Nov 11, 2012 at 5:11 PM, Matt Welland estifo...@gmail.com
 wrote:

  I'll top-post an answer to this one as this thread has wandered and
 gotten
 very long, so who knows who is still following :)

 I made a simple tweak to the ssh code that gets ssh working for me on
 Ubuntu and may solve some of the login shell related problems that have
 been reported with respect to ssh:


 http://www.kiatoa.com/cgi-bin/**fossils/fossil/fdiff?v1=**
 935bc0a983135b26v2=**61f9ddf1e2c8bbb0http://www.kiatoa.com/cgi-bin/fossils/fossil/fdiff?v1=935bc0a983135b26v2=61f9ddf1e2c8bbb0


 Not exactly the same patch, but something quite similar has been checked
 in
 at 
 http://www.fossil-scm.org/**fossil/info/4473a27f3bhttp://www.fossil-scm.org/fossil/info/4473a27f3b-
  please try it out and
 let me know if it clears any outstanding problems, or if I missed some
 obvious benefit of Matt's patch in my refactoring.




 Joerg iasked if this will make it into a future release. Can Richard or
 one of the developers take a look at the change and comment?

 Note that unfortunately this does not fix the issues I'm having with
 fsecure ssh but I hope it gets us one step closer.

 Thanks,

 Matt
 -=-



 On Sun, Nov 11, 2012 at 1:53 PM, j. v. d. hoff 

Re: [fossil-users] fossil 1.24 not working via ssh

2012-11-12 Thread Richard Hipp
On Mon, Nov 12, 2012 at 9:51 AM, Richard Hipp d...@sqlite.org wrote:


 Please try again using http://www.fossil-scm.org/fossil/info/00cf858afeand 
 let me know if the situation improves.  If it still is not working,
 please run with the --sshtrace command-line option and send me the
 diagnostic output.  Thanks.


Further improvements.  Please try:
http://www.fossil-scm.org/fossil/info/5776dfad81


-- 
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


Re: [fossil-users] fossil 1.24 not working via ssh

2012-11-12 Thread j. van den hoff

On Mon, 12 Nov 2012 15:51:04 +0100, Richard Hipp d...@sqlite.org wrote:


On Mon, Nov 12, 2012 at 8:36 AM, j. van den hoff
veedeeh...@googlemail.comwrote:


I've tested this here (with Fossil-4473a27f3b6e049e) but can only report
partial success:

* it works using bash/ksh as login shell on the remote machine _if_  
there

is not too much text (the allocated buffer size (5) is still rather
modest but usually sure sufficient) coming in from `.profile' over the  
ssh

connection. so that's a clear step forward. however:

* it does _not_ work if the default verbose (multi-line/blank line
separated multi-paragraph, but much shorter than 5 bytes) ubuntu  
motd

stuff comes in. the (visible) offending text looks something like this:



Please try again using http://www.fossil-scm.org/fossil/info/00cf858afe  
and

let me know if the situation improves.  If it still is not working,


indeed it does: congratulation!

* it now works without problems both with bash and ksh and does no longer  
choke on ubuntu's motd stuff (nor on 'my' escape sequences).
  putting excessively much text in the way still leads to a failure but  
that's probably rather a feature...


* with tcsh, I most of the time get
8---
tput: No value for $TERM and no -T specified
TERM: Undefined variable.
Bytes  Cards  Artifacts Deltas
Sent:  53  1  0  0
waiting for server...
8---
where it hangs infinitely (this is an extrapolation from the actually  
waited ~ 30 sec...)


sporadically, however, it does not issue 'waiting for server' (or it's  
overwritten to quickly) and actually completes successfully.
this might very well be a real tcsh issue (in which case one might contact  
the maintainers) but if this could reliably be handled as well I presume  
the problem is solved completely.
here, several colleagues (not me any more) still stick with tcsh for  
interactive work and it quite probably still is the default shell

on most BSD descendants (not on macosX, though).

thanks a lot.


please
run with the --sshtrace command-line option and send me the diagnostic
output.  Thanks.


I see the command in the source but it seems not to be recognized. how is  
it supposed to be called?








8**--**
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Mon Nov 12 13:20:41 CET 2012

  System load:  0.04  Processes:   114
  Usage of /:   72.3% of 9.96GB   Users logged in: 2
  Memory usage: 22%   IP address for eth0: 123.456.78.90
  Swap usage:   0%

  Graph this data and manage this system at  
https://landscape.canonical.**

com/ https://landscape.canonical.com/


0 packages can be updated.
0 updates are security updates.
8**--**

  - what's strange is: if I copy this text into an `echo' command within
`.profile' and then deactivate the MOTD (so seeminly getting the same  
stuff

send over the
ssh connection during login), it works flawlessly!?. my guess would  
be
that there are some unprintable characters/escapes sent as well which I  
do

not see
so that copying the MOTD to `.profile' is not really the same thing  
as

what is happening when ubuntu sends the stuff.

* it also does _not_ work (with bash that is: ksh keeps working) if I
myself send some escape sequences from my login scripts (as mentioned  
in a
  previous mail intended to dynamically adjust my xterm-titlebars).  
what's
happening here is completely unclear to me, since it seems bash  
specific.

what's worse:
  issuing the respective `echo' directly in the script instead of  
within a
shell-function (as is usually done in my setup) does not lead to a  
failure.

  my setup might be somewhat esoteric here, so maybe it's not too
important, but it indicates of course that there still is something
fundamentally not OK.

* and it does not at all work with tcsh as login shell on the remote
machine (even if login is completely silent). in this case I get the  
error

message
   tput: No value for $TERM and no -T specified
   TERM: Undefined variable.
   Fossil-4473a27f3b6e049e/**fossil: ssh connection failed: [test1
   probe-4f5d9ab4]
  so, seemingly `tcsh' users are out of luck anyway.

questions:

* maybe the (echo/flush) process has to be iterated one further time to
make fossil happy with ubuntu's motd (after all it's not the least  
frequent

linux distro)?

* could fossil (or a debug version) not provide a (additional) hexdump  
(a

la `hexdump -C' on linux) of the content of `zIn' instead of using
 `fossil_fatal(ssh connection failed: [%s], zIn);'? in this way one
might be able to at least to recognize what exactly is coming in which
might help in tracking
 down the source of the trouble: it need not be printable characters

Re: [fossil-users] fossil 1.24 not working via ssh

2012-11-12 Thread Matt Welland
This works for me also but I had to comment out the adding of -p as the
port was coming though as 0 (this is using fsecure ssh, tcsh, SLES9.)

#ifdef __MINGW32__
  blob_appendf(zCmd,  -P %d, g.urlPort);
#else
  /* blob_appendf(zCmd,  -p %d, g.urlPort); */

I also haven't made sense of the URL syntax. In rsync I would specify rsync
-avz mrwellan@localhost:~/fossils/fossil.fossil but that doesn't seem to
work. The full path with two leading slashes seems to work.
==
 fsl set | grep ssh
ssh-command  (global) ssh -t
chlr11723 rm mt.fossil* ; ( cd .. ; make )  ../fossil clone
ssh://localhost://nfs/ch/disks/ch_home_disk002/mrwellan/fossils/megatest.fossil
mt.fossil
make: Nothing to be done for `all'.
ssh -t -p 0 localhost
Error: in option 'port': invalid option value
Broken pipe



On Mon, Nov 12, 2012 at 8:40 AM, j. van den hoff
veedeeh...@googlemail.comwrote:

 On Mon, 12 Nov 2012 15:51:04 +0100, Richard Hipp d...@sqlite.org wrote:

  On Mon, Nov 12, 2012 at 8:36 AM, j. van den hoff
 veedeeh...@googlemail.com**wrote:

  I've tested this here (with Fossil-4473a27f3b6e049e) but can only report
 partial success:

 * it works using bash/ksh as login shell on the remote machine _if_ there
 is not too much text (the allocated buffer size (5) is still rather
 modest but usually sure sufficient) coming in from `.profile' over the
 ssh
 connection. so that's a clear step forward. however:

 * it does _not_ work if the default verbose (multi-line/blank line
 separated multi-paragraph, but much shorter than 5 bytes) ubuntu motd
 stuff comes in. the (visible) offending text looks something like this:


 Please try again using 
 http://www.fossil-scm.org/**fossil/info/00cf858afehttp://www.fossil-scm.org/fossil/info/00cf858afeand
 let me know if the situation improves.  If it still is not working,


 indeed it does: congratulation!

 * it now works without problems both with bash and ksh and does no longer
 choke on ubuntu's motd stuff (nor on 'my' escape sequences).
   putting excessively much text in the way still leads to a failure but
 that's probably rather a feature...

 * with tcsh, I most of the time get
 8---

 tput: No value for $TERM and no -T specified
 TERM: Undefined variable.
 Bytes  Cards  Artifacts Deltas
 Sent:  53  1  0  0
 waiting for server...
 8---
 where it hangs infinitely (this is an extrapolation from the actually
 waited ~ 30 sec...)

 sporadically, however, it does not issue 'waiting for server' (or it's
 overwritten to quickly) and actually completes successfully.
 this might very well be a real tcsh issue (in which case one might contact
 the maintainers) but if this could reliably be handled as well I presume
 the problem is solved completely.
 here, several colleagues (not me any more) still stick with tcsh for
 interactive work and it quite probably still is the default shell
 on most BSD descendants (not on macosX, though).

 thanks a lot.


  please
 run with the --sshtrace command-line option and send me the diagnostic
 output.  Thanks.


 I see the command in the source but it seems not to be recognized. how is
 it supposed to be called?





 8**--**

 Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic x86_64)

  * Documentation:  https://help.ubuntu.com/

   System information as of Mon Nov 12 13:20:41 CET 2012

   System load:  0.04  Processes:   114
   Usage of /:   72.3% of 9.96GB   Users logged in: 2
   Memory usage: 22%   IP address for eth0: 123.456.78.90
   Swap usage:   0%

   Graph this data and manage this system at https://landscape.canonical.
 **
 com/ https://landscape.canonical.**com/https://landscape.canonical.com/
 



 0 packages can be updated.
 0 updates are security updates.
 8**--**


   - what's strange is: if I copy this text into an `echo' command within
 `.profile' and then deactivate the MOTD (so seeminly getting the same
 stuff
 send over the
 ssh connection during login), it works flawlessly!?. my guess would
 be
 that there are some unprintable characters/escapes sent as well which I
 do
 not see
 so that copying the MOTD to `.profile' is not really the same thing
 as
 what is happening when ubuntu sends the stuff.

 * it also does _not_ work (with bash that is: ksh keeps working) if I
 myself send some escape sequences from my login scripts (as mentioned in
 a
   previous mail intended to dynamically adjust my xterm-titlebars).
 what's
 happening here is completely unclear to me, since it seems bash specific.
 what's worse:
   issuing the respective `echo' directly in the script instead of within
 a
 shell-function (as is usually done in my setup) does not lead to a
 failure.
   my setup might be somewhat esoteric 

Re: [fossil-users] fossil 1.24 not working via ssh

2012-11-12 Thread j. v. d. hoff

On Mon, 12 Nov 2012 16:23:22 +0100, Richard Hipp d...@sqlite.org wrote:


On Mon, Nov 12, 2012 at 9:51 AM, Richard Hipp d...@sqlite.org wrote:



Please try again using  
http://www.fossil-scm.org/fossil/info/00cf858afeand let me know if the  
situation improves.  If it still is not working,

please run with the --sshtrace command-line option and send me the
diagnostic output.  Thanks.



Further improvements.  Please try:
http://www.fossil-scm.org/fossil/info/5776dfad81


still works nicely with bash and ksh ;-). I think that is good news for  
fossil: ssh protocol should just work with any DVCS. running into  
trouble in this area might turn people off quickly I'd say. --


regarding behaviour under tcsh, this remains somewhat erratic for me:  
mostly I get the infinite 'waiting for server...' message but if I try  
repeatedly, one of the trials
(about every third or so) succeeds. so for tcsh users fossill might still  
make a mixed impression.


I, for one, am happy now (and have, as an aside, confirmed my impression  
that ksh93 really is a saner shell than bash).


j.







--
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Multi-lingual fossil site?

2012-11-12 Thread Ron Aaron
Hi -

I would like to have a site whose content is managed by fossil, and
actually have the site be presented by fossil.  That's pretty easy.  The
reason I want this is the extreme ease of deployment as well as having
SCM control over the content.

What I would further like is to have multi-lingual content.  For
example, have the same pages in English and Spanish. 

I could accomplish that by making a document tree:  docs/en/...
docs/es/... and so forth, and directing people from the main page to
whatever sub-page supports their language.

I can write some Javascript to determine their language and put it in
the header, and perhaps read a cookie to get their preferred settings
for my site; but is there any TH1 support to help manage this?

It would be nice if I could add a tag lang=es for example to a query,
and have fossil give me the Spanish version of the page if there was one
(rather than maintaining separate document trees:  I would have
docs/page-en.html and docs/page-es.html)
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users