Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[Zgemma H9S SE] Flash restore crashing due to non-default mounts

lincsat

ViX Beta Tester
Joined
May 3, 2011
Messages
871
Reaction score
19
Points
18
This is a long standard problem which has happened with various ZGemma boxes over a period of time.

Basically a flash/restore crashes at the restore plugins stage. If I then setup the mounts and restore again, then it restores OK. If I flash without a restore, then manually setup the mounts and then do the restore, it restores OK

I setup mounts as /dev/mmcblk1p1 as /media/hdd and /dev/sda1 as /media/usb The image flash defaults the MMC as MMC and the USB as HDD

I have attached the crash log
 

Attachments

I have attached the crash log
The line producing the problem is this horror:

Code:
[FONT=monospace][COLOR=#000000]for dir in ["/media/%s/%s" % (media, self.plugfile) for media in listdir("/media/") if path.isdir(path.join("/media/", media)) and path.exists("/media/%s/%s" % (media, self.plugfile))]:[/COLOR]
[/FONT]
It seems to be producing a dir for which there is no media defined, and media is used on the next line (where the "not defined" happens).

Not obvious from that line where it goes wrong.
 
The line producing the problem is this horror:

Code:
[FONT=monospace][COLOR=#000000]for dir in ["/media/%s/%s" % (media, self.plugfile) for media in listdir("/media/") if path.isdir(path.join("/media/", media)) and path.exists("/media/%s/%s" % (media, self.plugfile))]:[/COLOR]
[/FONT]
It seems to be producing a dir for which there is no media defined, and media is used on the next line (where the "not defined" happens).

Not obvious from that line where it goes wrong.
It is not crashing on that line.

Code:
# crashes here...
if media not in ("autofs", "net"):  # noqa: F821

Looks like a namespace problem in the latest version of python.
 
Probably like this...
Code:
for dir, media in [("/media/%s/%s" % (x, self.plugfile), x) for x in listdir("/media/") if path.isdir(path.join("/media/", x)) and path.exists("/media/%s/%s" % (x, self.plugfile))]:
 
Yeah, namespace problem for sure...
Code:
>>> [media for media in listdir("/media/")]
['autofs', 'hdd', 'usb']
>>> media
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'media' is not defined
>>>
 
This is a long standard problem which has happened with various ZGemma boxes over a period of time.

Basically a flash/restore crashes at the restore plugins stage. If I then setup the mounts and restore again, then it restores OK. If I flash without a restore, then manually setup the mounts and then do the restore, it restores OK

I setup mounts as /dev/mmcblk1p1 as /media/hdd and /dev/sda1 as /media/usb The image flash defaults the MMC as MMC and the USB as HDD

I have attached the crash log
Setup your mounts correctly as you want, then run a settings backup. After that udev should always keep the mounts that way.
 
Setup your mounts correctly as you want, then run a settings backup. After that udev should always keep the mounts that way.

It doesn't, that's the problem, the flash/restore crashes
 
Ok, file attached. So you need to send that fie to the box and reboot before running FIW.
 

Attachments

h9s box will not online update from 6.6.13 to 6.7.01,03.04,05 downloads ,then halfway through flash stops and red unableto load rootives ect reastore backup .....download by usb works,remove download usb,go throug basic settings,replace original box usb,load plugins yes ,e2 setting ..no,,,,vix backup from 6.6.13.from usb..yes.box working lan and sats by positioner....before this boxwent crasy, tuner locked on lnb 69 and no power to lnb ,resets by reboot did not sort,but the total reset by usb seam have fixed ???
 
Ok, file attached. So you need to send that fie to the box and reboot before running FIW.

OK, flashed image, copied new file and rebooted then did the restore. The restore did appear to restore settings and plugins and reset the mounts but still crashes. Even after the crash and checking of the mounts it crashed again when running the restore
 

Attachments

h9s box will not online update from 6.6.13 to 6.7.01,03.04,05 downloads ,then halfway through flash stops and red unableto load rootives ect reastore backup .....download by usb works,remove download usb,go throug basic settings,replace original box usb,load plugins yes ,e2 setting ..no,,,,vix backup from 6.6.13.from usb..yes.box working lan and sats by positioner....before this boxwent crasy, tuner locked on lnb 69 and no power to lnb ,resets by reboot did not sort,but the total reset by usb seam have fixed ???

Read this…..https://www.world-of-satellite.com/showthread.php?67038-Want-to-update-to-latest-image-from-6-4-009-via-image-manager
 
OK, flashed image, copied new file and rebooted then did the restore. The restore did appear to restore settings and plugins and reset the mounts but still crashes. Even after the crash and checking of the mounts it crashed again when running the restore

I am assuming you have an IPK folder on the disk defined by you as HDD (mmcblk1p1)?
Because its only just restored the fstab (but no reboot) the sdcard is still mounted as /media/mmc/mmcblk1p1 ?, whereas the plugin restore is looking for media/hdd/IPK or whatever the IPK folder is called
 
Last edited:
The ipk folder is on the USB, set as /mount/usb/ those plugins did appear to be installed after the crash. I can try putting the ipk's on the MMC and try the flash/restore later

MMC card did get mounted as /media/hdd
 
The ipk folder is on the USB, set as /mount/usb/ those plugins did appear to be installed after the crash. I can try putting the ipk's on the MMC and try the flash/restore later

MMC card did get mounted as /media/hdd

Thanks…..yes after reboot the new fstab is in use, so expect your mounts to be restored.
 
i have 2 h9s boxes one has internal wlan the other has 2 external antenas at back of box,the 2 antena box did have the red warning as per box one but has not had loads of problems that box 1 had,never looked for sd card socket.
 
Thanks…..yes after reboot the new fstab is in use, so expect your mounts to be restored.

Yes, mounts restored and apparently all the plugins, but did still crash
 
As an update, changing the IPK folder from my USB to the MMC (mounted as /media/hdd) does cure the issue when using the new RestoreWizard file. If using the USB for the IPK files, it still crashes
 

OpenViX Feeds Status

Back
Top