Jump to content


Photo

OpenWebif [E2OpenPlugins]


  • Please log in to reply
1459 replies to this topic

Re: OpenWebif [E2OpenPlugins] #1181 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 3 April 2014 - 07:01

Try clicking a channel name in the bouquet list. It just worked for me (and there is a tooltip help supporting this).


Edited by macnuts, 3 April 2014 - 07:02.


Re: OpenWebif [E2OpenPlugins] #1182 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 3 April 2014 - 07:25

Sorry, it was long night. I didn't noticed that you were asking about recordings, not channel list (and no edit option anymore).



Re: OpenWebif [E2OpenPlugins] #1183 apokalipsa

  • Member
  • 1 posts

0
Neutral

Posted 5 April 2014 - 02:02

Hello and a very advice please I have a DM7025 latest version openpli where the problem might be that I'm on my third night spent too much, and thank you very much for the advice.

 

 

 

 

 

web.Server Traceback (most recent call last):

<type 'exceptions.AttributeError'>: 'module' object has no attribute 'ErrorPage'


/usr/lib/python2.6/site-packages/twisted/web/server.py, line 149 in process
147
148
149
150
/usr/lib/python2.6/site-packages/twisted/web/server.py, line 567 in getResourceFor
565
566
567
568
/usr/lib/python2.6/site-packages/twisted/web/resource.py, line 47 in getChildForRequest
45
46
47
48
/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/httpserver.py, line 200 in getChildWithDefault
198                if self.login(request.getUser(), request.getPassword()) == False:
199                        request.setHeader('WWW-authenticate', 'Basic realm="%s"' % ("OpenWebif"))
200                        errpage = resource.ErrorPage(http.UNAUTHORIZED,"Unauthorized","401 Authentication required")
201                        return errpage
Locals self
Plugins.Extensions.OpenWebif.httpserver.AuthResource instance @ 0x15b8b48 <Plugins.Extensions.OpenWebif.httpserver.AuthResource instance at 0x15b8b48>
request
twisted.web.server.Request instance @ 0x15c2e40 <GET / HTTP/1.1>
Globals http <module 'twisted.web.http' from '/usr/lib/python2.6/site-packages/twisted/web/http.pyo'> resource <module 'twisted.web.resource' from '/usr/lib/python2.6/site-packages/twisted/web/resource.pyo'>

<type 'exceptions.AttributeError'>: 'module' object has no attribute 'ErrorPage'



Re: OpenWebif [E2OpenPlugins] #1184 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 5 April 2014 - 10:54

I read somewhere that if you turn off http authentication, it works.

It's a "bad" and cheap solution.....


Enigma is getting old....

 

Spoiler

Re: OpenWebif [E2OpenPlugins] #1185 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 5 April 2014 - 11:13

<type 'exceptions.AttributeError'>: 'module' object has no attribute 'ErrorPage'
<type 'exceptions.AttributeError'>: 'module' object has no attribute 'ErrorPage'

That problem is related to outdated software components.

I had to fix the deprecated usage of ErrorPage in order to make OpenWebif work with current versions of Twisted, however this makes OpenWebif fail on ancient versions of Twisted (9.6).

This is the same error as discussed here.

There is an easy fix:
The OpenPLi devs simply have to upgrade the feed to a decently new Twisted (Which I thought they already did).
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: OpenWebif [E2OpenPlugins] #1186 ims

  • PLi® Core member
  • 13,795 posts

+214
Excellent

Posted 19 April 2014 - 14:14

invention - could be there on top of OpenWebif ( near On/Off button) add button for streaming actual channel ?


Kdo nic nedělá, nic nezkazí!

Re: OpenWebif [E2OpenPlugins] #1187 burice

  • Member
  • 8 posts

0
Neutral

Posted 19 April 2014 - 15:43

very nice interface , but i think it will be good to add some items to become the best one:

 

1- a button for streaming of current chanel

2- chanel info and epg for current playing chanel on top of page

3- WEB-X-TV because scrolling between chanells by clicking the name sucks! it would be the best to simulate the switching forward and backward in chanel list like the we do with remote

4- ability to stream only sound (apid and vpid separately)



Re: OpenWebif [E2OpenPlugins] #1188 Frenske

  • Forum Moderator
    PLi® Core member
  • 27,495 posts

+397
Excellent

Posted 26 April 2014 - 19:38

Hi guys,

Just tried some things to change on the ET8000 via the web interface but unfortunately many buttons won't work properly on the full RC. Can this please be fixed? I haven't been able yet to see what exactly goes wrong. For instance menu doesn't work and pushing near the menu button volume up started. :( ;)

