WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: upgrade_tce.sh - how to use?  (Read 4871 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
upgrade_tce.sh - how to use?
« on: June 30, 2009, 03:48:34 AM »
Running on TC 2.1 upgrade_tce.sh looks for *.md5.txt files in directory defined by the $TCEDIR variable but it is empty and of course in / there are no any tce/tcz files, so it fails. When finished script advices to check /tmp/upgrade_errors.lst for more info but it is a zero length file.

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: upgrade_tce.sh - how to use?
« Reply #1 on: June 30, 2009, 09:14:35 AM »
You must boot:

base norestore nolocal text

As autoscan will seek your 'tce' directory and wil batch upgrade each extension that has an md5sum different from the repository.

An error report is generated at /tmp/upgrade_errors.lst

Typical errors include, extensions that are no longer in the repository, either renamed or removed.
Also possible but less likely are network/download errors. The error list should be reviewed for possible download of a renamed extension or possibly the removal of an extension no longer supported. The script can be rerun to solve network/download errors.

Note: That you can optionally specify the target extension directory by adding the usual tce=xxx/yyy boot option. This is possible as boot option 'base' trumps any 'tce=...' option. This must be specified if you named your tce directory something other than the default 'tce'
10+ Years Contributing to Linux Open Source Projects.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: upgrade_tce.sh - how to use?
« Reply #2 on: June 30, 2009, 10:43:58 AM »
Robert,

system is booted with requested options

base text nolocal norestore

and tce directory is /tce in the root of the USB drive system booted from. TC itself is stock installed 2.1


Regards,

Béla
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: upgrade_tce.sh - how to use?
« Reply #3 on: June 30, 2009, 11:58:59 AM »
usb typically require a waitusb=5 to allow time for device detection.
You could manually set /opt/.tce_dir
10+ Years Contributing to Linux Open Source Projects.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: upgrade_tce.sh - how to use?
« Reply #4 on: June 30, 2009, 12:28:51 PM »
waitusb was also applied. Will try to set up dir manually
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: upgrade_tce.sh - how to use?
« Reply #5 on: June 30, 2009, 03:31:21 PM »
Works for me, perhaps with such a shorter and therefore quicker boot, you need a longer duration in waitusb?
10+ Years Contributing to Linux Open Source Projects.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: upgrade_tce.sh - how to use?
« Reply #6 on: July 01, 2009, 04:21:14 PM »
Robert,

using waitusb=10 helped to recognize the proper tce directory on the USB stick. Just a side note, normal use of TC do not require any waitusb.

Update starts but stops after few extensions with an error message with no details what is the problem. /tmp/upgrade_error.lst is empty has zero length. (Please note the typo in the file name, error message refers to /tmp/upgrade_errors.lst)

Running script again path to tce dir is lost and resetted to /

See screen capture:



Regards,

Béla
« Last Edit: July 01, 2009, 04:23:26 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: upgrade_tce.sh - how to use?
« Reply #7 on: July 01, 2009, 05:18:31 PM »
Couple places to look...
Did pango upgrade complete? (Check md5sum and with repository)
What is the next extension after pango? (Should be alphabetic order)
What size it that extension?
What size is your /tmp directory.

Being ultra conservative, I do not download and overwrite any existing extenion unless successful. As such each is downloaded into /tmp, both the md5sum and actual extension. Then md5sum checked and if OK then it replaces the one in the tce directory and removed from tmp.

Also, I typically do not have to run as root, as both tmp/ and tce/ should be accessible to user tc.
But, on the otherhand, I don't see any fault in running as root, if the target filesystem does not support permissions.

10+ Years Contributing to Linux Open Source Projects.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: upgrade_tce.sh - how to use?
« Reply #8 on: July 02, 2009, 01:27:05 AM »
Hi,

pango.tcel upgraded correctly.

Next extension in /mnt/sdb1/tce in alphabetic order is patch.tce (37 kbyte) than perl5.tcel (11 Mbyte) followed by openssl-0.9.8h.tcel (917 kbyte)

Available space for / (therefore /tmp too) is 1.8 Gbyte

« Last Edit: July 02, 2009, 01:35:26 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: upgrade_tce.sh - how to use?
« Reply #9 on: July 05, 2009, 05:23:33 PM »
You had no errors. Bug found. Last line of script -n in test s/b -s Fixed in next cut.
10+ Years Contributing to Linux Open Source Projects.