PDA

View Full Version : oscam restarts every 6 minutes with autostartup enabled on vix 2.2



fintannl
17-06-11, 03:19
here is the cam.check.log. Issue does not arise with autostartup not ticked.

2011-06-17 02:44: Starting oscam-svn5400
2011-06-17 02:47: Timer Check Enabled
2011-06-17 02:47: oscam-svn5400 running OK
2011-06-17 02:47: oscam-svn5400 is frozen, Restarting...
2011-06-17 02:47: AutoStopping: oscam-svn5400
2011-06-17 02:47: AutoStarting: oscam-svn5400
2011-06-17 02:53: Timer Check Enabled
2011-06-17 02:53: oscam-svn5400 running OK
2011-06-17 02:53: oscam-svn5400 is frozen, Restarting...
2011-06-17 02:53: AutoStopping: oscam-svn5400
2011-06-17 02:53: AutoStarting: oscam-svn5400
2011-06-17 02:59: Timer Check Enabled
2011-06-17 02:59: oscam-svn5400 running OK
2011-06-17 02:59: oscam-svn5400 is frozen, Restarting...
2011-06-17 02:59: AutoStopping: oscam-svn5400
2011-06-17 02:59: AutoStarting: oscam-svn5400
2011-06-17 03:05: Timer Check Enabled
2011-06-17 03:05: oscam-svn5400 running OK
2011-06-17 03:05: oscam-svn5400 is frozen, Restarting...
2011-06-17 03:05: AutoStopping: oscam-svn5400
2011-06-17 03:05: AutoStarting: oscam-svn5400

pooface
17-06-11, 05:57
How did u install oscam?

Sent with Tapatalk

fintannl
17-06-11, 09:22
took one of the oscam ipks from the cam repository shown on this site. Installed one of the versions in the repository into /tmp and used the vix ipk installer. Then downloaded latest oscam from ump file centre. Took the mipsel file in this zip and overwrote the oscam binary that is in /usr/softcams. chmoded to 755 and set it active. I have done this with multiple versions of oscam and get the same result every time which leads me to believe this is a vix issue and not an oscam issue

pooface
17-06-11, 09:38
Looking at the binary of the oscam from the zip you installed, it's called "oscam-svn5400". What was the name of the file from the original ipk? If you just rename oscam-svn5400 to oscam, see if it makes any difference...

fintannl
17-06-11, 10:02
strangely when i do this it now restarts every 5 minutes instead of every 6 minutes????

fintannl
17-06-11, 10:11
actual name of file is oscam-svn5400-mips-tuxbox

pooface
17-06-11, 11:04
In oscam.conf, do you have anything configured under the [monitor] section and the [webif] section?

cypchris
17-06-11, 11:51
pooface is on the right track just delete the moniotr section in you oscam.conf

Alias1
17-06-11, 13:03
pooface is on the right track just delete the moniotr section in you oscam.conf
Should have nothing to do with it if oscam runs fine without auto start enabled there is something else wrong

pooface
17-06-11, 13:10
Not too sure on how or if the monitor section affects the softcam manager, but if the webif section doesn't have any info in, or doesn't allow access to 127.0.0.1, then it is unable to check whether it is running properly, and so will restart it...

Alias1
17-06-11, 14:18
Not too sure on how or if the monitor section affects the softcam manager, but if the webif section doesn't have any info in, or doesn't allow access to 127.0.0.1, then it is unable to check whether it is running properly, and so will restart it...
Web interface is optional on oscam some versions even come without it

Donnie
17-06-11, 15:29
In your cam start script have you added r2 ? if yes this restarts oscam when there are segmentation faults.
Other than that I suggest a debug with -255

fintannl
17-06-11, 15:44
donnie, i don't know what the r2 is about. pooface i have both monitor and webif. Within webif I do not have a username and password. However web interface works fine. While I do have a monitor section I have never really figured what it is used for. Note that Oscam runs cleanly without autostart. I had it running all last night and today. I'm not inclined to remove the web interface section but I can remove the monitor and report back

fintannl
17-06-11, 15:47
this all strikes of the exact same issue in previous versions of vix. however in that case it was cccam restarting every 30 minutes because for some reason the cam manager thought the cam was frozen

Donnie
17-06-11, 17:08
donnie, i don't know what the r2 is about. pooface i have both monitor and webif. Within webif I do not have a username and password. However web interface works fine. While I do have a monitor section I have never really figured what it is used for. Note that Oscam runs cleanly without autostart. I had it running all last night and today. I'm not inclined to remove the web interface section but I can remove the monitor and report back


Here is an explaination of r2


-r <level>
restart level:

0 = disabled, restart request sets exit status to 99
1 = restart activated, web interface can restart oscam (default)
2 = like 1, but also restart on segmentation faults

All the info can be found on oscam wiki also as I have suggested debug with -255 this will help if it is a configuration problem.

