Oscam no running

There are 36 replies in this Thread which was already clicked 1,602 times. The last Post () by muta.

  • oscam fails to start
    need some advice please. my debian server oscam is refusing to start. all is upto date.


    root@muta:~# ps x
    PID TTY STAT TIME COMMAND
    1 ? Ss 0:01 init [2]
    2 ? S 0:00 [kthreadd]
    3 ? S 0:00 [ksoftirqd/0]
    4 ? S 0:00 [kworker/0:0]
    5 ? S 0:00 [kworker/u:0]
    6 ? S 0:00 [migration/0]
    7 ? S 0:00 [watchdog/0]
    8 ? S< 0:00 [cpuset]
    9 ? S< 0:00 [khelper]
    10 ? S 0:00 [kdevtmpfs]
    11 ? S< 0:00 [netns]
    12 ? S 0:00 [sync_supers]
    13 ? S 0:00 [bdi-default]
    14 ? S< 0:00 [kintegrityd]
    15 ? S< 0:00 [kblockd]
    16 ? S 0:00 [kworker/0:1]
    17 ? S 0:00 [khungtaskd]
    18 ? S 0:00 [kswapd0]
    19 ? SN 0:00 [ksmd]
    20 ? S 0:00 [fsnotify_mark]
    21 ? S< 0:00 [crypto]
    24 ? S 0:00 [kworker/0:2]
    110 ? S 0:00 [khubd]
    129 ? S< 0:00 [firewire]
    130 ? S< 0:00 [ata_sff]
    133 ? S 0:00 [scsi_eh_0]
    134 ? S 0:00 [scsi_eh_1]
    135 ? S 0:00 [kworker/u:1]
    136 ? S 0:00 [kworker/u:2]
    137 ? S 0:00 [scsi_eh_2]
    138 ? S 0:00 [scsi_eh_3]
    139 ? S 0:00 [kworker/u:3]
    140 ? S 0:00 [kworker/u:4]
    175 ? S 0:00 [jbd2/sda1-8]
    176 ? S< 0:00 [ext4-dio-unwrit]
    311 ? Ss 0:00 udevd --daemon
    374 ? S 0:00 udevd --daemon
    375 ? S 0:00 udevd --daemon
    403 ? S 0:00 [scsi_eh_4]
    404 ? S 0:00 [usb-storage]
    426 ? S< 0:00 [hd-audio0]
    432 ? S< 0:00 [ttm_swap]
    448 ? S 0:00 [kworker/0:3]
    452 ? S 0:00 [kworker/0:4]
    453 ? S 0:00 [kworker/0:5]
    457 ? S 0:00 [kworker/0:6]
    1227 ? S 0:00 [jbd2/sda9-8]
    1228 ? S< 0:00 [ext4-dio-unwrit]
    1232 ? S 0:00 [jbd2/sda8-8]
    1233 ? S< 0:00 [ext4-dio-unwrit]
    1234 ? S 0:00 [jbd2/sda5-8]
    1235 ? S< 0:00 [ext4-dio-unwrit]
    1236 ? S 0:00 [jbd2/sda6-8]
    1237 ? S< 0:00 [ext4-dio-unwrit]
    1513 ? Ss 0:00 /sbin/rpcbind -w
    1549 ? S< 0:00 [rpciod]
    1551 ? S< 0:00 [nfsiod]
    1558 ? Ss 0:00 /usr/sbin/rpc.idmapd
    1827 ? Sl 0:00 /usr/sbin/rsyslogd -c5
    1851 ? S 0:00 [flush-8:0]
    1858 ? Ss 0:00 /usr/sbin/acpid
    1894 ? Ss 0:00 /usr/sbin/apache2 -k start
    2019 ? Ss 0:00 /usr/sbin/cron
    2355 ? Sl 0:00 /usr/sbin/pcscd
    2369 ? Ss 0:00 /usr/sbin/sshd
    2394 tty1 Ss+ 0:00 /sbin/getty 38400 tty1
    2395 tty2 Ss+ 0:00 /sbin/getty 38400 tty2
    2396 tty3 Ss+ 0:00 /sbin/getty 38400 tty3
    2397 tty4 Ss+ 0:00 /sbin/getty 38400 tty4
    2398 tty5 Ss+ 0:00 /sbin/getty 38400 tty5
    2399 tty6 Ss+ 0:00 /sbin/getty 38400 tty6
    2400 ? Ss 0:00 sshd: root@pts/0
    2402 pts/0 Ss 0:00 -bash
    2495 ? Ss 0:00 /usr/local/bin/oscam -b -c /usr/local/etc
    2498 ? S<l 0:00 /usr/local/bin/oscam -b -c /usr/local/etc
    2541 pts/0 R+ 0:00 ps x
    root@muta:~# /etc/init.d/oscam status
    oscam
    [FAIL] oscam is not running ... failed!


    please advice
    thx



    Sent from my iPhone using Tapatalk

  • From "ps" it whows it has started. I am not sure the status function is always accurate.


    Can you connect to webif?


    Try to do

    Code
    netstat -antp | grep oscam

    and see if oscam is listening on any ports.


    Try starting oscam from the command line and see what it shows.

  • If I start oscam this what I get. No I cannot connect to webif. That code to see listening ports I seem to be getting it wrong.



    Sent from my iPhone using Tapatalk

    Edited 2 times, last by muta ().

  • First error looks like you type "--c" instead of "-c" on command line.


    Other errors should not keep it from running.


    Can you show the end of log when it stops?


    Can you post the oscam.conf file (removing any passwords...)

  • [global]
    serverip = 192.168.1.20
    nice = -1
    WaitForCards = 1
    saveinithistory = 1

    [cccam]
    port = 12222
    reshare = 1
    version = 2.3.0
    updateinterval = 900


    # logging
    pidfile = /var/run/oscam.pid
    logfile = /var/log/oscam.log
    usrfile = /var/log/oscamuser.log
    cwlogdir = /var/log/cw.log
    maxlogsize = 1000

    # web interface
    [webif]
    httpport = 1234
    httpuser = oscam
    httppwd = password
    httpallowed = 0.0.0.0-255.255.255.255


    - - - Updated - - -


    650a1.png


    thats after the command

    Edited once, last by muta ().

  • Your logging options need to be in the [global] section.

  • bc9fae6dfa63d86cb2b8e.png


    after changing getting this after command


    - - - Updated - - -


    /usr/local/bin/oscam -b -r2


    found this command on google after searching for "start oscam manually" good news is its now running but i have to put that command every time i switch server on.anyway of making it run auto? the other thing is my client is not connecting.
    user config [account]
    user = test
    pwd = password
    uniq = 3
    au = whitecard
    group = 1,2,3


    C: dyndns.org 12222 test password

  • d893c8029e5f6af0cdb0dac.png
    after typing that command


    - - - Updated - - -


    #!/bin/sh
    # Start/stop the OScam daemon.
    #
    ### BEGIN INIT INFO
    # Provides: OScam
    # Required-Start: $syslog $network $pcscd
    # Required-Stop: $syslog $network $pcscd
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Start and Stop OScam
    # Description: OScam init script. This script start and stop OScam.
    ### END INIT INFO

    . /lib/lsb/init-functions

    NAME=oscam
    DAEMON=/usr/local/bin/$NAME
    CONFIG_DIR=/usr/local/etc
    PIDFILE=/var/run/oscam.pid
    LOG=/var/log/oscam.log
    LOGUSR=/var/log/oscamuser.log
    LOGCW=/var/log/cw.log
    STARTAS="$DAEMON -- -b -c $CONFIG_DIR"

    #test -f $DAEMON || exit 0

    [ -d $CONFIG_DIR ] || exit 0

    echo $NAME

    clear_file() {
    # Clear log and pid file if exists
    if [ -e $PIDFILE ]
    then
    rm -f $PIDFILE
    fi
    if [ -e $LOG ]
    then
    rm -f $LOG
    fi
    if [ -e $LOGUSR ]
    then
    rm -f $LOGUSR
    fi
    if [ -e $LOGCW ]
    then
    rm -f $LOGCW
    fi
    }
    case "$1" in
    start)
    clear_file

    log_daemon_msg "Starting OScam daemon" "OScam"
    start-stop-daemon --start --quiet --exe $DAEMON --startas $STARTAS
    log_end_msg $?
    ;;
    stop)
    log_daemon_msg "Stopping OScam daemon" "OScam"
    start-stop-daemon --stop --quiet --exe $DAEMON
    log_end_msg $?
    ;;
    restart)
    log_daemon_msg "Restarting OScam daemon" "OScam"
    start-stop-daemon --stop --retry 5 --quiet --exe $DAEMON
    clear_file
    start-stop-daemon --start --quiet --exe $DAEMON --startas $STARTAS
    log_end_msg $?
    ;;
    status)
    status_of_proc -p $PIDFILE $DAEMON $NAME && exit 0 || exit $?
    ;;
    *)
    log_action_msg "Usage: /etc/init.d/OScam {start|stop|restart|status}"
    exit 2
    ;;
    esac
    exit 0


    - - - Updated - - -


    if i dont have this command oscam does not start


    /usr/local/bin/oscam -b -r2

  • root@muta:~# bash -x /etc/init.d/oscam start
    + . /lib/lsb/init-functions
    +++ run-parts --lsbsysinit --list /lib/lsb/init-functions.d
    ++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)'
    ++ '[' -r /lib/lsb/init-functions.d/20-left-info-blocks ']'
    ++ . /lib/lsb/init-functions.d/20-left-info-blocks
    ++ for hook in '$(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/null)'
    ++ '[' -r /lib/lsb/init-functions.d/40-systemd ']'
    ++ . /lib/lsb/init-functions.d/40-systemd
    +++ _use_systemctl=0
    +++ '[' -d /run/systemd/system ']'
    +++ '[' -n '' ']'
    +++ '[' 1349 -ne 1 ']'
    +++ '[' -z '' ']'
    +++ '[' -z '' ']'
    +++ case $(readlink -f "$0") in
    ++++ readlink -f /etc/init.d/oscam
    +++ _use_systemctl=1
    +++ prog=oscam
    +++ service=oscam.service
    ++++ systemctl -p CanReload show oscam.service
    +++ '[' CanReload=no = CanReload=no ']'
    +++ '[' start = reload ']'
    +++ '[' 1 = 1 ']'
    +++ set +e
    +++ set +u
    +++ '[' xstart = xstart -o xstart = xstop -o xstart = xrestart -o xstart = xreload -o xstart = xforce-reload -o xstart = xstatus ']'
    +++ systemctl_redirect /etc/init.d/oscam start
    +++ local s
    +++ local rc
    +++ local prog=oscam
    +++ local command=start
    +++ case "$command" in
    +++ s='Starting oscam (via systemctl)'
    +++ service=oscam.service
    ++++ systemctl -p LoadState show oscam.service
    +++ state=LoadState=loaded
    +++ '[' LoadState=loaded = LoadState=masked ']'
    +++ '[' start = status ']'
    +++ log_daemon_msg 'Starting oscam (via systemctl)' oscam.service
    +++ '[' -z 'Starting oscam (via systemctl)' ']'
    +++ log_daemon_msg_pre 'Starting oscam (via systemctl)' oscam.service
    +++ log_use_fancy_output
    +++ TPUT=/usr/bin/tput
    +++ EXPR=/usr/bin/expr
    +++ '[' -t 1 ']'
    +++ '[' xxterm '!=' x ']'
    +++ '[' xxterm '!=' xdumb ']'
    +++ '[' -x /usr/bin/tput ']'
    +++ '[' -x /usr/bin/expr ']'
    +++ /usr/bin/tput hpa 60
    +++ /usr/bin/tput setaf 1
    +++ '[' -z ']'
    +++ FANCYTTY=1
    +++ case "$FANCYTTY" in
    +++ true
    +++ echo -n '[....] '
    [....] +++ '[' -z oscam.service ']'
    +++ echo -n 'Starting oscam (via systemctl): oscam.service'
    Starting oscam (via systemctl): oscam.service+++ log_daemon_msg_post 'Starting oscam (via systemctl)' oscam.service
    +++ :
    +++ /bin/systemctl start oscam.service
    +++ rc=0
    +++ '[' start = status ']'
    +++ log_end_msg 0
    +++ '[' -z 0 ']'
    +++ local retval
    +++ retval=0
    +++ log_end_msg_pre 0
    +++ log_use_fancy_output
    +++ TPUT=/usr/bin/tput
    +++ EXPR=/usr/bin/expr
    +++ '[' -t 1 ']'
    +++ '[' xxterm '!=' x ']'
    +++ '[' xxterm '!=' xdumb ']'
    +++ '[' -x /usr/bin/tput ']'
    +++ '[' -x /usr/bin/expr ']'
    +++ /usr/bin/tput hpa 60
    +++ /usr/bin/tput setaf 1
    +++ '[' -z 1 ']'
    +++ true
    +++ case "$FANCYTTY" in
    +++ true
    ++++ /usr/bin/tput setaf 1
    +++ RED=''
    ++++ /usr/bin/tput setaf 2
    +++ GREEN=''
    ++++ /usr/bin/tput setaf 3
    +++ YELLOW=''
    ++++ /usr/bin/tput op
    +++ NORMAL=''
    +++ /usr/bin/tput civis
    +++ /usr/bin/tput sc
    +++ /usr/bin/tput hpa 0
    +++ '[' 0 -eq 0 ']'
    +++ /bin/echo -ne '[ ok '
    [ ok +++ /usr/bin/tput rc
    +++ /usr/bin/tput cnorm
    +++ log_use_fancy_output
    +++ TPUT=/usr/bin/tput
    +++ EXPR=/usr/bin/expr
    +++ '[' -t 1 ']'
    +++ '[' xxterm '!=' x ']'
    +++ '[' xxterm '!=' xdumb ']'
    +++ '[' -x /usr/bin/tput ']'
    +++ '[' -x /usr/bin/expr ']'
    +++ /usr/bin/tput hpa 60
    +++ /usr/bin/tput setaf 1
    +++ '[' -z 1 ']'
    +++ true
    +++ case "$FANCYTTY" in
    +++ true
    ++++ /usr/bin/tput setaf 1
    +++ RED=''
    ++++ /usr/bin/tput setaf 3
    +++ YELLOW=''
    ++++ /usr/bin/tput op
    +++ NORMAL=''
    +++ '[' 0 -eq 0 ']'
    +++ echo .
    .
    +++ log_end_msg_post 0
    +++ :
    +++ return 0
    +++ return 0
    +++ exit 0
    root@muta:~#

  • You need to find out why it is crashing (if it is...)


    Try running it in the foreground and see where it crashes:

    Code
    /usr/local/bin/oscam -d -c /usr/local/etc


    Are the only config files in /usr/local/etc ??


    What files are in /usr/local/etc ?

  • Code
    ls -al /usr/local/etc
    find / -name oscam.conf


    second command may take awhile.


    But if you run oscam like I wrote, it should tell you where it is loading config files from.


    Also, once it is running, connect to it from the webif ( hxxp://<ip address>:8888 )

    Edited once, last by joeuser ().

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!