Jump to content


Photo

Webif problem with Latest OScam 11719


  • Please log in to reply
48 replies to this topic

#1 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 06:03

hi!

 

I just installed the new version, but I can't access the webif, does anyone have the same problem?

 

OpenPli 8.3

 

my conf:

 

[webif]
httposcamlabel = MOHAMED_OS
httpport = 8888
httprefresh = 10
httppollrefresh = 10
httphidetype = sh
httppiconsize = 30
httpshowmeminfo = 1
httpshowuserinfo = 1
httpshowreaderinfo = 1
httpshowcacheexinfo = 1
httpshowecminfo = 1
httpshowloadinfo = 1
httpallowed = 127.0.0.1,192.168.0.0-192.168.255.255,10.0.0.0-10.255.255.255,::1
http_status_log = 1

 


 

 



Re: Webif problem with Latest OScam 11719 #2 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 07:07

I tried reinstalling 11718 and it works fine, but 11719 doesn't...



Re: Webif problem with Latest OScam 11719 #3 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 10 June 2023 - 07:26

Hi.

 

Is your Oscam 11719 running ? Are your DVB channels decoded correctly ?

 

What does the startup cmd-line for your Oscam look like ? You can find out with the following function, just copy the code using CTRL+C , and then paste it into PuTTY by right-clicking in the terminal window... and then just run it:

OSCAM_BIN_FNAME="oscam"
if ps --version 2>&1 | grep -q -i "busybox"; then
   ps | grep $OSCAM_BIN_FNAME | grep -v grep | head -n 1 | grep -o '/.*$'         # feature-poor `ps` command from BusyBox (for example in OpenPLi image)
else
   ps -f --no-headers -C $OSCAM_BIN_FNAME | head -n 1 | grep -o '/.*$'            # full-featured `ps` command from Linux OS (for example in OpenATV image)
fi

If necessary, also modify the name of the Oscam binary file (in the variable OSCAM_BIN_FNAME at the beginning of the algorithm).
 

Isn't there a modified directory path to the configuration files - in the starting cmd-line ? Because in that case, you have to move your configuration files to the appropriate directory. The forced change of the configuration directory can also be detected in the startup "init.d" script, which can be found in the directory /etc/init.d/softcam.....). Look for the "-c <dir>" or "--config-dir <dir>" parameter there.

 

Try running your Oscam in the terminal as well and watch what happens:

OSCAM_BIN_FNAME="oscam"
killall -9 $OSCAM_BIN_FNAME
/usr/bin/$OSCAM_BIN_FNAME

Edited by s3n0, 10 June 2023 - 07:32.


Re: Webif problem with Latest OScam 11719 #4 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 10 June 2023 - 07:41

Finally, try this as well:

OSCAM_BIN_FNAME="oscam"
/usr/bin/$OSCAM_BIN_FNAME -V

This should display info about your Oscam. Check the availability of the Webif module in the info. It is also possible that your Oscam build that you are using was not compiled including the Webif module.

 

Or... some newer libraries are required in the Linux system that are not available... and therefore your Oscam v11719 build refuses to start


Edited by s3n0, 10 June 2023 - 07:46.


Re: Webif problem with Latest OScam 11719 #5 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 07:42

now I go back to version 11718, I hope OpenPli developers put the error-corrected version 11719 in the feed.
 
I update directly from the feed and there should be no problems

 


Re: Webif problem with Latest OScam 11719 #6 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 10 June 2023 - 07:44

Yes, but you should write why it doesn't work so that the guys from the OpenPLi team can fix the error. :)

 

Of course, only if it's really their fault and not yours.



Re: Webif problem with Latest OScam 11719 #7 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 08:32

Yes, but you should write why it doesn't work so that the guys from the OpenPLi team can fix the error. :)

 

Of course, only if it's really their fault and not yours.

in my opinion they should change the oscam 11719 paths with those of OpenPli



Re: Webif problem with Latest OScam 11719 #8 Tech

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

