Jump to content


Photo

enigma2.sh script will not start after booting the set-top box


  • Please log in to reply
36 replies to this topic

Re: enigma2.sh script will not start after booting the set-top box #21 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 3 September 2020 - 13:54

Do you use WLAN and/or DHCP?
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: enigma2.sh script will not start after booting the set-top box #22 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 3 September 2020 - 16:21

Instead of working around it, it might be better to fix it. That begins with the question "why" it gets stuck.

 

Because (virtually) all of my boxes use it, for many years, and I've never seen this issue.

OK, please provide me with some development KIT for OpenPLi / Vu + device under Linux, and I'll step through the whole binary code in assembler or C language. Otherwise, I can't find out anything because I'm not an Enigma developer. I'm just a developer of Enigma plugins (Python language) :).

 

This appears to be an incompatibility of the "ntpdate" binary. It is an ntpdate error that it does not report an error and that it remains "stuck". Probably not all possible error exceptions are debugged in the source code.

 

I can't figure out where the cause of the problem is because the debug-log in Enigma is poor in information (even when using DEBUG LVL 4 in the case of the OpenPLi image).

 

I have no tools and experience to be able to find bugs as fast as the OpenPLi development team :).

 

 

FWIW my ViX boxes are running ntpdate (4.2.8p12-r0.5)

That's not how it works. A specific tool / service / command is always designed for a specific Linux (dependence on the Linux kernel, hardware drivers, libraries and modules and their configuration). If you move a binary file to another Enigma, it may not work. However, I risked this way and I tried a binary file from other Enigma distributions (OpenATV and VTi) for the MIPS/EL chipsets, but... of course... the first library error has occurred. I solved this unusually and not appropriately... by copying the whole library from another system :-). But then... another error arised, namely a problem with OpenSSL :). So I left testing other "ntpdate" binaries. So transferring binary files is not a suitable solution - or possibly if from an older version of OpenPLi to a newer version of OpenPLi.

 

However, this is the work of the developers of the OpenPLi team. Now that developers know where the problem is, they can solve it very easily. Personally, I am not the developer of OpenPLi, as I have already written, so it would take me 5 hours, maybe 5 days and maybe 5 months to search for a 100% solution :). However, anyone in the OpenPLi development team will solve this problem in 10 minutes, almost immediately.

 

 

 



Re: enigma2.sh script will not start after booting the set-top box #23 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 3 September 2020 - 16:29

Do you use WLAN and/or DHCP?

 

Me ?

 

Of course yes, my home LAN network uses a DHCP service (Asus RT-AC66U_B1 router).

 

By the WLAN you mean a WiFi USB stick ? No... I do not use WiFi connection in my set-top box (Vu+ Solo SE V2). Cable connection only (RJ-45, built-in network card in the set-top box).


Edited by s3n0, 3 September 2020 - 16:29.


Re: enigma2.sh script will not start after booting the set-top box #24 WanWizard

  • PLi® Core member
  • 70,528 posts

+1,811
Excellent

Posted 3 September 2020 - 16:59

If you use the systemtime plugin, it asks you those questions, and based on the answers, inserts a delay (the sleep in the script) because ntpdate needs a working IP stack.
 
"sleep 0" only works if you use a static IP, or if you are lucky and have a very fast DHCP server. Chances are a "sleep 5" already fixes your problem.
 

OK, please provide me with some development KIT for OpenPLi / Vu + device under Linux, and I'll step through the whole binary code in assembler or C language.

 

There are some instructions here for Ubuntu and Redhat based linux distro's.

 

Basically install the packages for the host dependencies, clone our OpenEmbedded repository, and run a make to build the entire image, or a bitbake build command

bitbake ntpdate

to only build ntpdate and it's dependencies. See the bitbake manual for more info.


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: enigma2.sh script will not start after booting the set-top box #25 ccs

  • Senior Member
  • 229 posts

+7
Neutral

Posted 3 September 2020 - 17:04

 

 

FWIW my ViX boxes are running ntpdate (4.2.8p12-r0.5)

That's not how it works. A specific tool / service / command is always designed for a specific Linux (dependence on the Linux kernel, hardware drivers, libraries and modules and their configuration). If you move a binary file to another Enigma, it may not work. 

 

 

I knew I shouldn't have given the version number, I was really just indicating that ntpdate is used in another image, not ntpd.


Edited by ccs, 3 September 2020 - 17:05.

test


Re: enigma2.sh script will not start after booting the set-top box #26 WanWizard

  • PLi® Core member
  • 70,528 posts

+1,811
Excellent

Posted 3 September 2020 - 17:16

The reason that ntpdate is used is that is it simpler and smaller, and a client-only, ntpd is a daemon that also has ntp server functionality. Which is overdone for one-shot time retrieval.


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: enigma2.sh script will not start after booting the set-top box #27 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 3 September 2020 - 18:00

If you use the systemtime plugin, it asks you those questions, and based on the answers, inserts a delay (the sleep in the script) because ntpdate needs a working IP stack.
 
"sleep 0" only works if you use a static IP, or if you are lucky and have a very fast DHCP server. Chances are a "sleep 5" already fixes your problem.

 

I also tried to set 15 seconds there. It didn't help. In my opinion, the network is not a problem. The network works very well on Vu+ and is initialized fast enough (maybe there is a good NIC-driver under Enigma, for Vu+ device, or maybe my metal wires in the LAN are good, ha ha).

 

