Migrace updater na Turrisu HW verze 1.x

Víceméně náhodou jsem narazil na nový článek v dokumentaci…
migrace updateru. čtěte, pište…

zmigrováno a zatím se to zdá být OK

U mě průs… :disappointed:

Delivery to the following recipient failed permanently:

 tech-support@turris.cz

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain turris.cz by mail.nic.cz. [2001:1488:800:400::400].

The error that the other server returned was:
550 5.1.1 tech-support@turris.cz: Recipient address rejected: User unknown in local recipient table

tech.support@turris.cz

tohle šlo pryč:

INFO:Queue removal of updater-deps
INFO:Queue removal of libmysqlclient
INFO:Queue removal of userspace_time_sync
INFO:Queue removal of updater-consolidator
INFO:Queue removal of updater
INFO:Queue removal of coova-chilli

tady potom jedna chybka:

INFO:Executing preupdate hooks…
WARN:Config file /etc/config/updater modified by the user. Backing up the new on e into /etc/config/updater-opkg
Output from luci-app-sqm.postinst:
uci: Parse error (invalid command) at line 92, byte 4
INFO:Executing postupdate hooks…

a teď už jen tohle :

updater.sh
WARN:Script revision-specific not found, but ignoring its absence as requested
WARN:Script serial-specific not found, but ignoring its absence as requested
WARN:Lock on //var/lock/opkg.lock released by garbage collector

tak uvidíme až bude automatický update :slight_smile:

ale je pravada, že při aktualizaci na 3.3 jsem musel udělat obnovu z SD a přechod na UBIFS, páč se mi celý Turris zbořil a aktualizace se pokoušela dělat pořád dokola …

Jo, u mě stejné, už jsem to tam psal…
EDIT: veškeré problémy vyřešil restart, už je vše v pořádku…

Také mi již updater.sh vyhazuje chyby:

WARN:Script revision-specific not found, but ignoring its absence as requested
WARN:Script serial-specific not found, but ignoring its absence as requested
WARN:Lock on //var/lock/opkg.lock released by garbage collector

Během instalace vyskočilo akorát:
WARN:Config file /etc/config/updater modified by the user. Backing up the new one into /etc/config/updater-opkg
Output from luci-app-sqm.postinst:
uci: Parse error (invalid command) at line 92, byte 4
INFO:Executing postupdate hooks…

Reset nepomáhá :frowning:

WARN: máme ignorovat… To není chyba…

Sděluji, že u mne (TurrisOS 3.5) až na pár warningů proběhl upgrade updateru úspěšně.

Update proběhl v pořádku, updater.sh -n také a echo $? ukázalo 0. Takže já do toho šťourat nebudu :slight_smile:

Log: Turris 1.1 migrace updateru - Pastebin.com

DIE:
[string “transaction”]:310: [string “transaction”]:143: Collisions:
• /etc/config/updater: updater-ng (new), updater (existing)
• /usr/bin/updater-wipe.sh: updater-ng (new), updater (existing)
• /usr/bin/updater-unstuck.sh: updater-ng (new), updater (existing)
• /etc/init.d/updater: updater-ng (new), updater (existing)
• /usr/bin/updater.sh: updater-ng (new), updater (existing)
• /etc/ssl/updater.pem: updater-ng (new), updater (existing)
Aborted

Vyřešil jsem přes: opkg remove updater --force-removal-of-dependent-packages

Pak jsem zkoušel znovu updater-migrate.sh (to psalo, že to proběhlo) a tak jsem ještě jednou raději provedl: opkg update a updater.sh nebyl nalezený, tak jsem ho nainstaloval přes opkg installl updater-ng (log: Turris 1.1 opkg remove updater - Pastebin.com )

Spustil jsem updater.sh a log: Turris 1.1 updater.sh - Pastebin.com

– snip –

Output from fontconfig.postinst:
/usr/share/fonts: failed to write cache
/usr/share/fonts/ghostscript: failed to write cache
/usr/share/fonts/ghostscript/fonts: failed to write cache
/usr/share/fonts: failed to write cache
/usr/share/fonts/ghostscript: failed to write cache
/usr/share/fonts/ghostscript/fonts: failed to write cache
Output from ghostscript-fonts-std.postinst:
/usr/share/fonts: failed to write cache
/usr/share/fonts/ghostscript: failed to write cache
/usr/share/fonts/ghostscript/fonts: failed to write cache
Output from ghostscript-gnu-gs-fonts-other.postinst:
/usr/share/fonts: failed to write cache
/usr/share/fonts/ghostscript: failed to write cache
/usr/share/fonts/ghostscript/fonts: failed to write cache
Output from luci-app-sqm.postinst:
uci: Parse error (invalid command) at line 92, byte 4

Znovu jsem spustil opkg update a updater.sh a už by to mělo být v pořádku:

root@turris:~# updater.sh
WARN:Script revision-specific not found, but ignoring its absence as requested
WARN:Script serial-specific not found, but ignoring its absence as requested
WARN:Lock on //var/lock/opkg.lock released by garbage collector

@Pepe, tohle by myslím zrovna stálo za to poslat na tech.support@turris.cz
Update updateru na updater-ng by správně mělo proběhnout na jeden běh toho shellovského scriptu

Měl jsem zmínit v příspěvku, že jsem v 17:16 jim to tam odeslal.

1 Like

Tak to jo! Pak je to v pořádku :+1:

1 Like

Kdepak asi udelali soudruzi z NDR chybu? Ze by problem ve zmene URL serveru?

root@turris:~# updater-migrate.sh

  • grep -q -e – Auto-migration performed /etc/updater/auto.lua
  • BATCH=
  • uci -q get updater.override.branch
  • true
  • BRANCH=
  • [ -z ]
    • sed -e s#.openwrt-repo/##;s#/.##
      grep ^src/gz.*/base$ /etc/opkg/distfeeds.conf
  • BRANCH=src
    • sed -e s/^omnia-//;s/^turris-//
      echo src
  • BRANCH=src
  • [ src = turris -o src = omnia ]
  • [ src ]
  • uci set updater.override=override
  • uci set updater.override.branch=src
  • uci commit updater
  • pkgmigrate --exclude=updater --exclude=updater-migrate --exclude=updater-deps --exclude=updater-consolidator --exclude=libelf --exclude=mtd-utils-flash-info --exclude=kmod-ipt-nathelper --exclude=6relayd --exclude=kmod-ipv6 --exclude=init-thermometer --exclude=kmod-crypto-aes --exclude=kmod-crypto-core --exclude=luci-i18n-czech --exclude=luci-i18n-english --exclude=coova-chilli --exclude=libevent --exclude=libmysqlclient --exclude=libncursesw --exclude=r8196-firmware --exclude=r8188eu-firmware --exclude=userspace_time_sync --exclude=foris-oldconfig
    WARN:Branch overriden to src
    line not found
    line not found
    line not found
    DIE:
    unreachable: https://api.turris.cz/updater-defs/3.5.2/turris/src/base.lua: curl: (22) The requested URL returned error: 404 Not Found

Aborted

Písněte jim to na email. Zminte tam updater a ozvou se dnes/zítra.
Mně odpověděli hned druhý den, protože jsem email posílal večer.

Ta adresa má být https://api.turris.cz/updater-defs/3.5.2/turris/rc/base.lua soudruzi z NDR se nejspíše upsali v definici adresáře, nejspíše má být všude ve skriptu rc ne src.

Primo v tom skriptu to neni, kdovi odkud to nacita.

Oprava 404 chyby.

uci -q set updater.override.branch=“rc”