When you start the binary you normally use & but this can be substituted with r2 which enables auto restart with segmentation faults.

pooface
17-06-11, 17:38
Definitely a problem with it checking that oscam is running. It should look like this in the check:


2011-06-16 04:33: Timer Check Enabled
2011-06-16 04:33: Oscam running OK
2011-06-16 04:33: Oscam is responding like it should
2011-06-16 04:33: CCcam.2.2.1 running OK
2011-06-16 04:33: CCcam.2.2.1 is responding like it should
2011-06-16 04:39: Timer Check Enabled
2011-06-16 04:39: Oscam running OK
2011-06-16 04:39: Oscam is responding like it should
2011-06-16 04:39: CCcam.2.2.1 running OK
2011-06-16 04:39: CCcam.2.2.1 is responding like it should

Have you tried accessing oscam info. Go to Blue -> Oscam Info -> Setup. Ensure the "Read Userdata from oscam.conf" is set to yes. Then, choose on of the options such as Show Readers/Proxies etc. Or the show log. Does this work correctly?

nzdream
17-06-11, 17:50
HI, I would also like some information on how to set up oscam? Has anyone got a good tutorial? And example oscam.conf file? This is for local card not cs

Stanman
17-06-11, 18:40
I had the exact same problems some time back and even posted on here. The only one that would work for me was 4587 or 4857 and every version I downloaded form the Oscam UMP would constantly restart every few minutes.

I deleted load balancing from the conf and also started to use filezilla to set the permissions etc. It might be purely coincidental but not had any restart issues whatsoever, before that it was every single version would restart. I am currently on 5352 and touch wood everything is fine.
Your not by any chance using DCC to set the permissions?

Alias1
18-06-11, 00:23
For a tutorial have a look in the emulator section I set one up

fintannl
18-06-11, 17:43
thanks all, just back from visiting folk. stanman i'll try the version of oscam you suggest. I use flashfxp or all ftp stuff and chmoding. Never had a problem with it. Never liked DCC

fintannl
18-06-11, 18:03
stanman, are you running vix 2.2? I uses version of oscam suggested but still restarts every 6 minutes with autostart enabled

Stanman
18-06-11, 19:18
Yes I am mate, 2.2 on the ET9000.

Check your conf and others and try to keep it to the bear minimum. I had the exact same problems but I wish I could tell you this is what I did but cant as it sorted itself out.

The only changes I did was to delete load balancing and start using filezilla rather than DCC.

If you want can compare your settings with mine but I am no expert or even a novice in this area, had help from my friends.:thumbsup:

fintannl
18-06-11, 19:31
first can you confirm that you do have autostart enabled. without autostart enabled these versions of oscam work perfectly

Stanman
18-06-11, 19:37
If your talking about autostart in softcam manager, than yes its set to autostart.

fintannl
18-06-11, 19:46
ok, need to look at conf. could ye folks have a look at this conf and see what might be the issue

[global]
nice = -1
WaitForCards = 1
preferlocalcards = 1
saveinithistory = 1

# logging

logfile = /var/log/oscam.log
usrfile = /var/log/oscamuser.log
cwlogdir = /opt/oscam/cw

# monitor

[monitor]
port = 988
nocrypt = 127.0.0.1
aulow = 120
monlevel = 4

# web interface

[webif]
httpport = 9000
httprefresh = 5
httpallowed = 127.0.0.1,192.168.1.0-192.168.1.255

# protocols

[cccam]
port = 19010
reshare = 2
ignorereshare = 0
forward_origin_card = 0
version = 2.2.1
updateinterval = 240
minimizecards = 0
keepconnected = 1
stealth = 0
reshare_mode = 1

[dvbapi]
enabled = 1
user = root
au = 1

pooface
18-06-11, 19:59
try moving the webif section down to the bottom of the list... I know we had a problem during beta testing with it there, but I remember andy saying he'd put a check in so that it could be anywhere in the file. Maybe he overwrote the code with old or reverted somehow?!

Stanman
18-06-11, 20:02
in Global I have
maxlogsize = 250
waitforcards = 0

monitor port is 989
nocrypt is blank
monlevel is 1

webif
refresh is 10

cccam
reshare is 1 and rest is this
reshare = 1
version = 2.2.1
updateinterval = 240
minimizecards = 0

DVbapi is
enabled = 1
au = 0
boxtype = dreambox
user = ET-9000
pmt_mode = 0
request_mode = 0

I only have the log fiel running and not the other two

Hope this helps, you know there is a wiki for oscam?

fintannl
18-06-11, 21:02
moved webif, same prob

pooface
18-06-11, 21:56
moved webif, same prob

And you did restart it after moving the webif?

Stanman
19-06-11, 10:50
These are the layout for my conf file
GLOBAL
MONITOR
DVBAPI
CCCAM
WEBIF

and as poo said you need to restart the cam otherwise the changes do not take effect.

