WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tce startup bug + work around  (Read 4384 times)

Offline cst

  • Newbie
  • *
  • Posts: 6
tce startup bug + work around
« on: July 02, 2011, 02:48:39 PM »
hi,

i think, i found a bug during startup: only a specific amount of tcz-extensions will be loaded. i attached my onboot.lst. well, everything starting at putty.tcz is not usable, because it's not copied into ram, buuuuuut listet in /usr/local/tce.installed/. i guess theres a bug?!? i did a workaround (script attachet, too), does anybody know the problem as well?

/cst

btw, i'm sorry for my horrible english.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: tce startup bug + work around
« Reply #1 on: July 02, 2011, 03:31:00 PM »
If you boot with "showapps pause", is there anything interesting listed around putty?
The only barriers that can stop you are the ones you create yourself.

Offline cst

  • Newbie
  • *
  • Posts: 6
Re: tce startup bug + work around
« Reply #2 on: July 02, 2011, 03:57:25 PM »
it's not able to load libcap.so.2, but i used appbrowser to add packages, checked depencies, md5's and everything looks fine. maybe a photo could help: http://www.youfile.net/download.php?file=ede857f01df6eb11ed93cca47e4430bc

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: tce startup bug + work around
« Reply #3 on: July 02, 2011, 04:06:39 PM »
Coreutils seems broken, thanks for reporting. For time being remove coreutils.tcz from your onboot list.
The only barriers that can stop you are the ones you create yourself.

Offline cst

  • Newbie
  • *
  • Posts: 6
Re: tce startup bug + work around
« Reply #4 on: July 02, 2011, 04:20:05 PM »
affirmative, without coreutils it'll work.
thanks, curaga!

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: tce startup bug + work around
« Reply #5 on: July 03, 2011, 12:17:22 AM »
it's not able to load libcap.so.2

Was the libcap extension loaded?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: tce startup bug + work around
« Reply #6 on: July 03, 2011, 03:52:28 AM »
Sorry Juanito, my initial guess was wrong. It's due to tce-setup's optimization of not doing ldconfig for every extension, coreutils is fine.
The only barriers that can stop you are the ones you create yourself.

Offline cst

  • Newbie
  • *
  • Posts: 6
Re: tce startup bug + work around
« Reply #7 on: July 03, 2011, 08:09:12 AM »
@juanito:
yope, i put libcap.tcz on top of list, but that didn't change anything. the message belongs defendly to coreutils' "ls" (i need ls from coreutils -> utf8). after starting with "showapps pause": everything goes fine, but when coreutils.tcz has been loaded, the error message appears...  ls was not able to load shared lib libcap.so.2.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: tce startup bug + work around
« Reply #8 on: July 03, 2011, 08:13:25 AM »
After loading coreutils, try:
Code: [Select]
$ sudo ldconfig
Or alternatively, load the libcap extension and then load the coreutils extension separately.

Offline cst

  • Newbie
  • *
  • Posts: 6
Re: tce startup bug + work around
« Reply #9 on: July 03, 2011, 08:18:04 AM »
@juanito
i did it this way:
- removed coreutils.tcz from list
- added tce-load -i .../optional/corutils.tcz to bootlocal.sh

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: tce startup bug + work around
« Reply #10 on: July 03, 2011, 08:22:56 AM »
"tce-load" should not be run as root and all commands in bootlocal.sh are run as root - I'm surprised you didn't get an error message (but am not at a tc machine to test).

Offline cst

  • Newbie
  • *
  • Posts: 6
Re: tce startup bug + work around
« Reply #11 on: July 03, 2011, 08:27:31 AM »
don't worry, uid 0 / root doesn't call tce-load directly. i'm using the "su tc ..." at bootlocal.sh to run tce-load as normal user.

@[any mod]
please, be nice enough to move this thread to tcb bug section - were my fault to drop it here, cos i was not sure it's a bug or not, but it's one.
« Last Edit: July 03, 2011, 08:31:06 AM by cst »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: tce startup bug + work around
« Reply #12 on: July 03, 2011, 08:41:49 AM »
It is important to note that the user has control of the order of loading application extensions.
So per the OP's suggested fix, the easier, temporary, fix is to move coreutils.tcz to the bottom of your onboot.lst.`

Use AppsAudit OnBoot Maintenace or your favorite text editor.

Caveat is if the extension is a dependent. Then the problem would still exist.

The fix to support the recent change in to coreutils.tcz is quite simple and will be addressed.
« Last Edit: July 03, 2011, 09:41:02 AM by roberts »
10+ Years Contributing to Linux Open Source Projects.