Jump to content


Photo

Epg after reboot


  • Please log in to reply
14 replies to this topic

#1 guess

  • Senior Member
  • 105 posts

+1
Neutral

Posted 26 July 2016 - 15:26

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



Re: Epg after reboot #2 doglover

  • Rytec EPG Team
  • 17,297 posts

+651
Excellent

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*


Re: Epg after reboot #3 WanWizard

  • PLi® Core member
  • 69,930 posts

+1,788
Excellent

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.


Re: Epg after reboot #4 ricki

  • Senior Member
  • 591 posts

+3
Neutral

Posted 28 July 2016 - 11:08

After Software update imported xml-data disappears is this normal?



Re: Epg after reboot #5 WanWizard

  • PLi® Core member
  • 69,930 posts

+1,788
Excellent

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.


Re: Epg after reboot #6 antony23

  • Senior Member
  • 47 posts

+1
Neutral

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.

 

 
Hi mate, i had a problem just some minutes ago. 
I had epg.dat saved after a GUI restart. After about one hour, i made a reboot (by remote obviously), and i loose epg.dat file. What do you think could be happened? Maybe a corrupted epg data from a transponder corrupted all the epg data, so that it was not saved on reboot?
 
So i would know if my idea could be realizable:
1- let xmltvimporter save immediately the file after download data from internet.
2- if, on restart/reboot/etc, epg data cannot be saved because are corrupted, enigma does not delete the current file. So we cannot lose overall epg data. Moreover, if we power off from box button or via telnet, we wouldn't loose the overall epg, but only those got by transpoders.
 
What do you think?


Re: Epg after reboot #7 WanWizard

  • PLi® Core member
  • 69,930 posts

+1,788
Excellent

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.


Re: Epg after reboot #8 antony23

  • Senior Member
  • 47 posts

+1
Neutral

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?



Re: Epg after reboot #9 WanWizard

  • PLi® Core member
  • 69,930 posts

+1,788
Excellent

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.


Re: Epg after reboot #10 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 23 November 2016 - 23:10

Sorry for my bad english but you didn't understand me.
I try again. EPGImporter donwloads epg data and these data are kept in memory. Ok? Zapping for satellite channels, some extra epg is added to epg got by EPGimporter. Ok?
Now i make you a question: what happens if trasponder epg is corrupted, and we reboot the box or restart enigma? I can answer this question because it happened to me: enigma2 can't save the epg data, and if an epg.dat file was already there, enigma2 deletes this file.
So, my question is: why i should lose all epg data, if only some epg data (in my case trasponder's one) are corrupted? Why not save immediately epg.dat, and delete it only when we are sure enigma can save the new data?
 

Hope it's clear now.



Re: Epg after reboot #11 WanWizard

  • PLi® Core member
  • 69,930 posts

+1,788
Excellent

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.


Re: Epg after reboot #12 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 23 November 2016 - 23:51

epg.dat file is deleted when Enigma starts? Are you sure? 

And what happens if data is not loaded correctly? I lose all data?



Re: Epg after reboot #13 WanWizard

  • PLi® Core member
  • 69,930 posts

+1,788
Excellent

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.


Re: Epg after reboot #14 antony23

  • Senior Member
  • 47 posts

+1
Neutral

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.


Re: Epg after reboot #15 WanWizard

  • PLi® Core member
  • 69,930 posts

+1,788
Excellent

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.



12 user(s) are reading this topic

0 members, 12 guests, 0 anonymous users