The mini RC works with some extra effort. I had to zoom in with the iPad before it worked ok.

Mijn schotel is een T90 met 10 LNB's. Daarnaast voor de fun nog een draaibaar systeem met een Triax TD 78.

Dreamboxen heb ik niet meer echt actief. Verder heb ik ook nog een een VU+ duo2 met 500Gb harddisk + een VU+ Uno, Zero, Solo 4K, Ultimo 4K, Zero 4K, Uno 4Kse. + ook nog een Xtrend ET7x00. Daarnaast heb ik ook nog diverse andere modellen w.o. een Formuler F4, ET8500, ET7500, Mut@nt 2400HD, Xsarius Fusion HD se en verder nog wel het e.e.a. waarmee op verzoek vanalles wordt getest. Iemand moet het tenslotte doen. ;) :)
Los van de eerder genoemde modellen heb ik nog wel een rits aan testsamples als Mut@nt 2400HD, HD60, GB UE4K, GB Trio4K, Maxitec Multibox combo en Twin, Octagon sf8008, sf8008 mini en last but nog least enkele modellen van het Grieks Duitse Edision.

Voor centrale opslag van media gebruik ik een Qnap 219P 
met tweemaal 2 Tb harddisks + een Synology DS414 met 12 Tb Totale opslag.

-------------------------------------------------------------------------------------------
Many answers to your question can be found in our wiki: Just one click away from this "solutioncentre".

Als ik alles al wist hoefde ik ook niets te vragen. If I had all the knowledge I had no questions at all.


Re: OpenWebif [E2OpenPlugins] #1189 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 May 2014 - 08:42

Hello,


On a fresh install when guide started (without starting the guide), i did a restart of the box a then the following error start happening (in a loop):
[OpenWebif] started on 80
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Tools/BoundFunction.py", line 9, in __call__
  File "/usr/lib/enigma2/python/Components/Console.py", line 56, in finishedCB
  File "/usr/lib/enigma2/python/Components/Network.py", line 131, in routeFinished
  File "/usr/lib/enigma2/python/Components/Network.py", line 226, in loadNetworkConfig
  File "/usr/lib/enigma2/python/Components/Network.py", line 682, in msgPlugins
  File "/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/plugin.py", line 145, in IfUpIfDown
    HttpdStart(global_session)
  File "/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/httpserver.py", line 154, in HttpdStart
    context = ssl.DefaultOpenSSLContextFactory(KEY_FILE, CERT_FILE)
  File "/usr/lib/python2.7/site-packages/twisted/internet/ssl.py", line 68, in __init__
  File "/usr/lib/python2.7/site-packages/twisted/internet/ssl.py", line 77, in cacheContext
OpenSSL.SSL.Error: [('PEM routines', 'PEM_read_bio', 'no start line'), ('SSL routines', 'SSL_CTX_use_certificate_file', 'PEM lib')]
(PyObject_CallObject(<Tools.BoundFunction.boundFunction instance at 0x16f3c88>,(0,)) failed)
getResolvedKey config.plugins.crashlogautosubmit.sendAnonCrashlog failed !! (Typo??)
getResolvedKey config.plugins.crashlogautosubmit.addNetwork failed !! (Typo??)
getResolvedKey config.plugins.crashlogautosubmit.addWlan failed !! (Typo??)
After removing the /etc/enigma2/key.pem and /etc/enigma2/cert.pem box, GSOD loop stopped and guide continued.

Maybe HttpdStart try/except should catch OpenSSL.SSL.Error too?
	# start https webserver on port configured port
	try:
		context = ssl.DefaultOpenSSLContextFactory(KEY_FILE, CERT_FILE)
		...
	except CannotListenError, OpenSSL.SSL.Error:

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: OpenWebif [E2OpenPlugins] #1190 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 25 May 2014 - 09:46

Can it be a corrupted certificate file (somehow)?

 

I think that if the certificate file is corrupt, it should be renamed (because it might be generated by the user explicitly), and the webif should create one itself. Or another approach where enigma doesn't crash on a corrupt certificate file. Or something like disabling https operations when the certs cannot be used, even better actually.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: OpenWebif [E2OpenPlugins] #1191 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 25 May 2014 - 10:00

Can it be a corrupted certificate file (somehow)?

Definitely.

I think that if the certificate file is corrupt, it should be renamed (because it might be generated by the user explicitly), and the webif should create one itself.

