@qxstyles Migrace updateru je právě to, co se z nějakého důvodu nepovedlo. Začala se objevovat chyba ve Fortisu:
Error from 2017/08/19 03:43:45
Migration to updater-ng failed: First run on updater-ng exited with error:
unreachable: /tmp/crl.pem: No such file or directory
Kontaktoval jsem podporu, ta mi po týdnu odpověděla:
Vypadá to, že po restartu routeru dlouho trvá než váš router dostane přípojení k internetu. V mezidobí migrace selže. Nikdy se tak u vás nedokončí a pohybujete se tak mezi starým a novým updaterem. Pro opravu prosím spusťte migraci ručně pomocí příkazu:
updater-migrate.sh
Tak jsem ho spustil, následuje výpis
root@turris:~# updater-migrate.sh
+ BATCH=
+ STATE_DIR=/tmp/update-state
+ LOCK_DIR=/tmp/update-state/lock
+ date +%s
+ LOCK_TIME=1504336994
+ test -d /tmp/update-state/lock
+ mkdir -p /tmp/update-state
+ mkdir /tmp/update-state/lock
+ cat /dev/null
+ echo startup
+ echo 6910
+ trap trap_handler EXIT INT QUIT TERM ABRT
+ migration_performed
+ grep -q -e -- Auto-migration performed /etc/updater/auto.lua
+ echo Updater migration already performed
+ logger -t daemon.info
+ echo Updater migration already performed
Updater migration already performed
+ pkgupdate --state-log
WARN:Script revision-specific not found, but ignoring its absence as requested
WARN:Script serial-specific not found, but ignoring its absence as requested
line not found
line not found
line not found
line not found
line not found
line not found
DIE:
inconsistent: Package kmod-fs-9p requires package kmod-9pnet that is not available.
Aborted
+ updater_fail Prvotní běh updater-ng skončil s chybou First run on updater-ng exited with error
+ [ -s /tmp/update-state/last_error ]
+ cat /tmp/update-state/last_error
+ ERROR=
inconsistent: Package kmod-fs-9p requires package kmod-9pnet that is not available.
+ create_notification -s error Migrace na updater-ng selhala: Prvotní běh updater-ng skončil s chybou:
inconsistent: Package kmod-fs-9p requires package kmod-9pnet that is not available. Migration to updater-ng failed: First run on updater-ng exited with error:
inconsistent: Package kmod-fs-9p requires package kmod-9pnet that is not available.
+ cat /tmp/update-state/state
+ [ error != error ]
+ exit 1
+ trap_handler
+ rm -rf /tmp/update-state/lock /tmp/update-state/pid
+ exit 1
Aktualizoval jsem tedy seznam balíčků a zkusil nainstalovat kmod-9pnet ručně.
root@turris:~# opkg install kmod-9pnet
Unknown package 'kmod-9pnet'.
Collected errors:
* opkg_install_cmd: Cannot install package kmod-9pnet.
Dle návodu na Migrace Turrisu 1.x na novou verzi updateru ve verzi Turris OS 3.7 [Turris wiki] jsem smazal soubor /etc/updater/auto.lua a znovu spustil updater-migrate.sh s následujícímvýstupem:
root@turris:~# updater-migrate.sh
+ BATCH=
+ STATE_DIR=/tmp/update-state
+ LOCK_DIR=/tmp/update-state/lock
+ date +%s
+ LOCK_TIME=1504338813
+ test -d /tmp/update-state/lock
+ mkdir -p /tmp/update-state
+ mkdir /tmp/update-state/lock
+ cat /dev/null
+ echo startup
+ echo 23468
+ trap trap_handler EXIT INT QUIT TERM ABRT
+ migration_performed
+ grep -q -e -- Auto-migration performed /etc/updater/auto.lua
grep: /etc/updater/auto.lua: No such file or directory
+ echo -n
+ 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 --exclude=getbranch-test --exclude=getbranch-master --exclude=getbranch-deploy --exclude=kmod-fs-9p
WARN:Script revision-specific not found, but ignoring its absence as requested
WARN:Script serial-specific not found, but ignoring its absence as requested
There are the extra packages I'll put into /etc/updater/auto.lua:
• ar3k-firmware
• ath9k-htc-firmware
• brcmfmac-firmware-usb
• ca-certificates
• carl9170-firmware
• collectd-mod-apache
• collectd-mod-conntrack
• collectd-mod-cpu
• collectd-mod-csv
• collectd-mod-disk
• collectd-mod-dns
• collectd-mod-email
• collectd-mod-filecount
• collectd-mod-iptables
• collectd-mod-irq
• collectd-mod-memory
• collectd-mod-ping
• collectd-mod-processes
• collectd-mod-protocols
• collectd-mod-syslog
• collectd-mod-tcpconns
• collectd-mod-thermal
• collectd-mod-uptime
• collectd-mod-wireless
• iwl3945-firmware
• iwl4965-firmware
• kmod-sched-connmark
• libertas-sdio-firmware
• libertas-spi-firmware
• libertas-usb-firmware
• luci-app-access-control
• luci-app-qos
• luci-app-vnstat
• luci-app-watchcat
• luci-i18n-ntpc-cs
• luci-i18n-ntpc-en
• luci-i18n-wshaper-cs
• luci-i18n-wshaper-en
• mc
• mt7601u-firmware
• mwifiex-pcie-firmware
• mwl8k-firmware
• mysql-server
• nano
• openvpn-easy-rsa
• r8169-firmware
• rt2800-pci-firmware
• rt2800-usb-firmware
• rt61-pci-firmware
• rt73-usb-firmware
• rtl8192ce-firmware
• rtl8192cu-firmware
• rtl8192de-firmware
• rtl8192se-firmware
Press return to continue, CTRL+C to abort
+ pkgupdate --state-log
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:Requested package luci-app-access-control that is missing, ignoring as requested.
WARN:Couldn't load flags: cannot open /usr/share/updater/flags: No such file or directory
INFO:Queue install of updater-ng/turris/58.4.6-1
INFO:Queue install of userlists/turris/6
INFO:Queue install of foris-l10n-cs/turris/94.2-1
INFO:Queue install of foris-diagnostics-plugin-l10n-cs/turris/6-1
INFO:Queue install of foris-openvpn-plugin-l10n-cs/turris/12-1
INFO:Queue install of foris-tls-plugin-l10n-cs/turris/9-2
INFO:Queue install of qos-scripts/turris/1.2.1-7
INFO:Queue install of uclibcxx/turris/0.2.4-1
INFO:Queue install of libmysqlclient/turris/5.1.73-2
INFO:Queue install of bind-libs/turris/9.10.5-P2-1
INFO:Queue install of bind-client/turris/9.10.5-P2-1
INFO:Queue install of bind-dig/turris/9.10.5-P2-1
INFO:Queue install of kmod-usb-wdm/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-usb-net-qmi-wwan/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of uqmi/turris/2015-09-09-c61815319c1c0e76898048a19151f30844a6989c
INFO:Queue install of libacl/turris/20160519-1
INFO:Queue install of acl/turris/20160519-1
INFO:Queue install of attr/turris/20160302-1
INFO:Queue install of badblocks/turris/1.42.12-1
INFO:Queue install of cfdisk/turris/2.29.2-1
INFO:Queue install of kmod-dm/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of libdevmapper/turris/2.02.145-1
INFO:Queue install of lvm2/turris/2.02.145-1
INFO:Queue install of cryptsetup-openssl/turris/1.7.2-1
INFO:Queue install of libneon/turris/0.30.0-2
INFO:Queue install of davfs2/turris/1.5.4-2
INFO:Queue install of libmagic/turris/5.25-1
INFO:Queue install of file/turris/5.25-1
INFO:Queue install of fuse-utils/turris/2.9.3-2
INFO:Queue install of hfsfsck/turris/332.25-1
INFO:Queue install of kmod-ata-core/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-ata-ahci/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-authenc/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-cbc/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-wq/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-rng/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-iv/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-seqiv/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-ctr/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-ccm/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-cmac/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-deflate/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-cryptodev/turris/3.18.63+1.8-mpc85xx-2
INFO:Queue install of kmod-crypto-null/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-sha512/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-user/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-gf128/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of kmod-crypto-xts/turris/3.18.63+0-1-1ac1f353df888f6a08f1362f0631fbf3-0
INFO:Queue install of losetup/turris/2.29.2-1
INFO:Queue install of lsblk/turris/2.29.2-1
INFO:Queue install of luci-i18n-minidlna-cs/turris/git-17.125.68803-99f44f6-1
INFO:Queue install of luci-i18n-minidlna-en/turris/git-17.125.68803-99f44f6-1
INFO:Queue install of luci-i18n-samba-cs/turris/git-17.125.68803-99f44f6-1
INFO:Queue install of luci-i18n-samba-en/turris/git-17.125.68803-99f44f6-1
INFO:Queue install of mkhfs/turris/332.25-1
INFO:Queue install of mountd/turris/0.1-6
INFO:Queue install of mount-utils/turris/2.29.2-1
INFO:Queue install of partx-utils/turris/2.29.2-1
INFO:Queue install of resize2fs/turris/1.42.12-1
INFO:Queue install of rsync/turris/3.1.2-1
INFO:Queue install of rsyncd/turris/3.1.2-1
INFO:Queue install of samba36-client/turris/3.6.25-6
INFO:Queue install of sfdisk/turris/2.29.2-1
INFO:Queue install of smartd/turris/6.5-1
INFO:Queue install of smartmontools/turris/6.5-1
INFO:Queue install of sshfs/turris/2.5-2
INFO:Queue install of swap-utils/turris/2.29.2-1
INFO:Queue install of liblzma/turris/5.2.2-1
INFO:Queue install of xz-utils/turris/5.2.2-1
INFO:Queue install of xz/turris/5.2.2-1
INFO:Queue install of tar/turris/1.29-2
INFO:Queue install of transmission-daemon-openssl/turris/2.92-3
INFO:Queue install of tune2fs/turris/1.42.12-1
INFO:Queue install of mjpg-streamer/turris/r182-9
INFO:Queue install of luci-app-mjpg-streamer/turris/git-17.125.68803-99f44f6-1
INFO:Queue install of sqm-scripts/turris/1.0.7-1
INFO:Queue install of luci-app-sqm/turris/1.0.7-1
INFO:Queue removal of luci-app-access-control
INFO:Queue removal of kmod-crypto-core
INFO:Queue removal of coova-chilli
INFO:Queue removal of kmod-ipt-nathelper
INFO:Queue removal of updater-migrate
INFO:Queue removal of userspace_time_sync
INFO:Queue removal of updater-consolidator
INFO:Queue removal of updater-deps
INFO:Queue removal of updater
INFO:Queue removal of libevent
INFO:Queue removal of kmod-fs-9p
Press return to continue, CTRL+C to abort
INFO:Executing preupdate hooks...
line not found
line not found
line not found
line not found
DIE:
[string "transaction"]:345: Unfinished journal exists
Aborted
+ updater_fail Prvotní běh updater-ng skončil s chybou First run on updater-ng exited with error
+ [ -s /tmp/update-state/last_error ]
+ cat /tmp/update-state/last_error
+ ERROR=
[string "transaction"]:345: Unfinished journal exists
+ create_notification -s error Migrace na updater-ng selhala: Prvotní běh updater-ng skončil s chybou:
[string "transaction"]:345: Unfinished journal exists Migration to updater-ng failed: First run on updater-ng exited with error:
[string "transaction"]:345: Unfinished journal exists
+ cat /tmp/update-state/state
+ [ error != error ]
+ exit 1
+ trap_handler
+ rm -rf /tmp/update-state/lock /tmp/update-state/pid
+ exit 1
To vše jsem podpoře nahlásil, ale podpora nepodporuje, i když stěrače stírají a klakson klaksonuje.
K vašemu návodu: zřejmě jste chtěl odkázat na tuto stránku dokumentace: Obnova systému a zavaděče z microSD karty [Turris wiki] a ne na migraci updateru. Pracuji v Arch Linuxu, takže by to neměl být problém. Vyzkouším dnes večer.
@Nones Router mám asi rok a půl, zapnutý samozřejmě 24/7, veřejná IP, prostě dodržení všech podmínek smlouvy. Migrace na nový updater už kdysi dávno proběhla automaticky. IMHO se něco totálně podělalo při poslední aktualizaci. Dosud fungoval modrásek na 100 %. Pravda, že s ním moc neexperimentuji, mám doma dva puberťáky, kteří se bez internetu neobejdou :-). Běží na něm blokace reklam, nějaké skriptíky na ovládání LED, jsou k němu připojené dva USB disky a vložena MicroSD karta.