9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] 9front:  fossil broken in Humanbiologics rel.
@ 2023-12-12 19:42 wb.kloke
  2023-12-12 21:04 ` ori
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: wb.kloke @ 2023-12-12 19:42 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 596 bytes --]

Till I upgraded my 9front I was using a fossil server (from9legacy) on my 9front FreeBSD Bhyve system, probably 9front release Emailschaden.

Now it doesn't work anymore. Remaking the programs did not help either. The fossil server now hangs immediately after start. Neither file nor console service nodes are created.  

Are there any other users of this combi?
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-M3d7e41d399a12dd335702ac0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1156 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-12 19:42 [9fans] 9front: fossil broken in Humanbiologics rel wb.kloke
@ 2023-12-12 21:04 ` ori
  2023-12-12 21:10 ` cinap_lenrek
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 12+ messages in thread
From: ori @ 2023-12-12 21:04 UTC (permalink / raw)
  To: 9fans

Interesting, and not expected; Can you get a stack trace from the Fossil process?

Quoth wb.kloke@gmail.com:
> Till I upgraded my 9front I was using a fossil server (from9legacy) on my 9front FreeBSD Bhyve system, probably 9front release Emailschaden.
> 
> Now it doesn't work anymore. Remaking the programs did not help either. The fossil server now hangs immediately after start. Neither file nor console service nodes are created.
> 
> Are there any other users of this combi?

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-M0dfbd7ec71f7e420558b74c2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-12 19:42 [9fans] 9front: fossil broken in Humanbiologics rel wb.kloke
  2023-12-12 21:04 ` ori
@ 2023-12-12 21:10 ` cinap_lenrek
  2023-12-12 21:21 ` ori
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 12+ messages in thread
From: cinap_lenrek @ 2023-12-12 21:10 UTC (permalink / raw)
  To: 9fans

does the old kernel with fossil binary still work?

--
cinap

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-Me0f499bebe92c1d19ddb6066
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-12 19:42 [9fans] 9front: fossil broken in Humanbiologics rel wb.kloke
  2023-12-12 21:04 ` ori
  2023-12-12 21:10 ` cinap_lenrek
@ 2023-12-12 21:21 ` ori
  2023-12-12 21:44 ` ori
  2023-12-12 21:49 ` cinap_lenrek
  4 siblings, 0 replies; 12+ messages in thread
From: ori @ 2023-12-12 21:21 UTC (permalink / raw)
  To: 9fans

Interesting, and not expected; Can you get a stack trace from the Fossil process?

Quoth wb.kloke@gmail.com:
> Till I upgraded my 9front I was using a fossil server (from9legacy) on my 9front FreeBSD Bhyve system, probably 9front release Emailschaden.
> 
> Now it doesn't work anymore. Remaking the programs did not help either. The fossil server now hangs immediately after start. Neither file nor console service nodes are created.
> 
> Are there any other users of this combi?

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-Ma52345b8b081a185ba28ab3b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-12 19:42 [9fans] 9front: fossil broken in Humanbiologics rel wb.kloke
                   ` (2 preceding siblings ...)
  2023-12-12 21:21 ` ori
@ 2023-12-12 21:44 ` ori
  2023-12-12 21:49 ` cinap_lenrek
  4 siblings, 0 replies; 12+ messages in thread
From: ori @ 2023-12-12 21:44 UTC (permalink / raw)
  To: 9fans

Just tested using this script:
        
        #!/bin/rc
        
        fossil/flfmt $1
        fossil/conf -w $1 <<EOF
                fsys main config
                fsys main open -AWP
                fsys main
                create /active/adm adm sys d775
                create /active/adm/users adm sys 664
                users -w
                srv -p fscons.test
                srv fossil.test
        EOF
        fossil/fossil -f $1
        mount -c /srv/fossil.test /n/fossil

and it seems to work for me; note, I don't have a venti
set up, so I have no idea if there's anything around that
which might cause problems.

Quoth wb.kloke@gmail.com:
> Till I upgraded my 9front I was using a fossil server (from9legacy) on my 9front FreeBSD Bhyve system, probably 9front release Emailschaden.
> 
> Now it doesn't work anymore. Remaking the programs did not help either. The fossil server now hangs immediately after start. Neither file nor console service nodes are created.
> 
> Are there any other users of this combi?

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-M46c996472dad8a7ddc13844c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-12 19:42 [9fans] 9front: fossil broken in Humanbiologics rel wb.kloke
                   ` (3 preceding siblings ...)
  2023-12-12 21:44 ` ori
@ 2023-12-12 21:49 ` cinap_lenrek
  2023-12-13 17:36   ` wb.kloke
  4 siblings, 1 reply; 12+ messages in thread
From: cinap_lenrek @ 2023-12-12 21:49 UTC (permalink / raw)
  To: 9fans

i tried it, downloading 9legacy, compiling fossil and
using the following script from ori to format a fossil
file-system:

ori → http://okturing.com/src/17908/body <-- there's the script

and fossil successfully starts up and is mounted:

term% cat fossiltest.rc 
#!/bin/rc


fossil/flfmt $1
fossil/conf -w $1 <<EOF
        fsys main config
        fsys main open -AWP
        fsys main
        create /active/adm adm sys d775
        create /active/adm/users adm sys 664
        users -w
        srv -p fscons.test
        srv fossil.test
EOF
fossil/fossil -f $1
mount -c /srv/fossil.test /n/fossil

term% dd -if /dev/zero -bs 1kk -count 100 > /tmp/test.fossil
100+0 records in
100+0 records out
term% ./fossiltest.rc /tmp/test.fossil 
fs file is mounted via devmnt (is not a kernel device); are you sure? [y/n]: y
fsys: dialing venti at net!$venti!venti
warning: connecting to venti: cs: file does not exist: '/lib/ndb/dnschallenge.ip'
        nuser 5 len 84
term% ls /n/fossil
/n/fossil/adm
term% du -a /n/fossil
1       /n/fossil/adm/users
1       /n/fossil/adm
1       /n/fossil

--
cinap

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-M5faadbe20043e8e93b23e61e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-12 21:49 ` cinap_lenrek
@ 2023-12-13 17:36   ` wb.kloke
  2023-12-14  4:05     ` Noam Preil
  0 siblings, 1 reply; 12+ messages in thread
