Jump to content


Photo

Web interface won't work after update. DM7025 DM800


  • Please log in to reply
55 replies to this topic

Re: Web interface won't work after update. DM7025 DM800 #41 Tech

  • Forum Moderator
    PLi® Core member
  • 14,661 posts

+460
Excellent

Posted 7 November 2013 - 18:58

Well, I see todays changes on the webif-plugin causes a green screen and turn e2 into an endless loop

 

I  had to comment out a few lines in httpserver.py

 

 

if has_ipv6 and fileExists('/proc/net/if_inet6') and twisted.version.major >= 12:

                # use ipv6

                listener.append( reactor.listenTCP(port, site, interface='::') )

            else:

Aan de rand van de afgrond is een stap voorwaarts niet altijd vooruitgang....

 

On the edge of the abyss, a step forward is not always progress....


Re: Web interface won't work after update. DM7025 DM800 #42 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 7 November 2013 - 19:57

Crashlog?
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: Web interface won't work after update. DM7025 DM800 #43 theparasol

  • Senior Member
  • 4,157 posts

+198
Excellent

Posted 7 November 2013 - 20:06

indeed greenscreen = crashlog... No points for Tech this round. From an experienced user we expect a proper crashlog... oh well perhaps he just forgot to attach it ;)

 

Anyway, updated this morning too and on my XP1000 the openwebif is running fine and dandy.


@Camping: ZGemma H.2S, Technisat Multytenne 4-in-1 @Home: Edision Mini 4K, Wave Frontier T55, EMP Centauri EMP DiSEqC 8/1 switch, 4x Inverto Ultra Black single LNB


Re: Web interface won't work after update. DM7025 DM800 #44 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 7 November 2013 - 20:14

Don't need the crashlog anymore:

The query for twisted.version.major requires Twisted 13.0, it crashes below.
Using import it works though.

Fixed and committed.
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: Web interface won't work after update. DM7025 DM800 #45 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 7 November 2013 - 20:27

indeed greenscreen = crashlog... No points for Tech this round. From an experienced user we expect a proper crashlog... oh well perhaps he just forgot to attach it ;)
 
Anyway, updated this morning too and on my XP1000 the openwebif is running fine and dandy.

This morning = The fix for IPv6 not being available on ancient Twisted wasn't in back then.

Yesterday's version was perfectly ok, unless someone combines the rather new IPv6 support with an ancient Twisted.

It worked perfectly on
- any box not supporting IPv6 in kernel, Python or both (IPv4 only)
- any box supporting IPv6 in kernel and Python and not using outdated Twisted (IPv6 and IPv4 Dual Stack)

The version check avoids the crash circumstances for now.

While leaving out the version check was really a mistake, it should still be mentioned that letting parts of the box outdate isn't the way to do either.
Sooner or later someone will use a "new" API or have to replace a syntax deprecated after Twisted 8.x and removed in a current Twisted in use by some box and break things again, thus "for now".
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: Web interface won't work after update. DM7025 DM800 #46 Tech

  • Forum Moderator
    PLi® Core member
  • 14,661 posts

+460
Excellent

Posted 7 November 2013 - 21:24

Why do you need a crashlog? ;)

 

But the problem is solved on my Duo2 and ET9500.


Aan de rand van de afgrond is een stap voorwaarts niet altijd vooruitgang....

 

On the edge of the abyss, a step forward is not always progress....


Re: Web interface won't work after update. DM7025 DM800 #47 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 8 November 2013 - 07:48

While leaving out the version check was really a mistake, it should still be mentioned that letting parts of the box outdate isn't the way to do either.

That's only the 800 and 7025. And DMM stopped support and production long ago, so any effort into that direction is wasted.
Real musicians never die - they just decompose

Re: Web interface won't work after update. DM7025 DM800 #48 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 8 November 2013 - 07:59

As for the version check, in my experience it's better to check on "features" than on "versions". To relate to your Windows versioning stories, that is also what Microsoft advises you to do in programs. If you want to use an interface, just try to obtain it and have a fallback for when it doesn't exist.

You can see that happen in your Windows version listing. You omitted the server versions, which have additional features (e.g. the 32-bit server editions can address up to 64GB RAM instead of the 4GB addressable by the workstation versions) that may not even be present in more recent workstation editions.

Similarly, there might be a patched twisted 8.x version that does support IPv6.
Real musicians never die - they just decompose

Re: Web interface won't work after update. DM7025 DM800 #49 The_Raven

  • Senior Member
  • 204 posts