+486
Excellent

Posted 10 June 2023 - 08:39

We didn't change any path since we started the support of oscam, no idea why the latest oscam doesn't run on your device but I use the same feeds as you do and on my box oscam is running like a charm.....

 

As you can see in the output below, the config is still located in /etc/tuxbox/config/oscam/ 

root@vuultimo4k:~# OSCAM_BIN_FNAME="oscam"
root@vuultimo4k:~# /usr/bin/$OSCAM_BIN_FNAME -V
Version:        oscam-1.20_svn-r11719
Compiler:       arm-oe-linux-gnueabi
Box type:       generic (generic)
PID:            9937
TempDir:        
GBox tmp_dir:   not defined using: 
ConfigDir:      /etc/tuxbox/config/oscam/
WebifPort:      0
 
Web interface support:                   yes

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....

Hardware: 2x Daily used Vu+ Ultimo 4K - Vu+ Duo 4K SE and a lot more.... - VisioSat BiBigsat - Jultec Unicable Multiswitch 4 positions: 19.2/23.5/28.2 East - Diseqc motorized flatdish antenna

Software : HomeBuild OpenPLi Develop and Scarthgap builds, local cards driven by OsCam

Press the Geplaatste afbeelding button on the buttom right of this message ;)

Have you tried our wiki yet? Many answers can be found in our OpenPLi wiki


Re: Webif problem with Latest OScam 11719 #9 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 08:51

 

We didn't change any path since we started the support of oscam, no idea why the latest oscam doesn't run on your device but I use the same feeds as you do and on my box oscam is running like a charm.....

 

As you can see in the output below, the config is still located in /etc/tuxbox/config/oscam/ 

root@vuultimo4k:~# OSCAM_BIN_FNAME="oscam"
root@vuultimo4k:~# /usr/bin/$OSCAM_BIN_FNAME -V
Version:        oscam-1.20_svn-r11719
Compiler:       arm-oe-linux-gnueabi
Box type:       generic (generic)
PID:            9937
TempDir:        
GBox tmp_dir:   not defined using: 
ConfigDir:      /etc/tuxbox/config/oscam/
WebifPort:      0
 
Web interface support:                   yes

are you using the latest version?



Re: Webif problem with Latest OScam 11719 #10 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 09:01

ok i just saw that you have version 11719, i don't understand what can be in my case



Re: Webif problem with Latest OScam 11719 #11 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 09:09

but why does it give me version 11714 in the feed? and not the last?



Re: Webif problem with Latest OScam 11719 #12 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 09:27

how can i update openpli feeds?



Re: Webif problem with Latest OScam 11719 #13 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 10 June 2023 - 10:18

In OpenPLi the default path for the OScam configuration file is:  /etc/tuxbox/config/oscam/   by default oscam is not looking in this folder since it tries to use /usr/local/etc (this can be overwritten at compilation time).

 

So you need to say oscam where to find the configuration file:

So you need to start your OScam with:

 

--config-dir /etc/tuxbox/config/oscam

 

as parameter.

 

If you use the oscam from the feed everything is fine, if you manually try to install another oscam version then you need to learn how to do this properly.

 

The startup script of OScam in OpenPLi is:  /etc/init.d/softcam   which is a symlink normally pointing to softcam -> softcam.oscam

 

oscam binary is in:  /usr/bin/oscam  if you manually change it don't forget to chmod 755 oscam

 

There is no default port assigned for the OScam WebIf so if you start oscam so there is no WebIF active.

So specifying a configuration path with a valid oscam.conf  containing: httpport = XXXX  where XXXX is the port number that you want is mandatory to have OScam webif active.

 

https://wiki.streamb...scam.conf#WebIf


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Webif problem with Latest OScam 11719 #14 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 10:41

In OpenPLi the default path for the OScam configuration file is:  /etc/tuxbox/config/oscam/   by default oscam is not looking in this folder since it tries to use /usr/local/etc (this can be overwritten at compilation time).

 

