Hi
I am using rytec import and I import from several countries.
The thing is, when I reboot my Vu+Duo2 with the latest OpenPLi-image, all the imported xml-data disappears.
Is there anyway of not loosing the data after reboot?
regards
Posted 26 July 2016 - 15:52
Yes.
The epg is stored in a file called epg.dat when enigma2 is shutdown. (properly)
Read our FAQ's about this subject.
This epg.dat file is stored normally on a hhd or USB drive. If you do not have these attached to your receiver, you may needed to change the location of the epg.dat. In our faq's it is described how to do that.
(do not store in /tmp/ on you receiver, as this folder is erased each time you reboot)
Willy
PS: Properly shutting down is done via the menu. Restart or shutdown. In this case an epg.dat file is written.
A reboot via a telnet session - although sometimes needed - is not a properly shutdown.
Edited by doglover, 26 July 2016 - 15:52.
~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)
Synology NAS
Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*
Posted 26 July 2016 - 16:19
If you need to reboot from the commandline, do a proper Enigma shutdown first via de command "init 4".
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Posted 28 July 2016 - 11:20
That depends.
EPG data (regardless of the source) is held in memory. When Enigma2 shuts down (properly), it writes it to a file called "epg.dat", and when Enigma2 starts, and this file exists, it will read it back and restore it.
There may be several reasons why this doesn't work:
- Enigma2 isn't shut down properly (using reboot, using kill, using the off switch at the back, pulling the power cord, power failure, etc).
- The epg.dat file is corrupt. This sometimes happens, but usually it's a one-off.
- The EPG import plugin is set to import on restart, and set to erase all current EPG data first.
- There is no room to store the epg data.
As to the last point, by default it writes to epg.dat file to /media/hdd. If your box doesn't have a harddisk, and doesn't have other storage mounted as hdd, it it points to flash, and depending on the box and other files installed, there might not be any room left for the file. If you want to move it to another location, stop Enigma using "init 4", edit "/etc/enigma2/settings", add or change this key: "config.misc.epgcache_filename=/media/usb/epg.dat" (my file is stored on usb), and after saving your changes, start Enigma again using "init 3".
If you just do a software update without a restart, EPG data is unaffected.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Posted 23 November 2016 - 00:35
That depends.
EPG data (regardless of the source) is held in memory. When Enigma2 shuts down (properly), it writes it to a file called "epg.dat", and when Enigma2 starts, and this file exists, it will read it back and restore it.
There may be several reasons why this doesn't work:
- Enigma2 isn't shut down properly (using reboot, using kill, using the off switch at the back, pulling the power cord, power failure, etc).
- The epg.dat file is corrupt. This sometimes happens, but usually it's a one-off.
- The EPG import plugin is set to import on restart, and set to erase all current EPG data first.
- There is no room to store the epg data.
As to the last point, by default it writes to epg.dat file to /media/hdd. If your box doesn't have a harddisk, and doesn't have other storage mounted as hdd, it it points to flash, and depending on the box and other files installed, there might not be any room left for the file. If you want to move it to another location, stop Enigma using "init 4", edit "/etc/enigma2/settings", add or change this key: "config.misc.epgcache_filename=/media/usb/epg.dat" (my file is stored on usb), and after saving your changes, start Enigma again using "init 3".
If you just do a software update without a restart, EPG data is unaffected.
Posted 23 November 2016 - 20:48
I don't know, I've never lost EPG after a normal shutdown or restart.
If it isn't created, it could be that there's not enough space? Or on a slow medium so that the write aborts before it is finished? Enigma doesn't validate on write, but it does on read, so it can discard the data when it reads it back.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Posted 23 November 2016 - 22:15
No, the epg.dat was there, because i made a restart enigma before (so write was ok). But after an hour i reboot, and i lost the file.
What i advice is let xmltvimporter write the file just immediately it load the new data in memory after the download from internet, and prevent enigma2 delete the file if epg data in memory are corrupted.
What do you think?
Posted 23 November 2016 - 22:33
The XMLimporter doesn't do anything with epg.dat files (other than import them).
The epg.dat file is just a cache to make sure the EPG data is kept when you restart the box or the GUI. If you want to misuse this mechanism because you like to pull the plug or kill a running process and in doing so delete your EPG data, I don't see why we need to make changes for that?
OpenDreambox has an EPGbackup plugin (https://github.com/o...aster/epgbackup), perhaps you can adapt that (or find someone willing to add it to E2OpenPlugins)?
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Posted 23 November 2016 - 23:10
Hope it's clear now.
Posted 23 November 2016 - 23:32
Yes, and Yes,
And no, the epg.dat file is deleted directly after import, so when Enigma starts, not when Enigma stops. And it does that because it's a backup file, and no longer needed after it's read again.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Posted 24 November 2016 - 12:16
No. I only quickly glanced at the code.
But that doesn't really matter, if data is corrupt, leaving the file in place doesn't fix the corruption. Either way, the data is useless.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Posted 14 December 2016 - 07:36
Yes, and Yes,
And no, the epg.dat file is deleted directly after import, so when Enigma starts, not when Enigma stops. And it does that because it's a backup file, and no longer needed after it's read again.
I checked this, and it doesn't seem to work in this way.... epg.dat file is not deleted at reboot after reading it.
Could you point me in the right part of code where epg.dat is readed at boot?
Edited by antony23, 14 December 2016 - 07:38.
Posted 14 December 2016 - 13:58
Quite possible, haven't looked at the code in a long time. Here you go: https://github.com/O...vb/epgcache.cpp
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
0 members, 14 guests, 0 anonymous users