+2
Neutral

Posted 8 November 2013 - 18:30

The openwebif works again on DM7025! thx :)



Re: Web interface won't work after update. DM7025 DM800 #50 JaNuZz

  • Member
  • 13 posts

0
Neutral

Posted 9 November 2013 - 20:27

And on DM800 also working fine again. 

 

Thx a lot!

 

Jan



Re: Web interface won't work after update. DM7025 DM800 #51 The_Raven

  • Senior Member
  • 204 posts

+2
Neutral

Posted 10 November 2013 - 09:27

The webif works, but if i go to settings i get always a "GSOD" (greenscreen). :(

Tested on DM7025 and VU-Uno.

Added the crashlog of VU, hope you see something.



Re: Web interface won't work after update. DM7025 DM800 #52 WanWizard

  • PLi® Core member
  • 68,682 posts

+1,740
Excellent

Posted 10 November 2013 - 10:50

[SKIN] Parsing embedded skin <embedded-in-'OpenWebifConfig'>
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 46, in action
  File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 102, in save
  File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 106, in run
  File "/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/plugin.py", line 104, in confplug
    session.open(OpenWebifConfig)
  File "/usr/lib/enigma2/python/mytest.py", line 303, in open
    dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
  File "/usr/lib/enigma2/python/mytest.py", line 233, in instantiateDialog
    return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
  File "/usr/lib/enigma2/python/mytest.py", line 263, in doInstantiateDialog
    readSkin(dlg, None, dlg.skinName, desktop)
  File "/usr/lib/enigma2/python/skin.py", line 767, in readSkin
  File "<string>", line 124, in XML
cElementTree.ParseError: not well-formed (invalid token): line 2, column 55
(PyObject_CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0x1417cb0>>,('WizardActions', 'ok')) failed)
getResolvedKey config.plugins.crashlogautosubmit.sendAnonCrashlog failed !! (Typo??)
getResolvedKey config.plugins.crashlogautosubmit.addNetwork failed !! (Typo??)
getResolvedKey config.plugins.crashlogautosubmit.addWlan failed !! (Typo??)
]]>

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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: Web interface won't work after update. DM7025 DM800 #53 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 10 November 2013 - 11:03

Title must translated on the "code behind" not on the skin directly.
-  <screen position="center,center" size="700,340" title="OpenWebif Configuration">
+  <screen position="center,center" size="700,340" title=_("OpenWebif Configuration")>

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: Web interface won't work after update. DM7025 DM800 #54 madchip

  • Member
  • 3 posts

0
Neutral

Posted 10 November 2013 - 12:35

hi again

 

i update today my dm800 with last update.

 

Now when i try to access to the web interface, i have this message :

 

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 197 in getChildWithDefault
195                if self.login(request.getUser(), request.getPassword()) == False:
196                        request.setHeader('WWW-authenticate', 'Basic realm="%s"' % ("OpenWebif"))
197                        errpage = resource.ErrorPage(http.UNAUTHORIZED,"Unauthorized","401 Authentication required")
198                        return errpage
Locals self
Plugins.Extensions.OpenWebif.httpserver.AuthResource instance @ 0x1592170 <Plugins.Extensions.OpenWebif.httpserver.AuthResource instance at 0x1592170>
request
twisted.web.server.Request instance @ 0x15925a8 <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'

 

 

maybe this message help ??

 

edit : but one thing who are working are the channel update


Edited by madchip, 10 November 2013 - 12:38.


Re: Web interface won't work after update. DM7025 DM800 #55 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 10 November 2013 - 16:45

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

That's exactly what I meant when I said "for now".

I remember I had to change something in this part, because the original code was deprecated long ago and finally invalidated in Python 12.x or 13.x:
error:twisted.web.error.ErrorPage is deprecated since Twisted 9.0. See twisted.web.resource.ErrorPage

Once again, the outdated Twisted is a problem.
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: Web interface won't work after update. DM7025 DM800 #56 SpaceRat

  • Senior Member
  • 1,030 posts

+65
Good

Posted 10 November 2013 - 17:49

Here you are:

https://github.com/E...d6ed828e4860a62

This is the commit in which I changed
error.ErrorPage
into
resource.ErrorPage
as required to make OpenWebif continue to work on Twisted 13.0.0 and newer.

Everything deprecated after Twisted 8.6.x would need a workaround sooner or later, so "never change a running system" as usual doesn't work out: It will cease to run sooner or later.
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


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users