From: wb.kloke @ 2023-12-13 17:36 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]

Thank you for looking  after my problem.

As  Ori asked, here is a stack trace from the probably hanging thread. 

/proc/504/text:amd64 plan 9 executable
/sys/lib/acid/port
/sys/lib/acid/amd64
acid: lstk()
pread(a0=0x4)+0xe /sys/src/libc/9syscall/pread.s:6
read(buf=0x44f158,n=0x4)+0x27 /sys/src/libc/9sys/read.c:7
readn(n=0x4,f=0x4,av=0x44f158)+0x42 /sys/src/libc/port/readn.c:13
a=0x44f158
t=0x0
read9pmsg(abuf=0x44f158,fd=0x4,n=0xfefefefe00004018)+0x25 /sys/src/libc/9sys/read9pmsg.c:14
buf=0x44f158
len=0x44eeb8
msgRead(v=0x436c40)+0x71 /sys/src/cmd/fossil/9proc.c:364
con=0x436c40
fd=0x4
eof=0x436c4000000000
m=0x44eeb8
n=0x4fefefefe
launcheramd64(arg=0x436c40,f=0x2063dd)+0x10 /sys/src/libthread/amd64.c:11
0xfefefefefefefefe ?file?:0


The n parameter in read9pmsg() looks weird.

FYI, I also add the fossil  conf :

fsys main config
fsys main open
fsys main
venti 192.168.44.16
srv -p fscons
srv fossil
listen tcp!*!9fs
srv -AWP fossilAWP

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-M4643c53922c416995cac216f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 2324 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-13 17:36   ` wb.kloke
@ 2023-12-14  4:05     ` Noam Preil
  2023-12-14 14:43       ` wb.kloke
  0 siblings, 1 reply; 12+ messages in thread
From: Noam Preil @ 2023-12-14  4:05 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 415 bytes --]

I run venti+fossil off of 9front git without issues (well, without issues caused by 9front ;).

Can you give a full stack trace of all threads? Happy to take a look :)

- Noam Preil

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-Mdb07f7bd2a0bf83b4af51a8e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1166 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-14  4:05     ` Noam Preil
@ 2023-12-14 14:43       ` wb.kloke
  2023-12-14 17:46         ` Noam Preil
  0 siblings, 1 reply; 12+ messages in thread
From: wb.kloke @ 2023-12-14 14:43 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

I have put a file containing the 4 lstk of 4 threads at http://pkeus.de/~wb/threads.lstk

In the meantime, I tried to use an older 9front 9pc64 kernel, but this didn't help either. 
Unfortunately, I did not make a snapshot before the last sysupdate. 

The next thing I try ,is setting up a fresh clean VM from  a distribution iso : i will report whether this fixes the problem. 
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-M660826ddd0ce515c4b830b66
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1251 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-14 14:43       ` wb.kloke
@ 2023-12-14 17:46         ` Noam Preil
  2023-12-14 22:31           ` wb.kloke
  0 siblings, 1 reply; 12+ messages in thread
From: Noam Preil @ 2023-12-14 17:46 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]

Looks like it's hanging waiting for a response from venti; are you able to connect to venti directly? Did your venti or fossil config change recently? I'm not aware of recent changes to upstream venti that could cause this, but it's certainly possible, and venti and fossil are both fragile enough that i can imagine recent libc changes breaking them.

This also explains why Ori and Cinap experienced no issues, since their tests did not involve venti connections.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-Mf3cc3500a17468c2f39f3793
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 1390 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-14 17:46         ` Noam Preil
@ 2023-12-14 22:31           ` wb.kloke
  2023-12-15 14:13             ` wb.kloke
  0 siblings, 1 reply; 12+ messages in thread
From: wb.kloke @ 2023-12-14 22:31 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

The venti server is in active use, e.g. for providing my backups via vacfs and vnfs on FreeBSD. 
I even checked that a 2nd fossil (this time on a Raspberry Pi4)  is working. 
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-Mdd0932708cd8f85aea062b2b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 927 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [9fans] 9front:  fossil broken in Humanbiologics rel.
  2023-12-14 22:31           ` wb.kloke
@ 2023-12-15 14:13             ` wb.kloke
  0 siblings, 0 replies; 12+ messages in thread
From: wb.kloke @ 2023-12-15 14:13 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

Solved. 

Noam was right. Restarting venti made the thing working again.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tac8d983292c826c1-M4bb44f64e1443090796ea9ae
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 825 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-12-15 14:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-12 19:42 [9fans] 9front: fossil broken in Humanbiologics rel wb.kloke
2023-12-12 21:04 ` ori
2023-12-12 21:10 ` cinap_lenrek
2023-12-12 21:21 ` ori
2023-12-12 21:44 ` ori
2023-12-12 21:49 ` cinap_lenrek
2023-12-13 17:36   ` wb.kloke
2023-12-14  4:05     ` Noam Preil
2023-12-14 14:43       ` wb.kloke
2023-12-14 17:46         ` Noam Preil
2023-12-14 22:31           ` wb.kloke
2023-12-15 14:13             ` wb.kloke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).