The webif creates one itself if the file does not exist, btw.
So actually there is no reason why a key/cert combo gets generated by E2 at all and that even at a point where it is likely to fail (WanWizard had the same problem, so it really seems to be pretty likely).

Or another approach where enigma doesn't crash on a corrupt certificate file. Or something like disabling https operations when the certs cannot be used, even better actually.

First of all it shouldn't GS for nothing.
And I don't necessarily mean OWI with that ...
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: OpenWebif [E2OpenPlugins] #1192 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 25 May 2014 - 10:05

I never wrote enigma generates certificates (although it does, of course, when it's running the owif plugin...). I mentioned USERS creating their own certs, which, imho, is very useful. A user that has generated it's own cert doesn't like it to be gone just like that.

 

Apparently at some point owif tries to load/process the certs and bails out, looks like openssl errors at that point for some reason. Instead of crashing, owif+enigma should catch the error and disable https operations from that point. Or even a better solution maybe. Anyway the current behaviour is unacceptable for users.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: OpenWebif [E2OpenPlugins] #1193 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 25 May 2014 - 10:18

Backport an oe-a fix …
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: OpenWebif [E2OpenPlugins] #1194 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 25 May 2014 - 10:28

I never wrote enigma generates certificates

Well, apparently it does ...

... or

(although it does, of course, when it's running the owif plugin...).

... it interrupts OWI during creation of the certs, which would be about as bad.

I mentioned USERS creating their own certs, which, imho, is very useful. A user that has generated it's own cert doesn't like it to be gone just like that.

If the cert/key is broken, it is broken.
If it is even empty, it's empty.
No need to keep a broken/empty cert.

And people that are capable of creating their own cert are most probably
a.) not as stupid to MOVE the cert to the box, not keeping a backup of it
b.) to interrupt OpenSSL while creating the cert, so they will effectively not trigger this problem in the first place
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: OpenWebif [E2OpenPlugins] #1195 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 May 2014 - 10:30

I suggest not to rewrite the same code twice!

It can be wrapped into a function or just catch the error like this (extra try for context only):
			try:
				context = ssl.DefaultOpenSSLContextFactory(KEY_FILE, CERT_FILE)
			except: # THIS EXCEPTION IS ONLY CATCHED WHEN CERT FILES ARE BAD ( look below for error )
				print "[OpenWebif] failed to get valid cert files. ( It could occure bad file save or format, removing... )"
				# removing bad files
				os.remove("/etc/enigma2/cert.pem")
				os.remove("/etc/enigma2/key.pem")
				# regenerate new ones
				installCertificates(session)
				context = ssl.DefaultOpenSSLContextFactory(KEY_FILE, CERT_FILE)

Edited by athoik, 25 May 2014 - 10:31.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: OpenWebif [E2OpenPlugins] #1196 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 25 May 2014 - 10:30

@SpaceRat: Okay your call probably. I am happy it's solved.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: OpenWebif [E2OpenPlugins] #1197 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 25 May 2014 - 11:30

I suggest not to rewrite the same code twice!

I didn't like it either (Which is why I didn't backport it before when revising the diffs the last time), but it was there and I prefer a bad fix to a good problem :)

Will have to revise it later, there are other changes I plan for the SSL stuff anyways.
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: OpenWebif [E2OpenPlugins] #1198 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 25 May 2014 - 11:42

I

Btw:

Feel free to rewrite that part. I'm quite busy at the moment and won't be able to work on it during the next days.
1st box: Vu+ Ultimo 4k 4xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
2nd box: Gigablue Quad 4k 2xDVB-S2 FBC / 2xDVB-C / 1.8 TB HDD / OpenATV 6.2
testing boxes: Vu+ Duo² + AX Quadbox HD2400 + 2x Vu+ Solo² + Octagon SF4008
Sats & Pay-TV: Astra 19.2°E + Hotbird 13°E with Redlight / SCT HD / SES Astra HD- / Sky V14 / 4th empire propaganda TV
Card-Server: Raspberry Pi + IPv6-capable oscam
Router: Linksys WRT1900ACS w/ LEDE + Fritz!Box 7390

Re: OpenWebif [E2OpenPlugins] #1199 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 25 May 2014 - 12:52

Feel free to rewrite that part.

Ok, now it's ready, now is much simpler, it does more checks and in worst case scenario https will be disabled instead of failing in BSOD loop.

https://github.com/E...nWebif/pull/128
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: OpenWebif [E2OpenPlugins] #1200 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 25 May 2014 - 14:55

Thanks guys!


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.



4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users