WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Error messages in /tmp/forklog.txt  (Read 1700 times)

Offline mortegai

  • Jr. Member
  • **
  • Posts: 54
Error messages in /tmp/forklog.txt
« on: November 15, 2020, 02:30:05 AM »
Some error messages appear in the tce-bootload log (python script that loads the extensions on boot):
Code: [Select]
OS Error code libn:4352
Successful Retry on libn
OS Error code flwm:4352
Successful Retry on flwm
OS Error code xz.t:4352
Successful Retry on xz.t
OS Error code icu.:4352
OS Error code cair:4352
OS Error code icu.:4352
Successful Retry on cair
OS Error code libe:4352
OS Error code dbus:4352
Successful Retry on icu.
Successful Retry on dbus
Successful Retry on libe
...

1) a minor problem: the name of the extension is cut off. The problem is that in the call to mount_extension the second parameter should be p[:-4]:
Code: [Select]
mount_extension('sudo /usr/bin/mount -t squashfs -o loop ' + sys.argv[1] + '/optional/' + p + ' ' + root + '/tmp/tcloop/' + p[:-4], p[-:4])

2) and the main thing: why the 4352 errors occur and what do they mean? Then the extension mounting is retried and performed successfully.


Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: Error messages in /tmp/forklog.txt
« Reply #1 on: November 15, 2020, 04:54:53 AM »
Not sure what the error code means, it would take some time to lookup.  But that’s why it retries.

I’ve never seen that many retries.   What kind of pi is this?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Error messages in /tmp/forklog.txt
« Reply #2 on: November 15, 2020, 05:12:25 AM »
Hi Paul_123
Is the error  5  or  4352 ?  Error  5  is an I/O error. Maybe a failing or temperamental memory card.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: Error messages in /tmp/forklog.txt
« Reply #3 on: November 15, 2020, 05:32:03 AM »
4352, it’s the return code from os.system, which in this case is calling mount.


Offline mortegai

  • Jr. Member
  • **
  • Posts: 54
Re: Error messages in /tmp/forklog.txt
« Reply #4 on: November 15, 2020, 06:34:38 AM »
I’ve never seen that many retries.   What kind of pi is this?
It's a Pi 4 with 4 Gb.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: Error messages in /tmp/forklog.txt
« Reply #5 on: November 15, 2020, 06:47:50 AM »
Hi Paul_123
My apologies, I misread  OS Error code  as  05 Error code.

Error code  4352  is  error 17 File exists.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1063
Re: Error messages in /tmp/forklog.txt
« Reply #6 on: November 15, 2020, 08:00:07 AM »
Not sure what file exist would mean in a mount command.   It succeeds in the immediate retry.

The os.system errors have increased with newer kernels.   Back when I first did the forking back in the 4.4 kernel days. I never had retries even programmed.  Even with the retries, the boot speed is significantly faster than a non forking environment.

Offline mortegai

  • Jr. Member
  • **
  • Posts: 54
Re: Error messages in /tmp/forklog.txt
« Reply #7 on: November 16, 2020, 01:11:52 AM »
Yes, boot time is pretty good.
I was just curious to know the cause of those errors and if eliminating them could improve boot time even more.