So you need to say oscam where to find the configuration file:

So you need to start your OScam with:

 

--config-dir /etc/tuxbox/config/oscam

 

as parameter.

 

If you use the oscam from the feed everything is fine, if you manually try to install another oscam version then you need to learn how to do this properly.

 

The startup script of OScam in OpenPLi is:  /etc/init.d/softcam   which is a symlink normally pointing to softcam -> softcam.oscam

 

oscam binary is in:  /usr/bin/oscam  if you manually change it don't forget to chmod 755 oscam

 

There is no default port assigned for the OScam WebIf so if you start oscam so there is no WebIF active.

So specifying a configuration path with a valid oscam.conf  containing: httpport = XXXX  where XXXX is the port number that you want is mandatory to have OScam webif active.

 

https://wiki.streamb...scam.conf#WebIf

okay, when I get home I try this configuration of yours, thx men!



Re: Webif problem with Latest OScam 11719 #15 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 10 June 2023 - 12:53

how can i update openpli feeds?

 

By command in the terminal as follows:

opkg update

Not as opkg upgrade because the upgrade argument will start updating everything. While the update argument just updates the offline list of available (online) packages.

 

Or also when you enter the Plugin-MENU (the installation Plugin-MENU) with the help of RCU, the offline list of available (online) packages in your set-top box is also updated automatically.


Edited by s3n0, 10 June 2023 - 12:58.


Re: Webif problem with Latest OScam 11719 #16 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 14:20

In OpenPLi the default path for the OScam configuration file is:  /etc/tuxbox/config/oscam/   by default oscam is not looking in this folder since it tries to use /usr/local/etc (this can be overwritten at compilation time).

 

So you need to say oscam where to find the configuration file:

So you need to start your OScam with:

 

--config-dir /etc/tuxbox/config/oscam

 

as parameter.

 

If you use the oscam from the feed everything is fine, if you manually try to install another oscam version then you need to learn how to do this properly.

 

The startup script of OScam in OpenPLi is:  /etc/init.d/softcam   which is a symlink normally pointing to softcam -> softcam.oscam

 

oscam binary is in:  /usr/bin/oscam  if you manually change it don't forget to chmod 755 oscam

 

There is no default port assigned for the OScam WebIf so if you start oscam so there is no WebIF active.

So specifying a configuration path with a valid oscam.conf  containing: httpport = XXXX  where XXXX is the port number that you want is mandatory to have OScam webif active.

 

https://wiki.streamb...scam.conf#WebIf

this is my oscam original (etc/init.d)

 

CAMNAME="OSCam_11719-r798"