I also tried the "-d" argument for "ntpdate". Unfortunately, it also does not provide much information. The process simply "hangs". We need to view the "ntpdate" source code or debugging through the code at runtime. Or run "ntpdate" in a debug mode, under development's KIT.

 

BTW, there is an "ntp-debug" package among the OpenPLi feed installation packages. What is it for ? Wouldn't it be possible to debug "ntpdate" with the tools in this package ? Or is it stupid idea ?

 

I won't try that development KIT anyway. Sorry. It's a long practice... it will take a long time to get a good practice. Then it will take time to find the cause of the problem. However, it looks like a binary file is stuck :-/. I'm old man for these things too. I already do such things for money or just as a hobby (that is, only if I am in a good mood and free time).


Edited by s3n0, 3 September 2020 - 18:01.


Re: enigma2.sh script will not start after booting the set-top box #28 mrvica

  • Senior Member
  • 1,259 posts

+86
Good

Posted 3 September 2020 - 18:10

we were using on the dbox2 a long time ago rdate (busybox)

 rdate -s time.fu-berlin.de


Re: enigma2.sh script will not start after booting the set-top box #29 WanWizard

  • PLi® Core member
  • 70,528 posts

+1,811
Excellent

Posted 3 September 2020 - 18:20

rdate should work too, indeed.


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: enigma2.sh script will not start after booting the set-top box #30 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 3 September 2020 - 19:27

Why is "ntpdate" also part of the "ntp" installation package ? Because after installing "ntp" package under OpenPLi (via Shell / opkg) the "ntpdate" package is also installed as well.

 

Then I have to solve it again manually - uninstall the "ntpdate" package:

opkg update && opkg remove ntpdate

Alternatively, remove the "ntpdate" symbolic line, via Shell:

update-rc.d -f ntpdate remove

In any case, as a temporary solution, it must be enough for me :-P.



Re: enigma2.sh script will not start after booting the set-top box #31 ccs

  • Senior Member
  • 229 posts

+7
Neutral

Posted 3 September 2020 - 19:50

Odd you're the only one with this problem, have you built your own image?


test


Re: enigma2.sh script will not start after booting the set-top box #32 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 3 September 2020 - 20:28

LOL, how did you find out I was the only one problem ? This problem is related to updating the time over the Internet when for some reason you are not using satellite reception (IPTV only) and secondly the problem is only related to the "ntpdate" tool. If you set the time update via the Internet (NTP server) and if you have the entire "ntp" package installed, the problem may also manifest itself in you. Only possible with mips32el chipsets and with Vu+ Solo SE V2 devices. Unfortunately, more information requires tests. I can't do those because I don't have OpenPLi on all devices. I only have it on the "developer" set-top box, where I create plugins.



Re: enigma2.sh script will not start after booting the set-top box #33 WanWizard

  • PLi® Core member
  • 70,528 posts

+1,811
Excellent

Posted 3 September 2020 - 20:53

I'm not aware there is a dependency between ntp and ntpdate, but it could be the OE recipe defines it. It shouldn't however be a problem, as ntpdate is just a client which connects directly to the specified server.

 

And as mentioned before, I have it installed and running on all my boxes (including a slug-slow XP1000), as I only have one box connected to coax, and I've never had a problem with it (all boxes on DHCP, some also on wifi).


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: enigma2.sh script will not start after booting the set-top box #34 ccs

  • Senior Member
  • 229 posts

+7
Neutral

Posted 3 September 2020 - 21:13

LOL, how did you find out I was the only one problem ? This problem is related to updating the time over the Internet when for some reason you are not using satellite reception (IPTV only) and secondly the problem is only related to the "ntpdate" tool. 

That's the first time you've mentioned satellite and/or IPTV, I'll leave it now, way over my head anyway.


test


Re: enigma2.sh script will not start after booting the set-top box #35 WanWizard

  • PLi® Core member
  • 70,528 posts

+1,811
Excellent

Posted 3 September 2020 - 21:45

You need it for any box without coax connected. All my boxes work via tuner fallback from my central VU+ Duo 4K, with 2 FBC modules (giving me 16 tuners).


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: enigma2.sh script will not start after booting the set-top box #36 40H3X

  • Forum Moderator
    PLi® Contributor
  • 5,956 posts

+191
Excellent

Posted 4 September 2020 - 08:14

Thinking outside de box..., have you installed Bash? As by default OpenPLi has a stripped-down version of busybox and If you want more possibilities when working with the CLI you should install the "Bash" shell entering:


Hardware: Vu+ Uno 4K SE - Vu+ Duo 4K  - Fuba 78 cm - Tripleblock LNB Quad 19.2/23.5/28.2 - DS918+
Software : OpenPLi - OSCam - Settings van Hans - Autotimer - EPGImport

---------------------------------------------------------------------------------------------------------------------------------------

Remember: Upvote with the rep_up.png button for any user/post you find to be helpful, informative, or deserving of recognition!

---------------------------------------------------------------------------------------------------------------------------------------

Many answers to your question can be found in our new and improved wiki

Note: I do not provide support via PM !.


Re: enigma2.sh script will not start after booting the set-top box #37 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 4 September 2020 - 10:31

Please guys, write the user's nick before your comments :). Then I don't know who you're commenting on :).




3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users