Project

General

Profile

Issues with OScam and Tvheadend - (newcamd) Connection closed to client

Added by Anonymous over 8 years ago

I'm getting the following errors (note the last lines):

/var/log/oscam/oscam.log:

-------------------------------------------------------------------------------
>> OSCam <<  cardserver log switched at Fri Jul 22 02:48:06 2016
-------------------------------------------------------------------------------
2016/07/22 02:48:06 00000000 s >> OSCam <<  cardserver log switched, version 1.20-unstable_sv                                                                                                    n, build r0 (x86_64-linux-gnu)
2016/07/22 02:48:06 00000000 s     (main) System name    = Linux
2016/07/22 02:48:06 00000000 s     (main) Host name      = dunder
2016/07/22 02:48:06 00000000 s     (main) Release        = 4.4.0-31-generic
2016/07/22 02:48:06 00000000 s     (main) Version        = #50-Ubuntu SMP Wed Jul 13 00:07:12                                                                                                     UTC 2016
2016/07/22 02:48:06 00000000 s     (main) Machine        = x86_64
2016/07/22 02:48:06 00000000 s     (main) creating pidfile /var/run/oscam-svn.pid with pid 10                                                                                                    851
2016/07/22 02:48:06 00000000 s   (config) services reloaded: 0 services freed, 2 services loa                                                                                                    ded, rejected 0
2016/07/22 02:48:06 00000000 s   (config) userdb reloaded: 1 accounts loaded, 0 expired, 0 di                                                                                                    sabled
2016/07/22 02:48:06 00000000 s     (main) signal handling initialized
2016/07/22 02:48:06 00000000 s   (config) 2 service-id's loaded in 0 ms
2016/07/22 02:48:06 00000000 s   (config) 1 lengths for caid guessing loaded
2016/07/22 02:48:06 00000000 s      (net) monitor: initialized (fd=6, port=988)
2016/07/22 02:48:06 00000000 s      (net) newcamd: initialized (fd=7, port=34000)
2016/07/22 02:48:06 00000000 s      (net) -> CAID: 0941 PROVID: FFFFFF
2016/07/22 02:48:06 00000000 s      (net) radegast: initialized (fd=8, port=10001)
2016/07/22 02:48:06 00000000 s   (reader) pcscreader [pcsc] creating thread for device 0
2016/07/22 02:48:06 00000000 s     (stat) loadbalancer: could not open /tmp/oscam-svn/stat fo                                                                                                    r reading (errno=2 No such file or directory)
2016/07/22 02:48:06 00000000 s     (main) waiting for local card init
2016/07/22 02:48:06 012A449C r   (reader) pcscreader [pcsc] Reader initialized (device=0, det                                                                                                    ect=cd, mhz=357, cardmhz=357)
2016/07/22 02:48:06 7BD37A7A h    (webif) webif: decompressed 174347 bytes back into 423256 b                                                                                                    ytes
2016/07/22 02:48:06 7BD37A7A h    (webif) HTTP Server running. ip=0.0.0.0 port=8888
2016/07/22 02:48:07 012A449C r   (reader) pcscreader [pcsc] PCSC was opened with handle: 2105                                                                                                    496053
2016/07/22 02:48:07 012A449C r   (reader) pcscreader [pcsc] card detected
2016/07/22 02:48:07 012A449C r   (reader) pcscreader [pcsc] ATR: 3F FD 11 25 02 50 80 0F 41 B                                                                                                    0 0A 69 FF 4A 50 70 80 00 5A 45 03
2016/07/22 02:48:08 012A449C r   (reader) pcscreader [pcsc] Card type:   ZETV
2016/07/22 02:48:08 012A449C r   (reader) pcscreader [pcsc] Rom version: 20AA
2016/07/22 02:48:08 012A449C r   (reader) pcscreader [pcsc] Credit available on card: 0 euro
2016/07/22 02:48:08 012A449C r   (reader) pcscreader [pcsc] Extended 4C detected
2016/07/22 02:48:08 012A449C r   (reader) pcscreader [pcsc] FuseByte: 00
2016/07/22 02:48:08 012A449C r   (reader) pcscreader [pcsc] Region Code:
2016/07/22 02:48:08 012A449C r   (reader) pcscreader [pcsc] Country Code: NOR
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [pcsc] Pincode read: 0000
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [pcsc] PCB settings: FF 7F 0 0
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [pcsc] type: VideoGuard Get Norway (0941                                                                                                    ), caid: 0941
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [pcsc] serial: ########, BoxID: ########                                                                                                    , baseyear: 2004
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [pcsc] ready for requests
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [pcsc] found card system videoguard2
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [videoguard2] THIS WAS A SUCCESSFUL STAR                                                                                                    T ATTEMPT No  1 out of max alloted of 1
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [videoguard2] card detected
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [videoguard2] type: VideoGuard Get Norwa                                                                                                    y (0941)
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [videoguard2] --------------------------                                                                                                    ----------------------------------------
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [videoguard2] |- class -|-- tier --|----                                                                                                    - valid to ------|--- package name ----|
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [videoguard2] +---------+----------+----                                                                                                    -----------------+---------------------+
2016/07/22 02:48:09 012A449C r   (reader) pcscreader [videoguard2] |------- This card is not                                                                                                     active, so no package available! ------|
2016/07/22 02:48:10 012A449C r   (reader) pcscreader [videoguard2] --------------------------                                                                                                    ----------------------------from-ins70--
2016/07/22 02:48:11 00000000 s     (main) init for all local cards done
2016/07/22 02:48:11 00000000 s (emmcache) loaded 0 emmcache records from /tmp/oscam-svn/oscam                                                                                                    .emmcache in 0 ms
2016/07/22 02:48:11 00000000 s (emmcache) loaded 0 emmstat records from /tmp/oscam-svn/oscam.                                                                                                    emmstat in 0 ms
2016/07/22 02:48:11 00000000 s (anticasc) anti cascading disabled
2016/07/22 02:48:11 6A6A1C4A c  (newcamd) client connected to 34000 port
2016/07/22 02:48:13 6A6A1C4A c  (newcamd) Connection closed to client
2016/07/22 02:48:13 6A6A1C4A c   (client) anonymous disconnected from 127.0.0.1