remove_tmp() {
    rm -rf /tmp/*.info* /tmp/*.tmp* /tmp/*share* /tmp/*.pid* /tmp/*sbox* /tmp/oscam* /tmp/.oscam
}


case "$1" in
start)
    ulimit 1024
    remove_tmp
    /usr/bin/${CAMNAME} --daemon --pidfile /tmp/cam.pid --restart 2 --utf8 &
    ;;
stop)
    killall -9 ${CAMNAME} 2>/dev/null
    remove_tmp
    ;;
restart | reload)
    $0 stop
    sleep 1
    $0 start
    ;;
version)
    echo "${CAMNAME}"
    ;;
info)
    echo "${CAMNAME}"
    ;;
*)
    echo "Usage: $0 start|stop|restart"
    exit 1
    ;;
esac
exit 0

 

 

i added your values but it doesn’t work the same…


Edited by marcus83, 10 June 2023 - 14:21.


Re: Webif problem with Latest OScam 11719 #17 Pr2

  • PLi® Contributor
  • 6,182 posts

+261
Excellent

Posted 10 June 2023 - 15:02

I don't think that you are using the standard OpenPLi OScam startup script so perform this:
 
Create a file /etc/init.d/softcam.OScamOpenPLi
 
With the following content:
#!/bin/sh
case "$1" in
start)
        ulimit -s 1024
        /usr/bin/oscam --wait 60 --config-dir /etc/tuxbox/config/oscam --daemon --pidfile /tmp/oscam.pid --restart 2 --utf8
        ;;
stop)
        kill `cat /tmp/oscam.pid` 2> /dev/null
        # in case a normal stop failed
        killall /usr/bin/oscam
        ;;
restart|reload)
        $0 stop
        $0 start
        ;;
version)
        echo "gitAUTOINC+c41959f135"
        ;;
info)
        echo "oscam gitAUTOINC+c41959f135"
        ;;
*)
        echo "Usage: $0 start|stop|restart"
        exit 1
        ;;
esac
exit 0

Then:
cd /etc/init.d/
./softcam stop
rm softcam
ln -s softcam.OScamOpenPLi softcam
./softcam start
You can also create symlink to the OScam version you want to test.
 
cd /usr/bin/
ls -Falh oscam

Check if it is already a symlink or not.

If it is a symlink then:

rm oscam
ln -s oscamXXXXX oscam

where oscamXXXX is the name of the oscam binary that you want to test.

if it's not a symlink then keep a copy of your current OScam:

mv oscam oscam_old

Then create the symlink:

ln -s oscamXXXXX oscam

Restart you softcam:

/etc/init.d/softcam restart


Edited by Pr2, 10 June 2023 - 15:07.

NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: Webif problem with Latest OScam 11719 #18 marcus83

  • Senior Member
  • 106 posts

0
Neutral

Posted 10 June 2023 - 17:01

what I don't understand why with version 11718 works everything and with the 11719 no, also the 11719 version has the same characteristics oscam 11718 (etc.init.d)

 

enigma2-plugin-softcams-oscam_11719-emu-r798_all.ipk  ------------webif not work

 

enigma2-plugin-softcams-oscam_11718-emu-r798_all.ipk  ------------webif e oscam works regularly



Re: Webif problem with Latest OScam 11719 #19 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 10 June 2023 - 17:36

Hi.

 

As I wrote above... try running Oscam 11719 from the command line (via the terminal). There you will be shown exactly what the problem is - if any at all arose when starting this Oscam. You can easily run it without any parameters. First kill it as force  killall -9 oscam  and then start it again  /usr/bin/oscam  Then... you can to stop the Oscam process (if it is started), by sending the keyboard shortcut "CTRL+C" into the terminal.

 

In your "init.d" script, I don't see a parameter for specifying configuration directory. That's all right. Thus, the system is searched in several folders for the presence of configuration for Oscam. Here is the Oscam source code and directory search sequence. Check whether there are already several other Oscam configuration files in another (next) folder:

static const char* confdirs[] =
    {
        "/etc/tuxbox/config/",
        "/etc/tuxbox/config/oscam/",
        "/var/tuxbox/config/",
        "/usr/keys/",
        "/var/keys/",
        "/var/etc/oscam/",
        "/var/etc/",
        "/var/oscam/",
        "/config/oscam/",
        NULL
    };

https://trac.streamb...k/oscam.c#L1664


Edited by s3n0, 10 June 2023 - 17:38.


Re: Webif problem with Latest OScam 11719 #20 s3n0

  • Senior Member
  • 673 posts

+62
Good

Posted 10 June 2023 - 17:50

BTW, where did you download these IPK packages ? According to their exact name, they do not belong to the PLi feed server :). They are from another source. Not from the PLi feed. This could be a faulty build version of Oscam.The IPK package for Oscam, on the PLi feed, has a name such as:

 

enigma2-plugin-softcams-oscam-emu_git1988+a137cbf-r0.3_mips32el.ipk

enigma2-plugin-softcams-oscam_git10622+ede10dc-r0.1_mips32el.ipk

enigma2-plugin-softcams-oscam_git10622+ede10dc-r0.1_cortexa15hf-neon-vfpv4.ipk

...

etc.


Edited by s3n0, 10 June 2023 - 17:51.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users