fintannl
19-06-11, 18:54
yep, stopped oscam, made the conf changes and started it again. I'm really mystified as all my conig files are exactly the same as those used in vix 2.1. andy's oscaminfo works perfectly its just his 6 minute thing thats doing my head in. will re-read all the comments and play a little further

fintannl
19-06-11, 19:18
ok, changed oscam.conf to the same format as stanman. have the same version of oscam. and still this 6 minute problem persists. it is so strange that without autostart enabled all is perfect. any further suggestions appreciated

pooface
19-06-11, 19:23
ok, changed oscam.conf to the same format as stanman. have the same version of oscam. and still this 6 minute problem persists. it is so strange that without autostart enabled all is perfect. any further suggestions appreciated

Can you change your webif section to look like this?:


[webif]
httpport = 9000
httpuser = username
httppwd = password
httpallowed = 127.0.0.1,192.168.1.0-192.168.1.255

Obviously change the user and pass to what you want it to be. See if it works ok then...

fintannl
19-06-11, 19:51
pooface, thanks for sticking with me on this one. you got it spot on. i had removed the username and password because previous version of oscaminfo i used required this. However once I put this in the six minute target has now been reached and passed. really appreciate the good advice. however can i suggest that the username and password should not be required and vix 2.2 should be patched to reflect this. thanks again

pooface
19-06-11, 20:33
pooface, thanks for sticking with me on this one. you got it spot on. i had removed the username and password because previous version of oscaminfo i used required this. However once I put this in the six minute target has now been reached and passed. really appreciate the good advice. however can i suggest that the username and password should not be required and vix 2.2 should be patched to reflect this. thanks again

Will feed it back to andy... Think it's been required, as that's how we'd all had it setup, and so hadn't even noticed it as a bug... But I would say that it's probably best to have a user/pass set up just to be more secure :) But glad you've finally sorted it :thumbsup:

fintannl
19-06-11, 21:37
in terms of security it is impossible for users to access my web interface unless i allow it on my router. so naturally i do not allow telnet, ftp. http or any other access via external ip. hence i don't feel a need to password protect webif. hope you understand where i am coming from

pooface
19-06-11, 21:41
in terms of security it is impossible for users to access my web interface unless i allow it on my router. so naturally i do not allow telnet, ftp. http or any other access via external ip. hence i don't feel a need to password protect webif. hope you understand where i am coming from

There is still the opportunity of wifi hacking ;) But yes, in 99.9% of situations (assuming you have wpa2 set up on router), you should be ok :p

Stanman
19-06-11, 21:45
If you restrict the IP address in webif rather than leaving it as a large range of the router will this not help?

fintannl
19-06-11, 21:55
stanman, don't be concerned. its really irrelevant if its one internal ip address or another. pooface has it correct. wpa2 is a secure system for users trying to hack into a system. if they manage to hack into a system it is not important what the internal ip address is as all such addresses would be compromised

fintannl
20-06-11, 02:39
guess , on the other side of this, went to our holiday home, noticed a signal, put up an ariel (booster) programmed my router using dd-wrt as a repeater and quel surpris connection back to my vu+ so I had channels even in holiday home :-). But thats just for fun :-)

pooface
20-06-11, 11:33
however can i suggest that the username and password should not be required and vix 2.2 should be patched to reflect this. thanks again

Andy's added support for this for the next update... Will just need testing and releasing when ready :thumbsup:

wazze
23-02-13, 10:51
Hi
I seems like,again,the way frozen check service verify if oscam is running well should be reviewed because this bug is present again ..

Im using an ET9000 with the last vix image(3.0.600)

2013-02-23 09:38: Timer Check Enabled
2013-02-23 09:38: Couldn't find oscam.5953 running, Starting oscam.5953
2013-02-23 09:38: Couldn't find CCcam.2.1.3 running, Starting CCcam.2.1.3
2013-02-23 09:44: Timer Check Enabled
2013-02-23 09:44: oscam.5953 running OK
2013-02-23 09:44: oscam.5953 is frozen, Restarting...
2013-02-23 09:44: AutoStopping: oscam.5953
2013-02-23 09:44: AutoStopping: CCcam.2.1.3
2013-02-23 09:44: AutoStarting: oscam.5953
2013-02-23 09:44: CCcam.2.1.3 running OK
2013-02-23 09:45: CCcam.2.1.3 is frozen, Restarting...
2013-02-23 09:50: Timer Check Disabled
2013-02-23 09:50: oscam.5953 running OK
2013-02-23 09:50: oscam.5953 is frozen, Restarting...
2013-02-23 09:50: AutoStopping: oscam.5953
2013-02-23 09:50: AutoStopping: CCcam.2.1.3
2013-02-23 09:50: AutoStarting: oscam.5953
2013-02-23 09:50: CCcam.2.1.3 running OK
2013-02-23 09:51: CCcam.2.1.3 is frozen, Restarting...

so..till I didn't disabled the timer check the softcam manager kept restarting the cams.

Salute w