... the last 3 lines repeats continuously...

snippet from syslog (tvheadend outputs there):

Jul 22 03:05:56 dunder tvheadend[5953]: cwc: Connected to 127.0.0.1:34000
Jul 22 03:05:59 dunder tvheadend[5953]: cwc: read error 104 (Connection reset by peer)
Jul 22 03:05:59 dunder tvheadend[5953]: cwc: 127.0.0.1:34000: Wait login response: Read error (header): Connection reset by peer
Jul 22 03:05:59 dunder tvheadend[5953]: cwc: Disconnected from 127.0.0.1:34000

My config files:

/etc/oscam/oscam.conf

[global]
nice          = -1
WaitForCards  = 1
logfile       = /var/log/oscam/oscam.log
usrfile       = /var/log/oscam/oscamuser.log
cwlogdir      = /var/log/oscam/cw

[monitor]
port          = 988
aulow         = 120
monlevel      = 1

[webif]
httpport      = 8888
httpuser      = tvh
httppwd       = tvh
httpallowed   = 0.0.0.0

[newcamd]
key           = 0102030405060708091011121314
port          = 34000@0941:FFFFFF
allowed       = 127.0.0.1

[radegast]
port          = 10001
user          = dummy
allowed       = 127.0.0.1

/etc/oscam/oscam.user

[account]
user     = tvh
pwd      = tvh
group    = 1
au       = 1
ident    = 0941:FFFFFF
caid     = 0941

/etc/oscam/oscam.server

[reader]
label                         = pcscreader
description                   = internal
protocol                      = pcsc
device                        = 0
caid                          = 0941
boxid                         = 3439832012
detect                        = cd
group                         = 1
emmcache                      = 1,3,0
saveemm-unknown               = 1
saveemm-u                     = 1
saveemm-s                     = 1
saveemm-g                     = 1

And in Tvheadend->Configuration-CAs:

Tvheadend version: 4.1-2141~g01c26fc
OScam version: 1.20

I'd really appreciate the help, I'm sure this is just some silly thing..


Replies (1)

RE: Issues with OScam and Tvheadend - (newcamd) Connection closed to client - Added by Anonymous over 8 years ago

Solveing my own question;

The problem lied within the key in [newcamd] section (it wasnt corresponding with the one in Tveadend. I thought it was hex translated in OScam vs. TVH but it wasn't)

    (1-1/1)