server over night gone sleep?

There are 18 replies in this Thread which was already clicked 991 times. The last Post () by seamouse.

  • morning all,
    went to bed about 1am after the first day of having my cs server working and just got up to no channels and no light on my onimikey and the webif would not load


    rebooted and everything is ok


    i tried to look at the log of last night and only got :



    this is after the reboot a lot of add jobs???????


    also why is there no log from over night???


    looked into where i saved it and it just from the reboot?


    i think it may have something to do with post:


    http://linuxsat-support.com/os…update-script-ubuntu.html


    but on checking my edits, there is nothing in the cron jobs for it.




    but cant confirm as no logs?

  • just in case asked:


    [global]
    logfile = /oscam/oscam.log
    nice = 1
    serialreadertimeout = 150
    maxlogsize = 1000
    preferlocalcards = 1
    dropdups = 1
    max_cache_time = 10

  • looked all over and cant see why still, anyone?


  • Add lines in Red:
    [global]
    logfile = /oscam/oscam.log
    nice = 1
    serialreadertimeout = 150
    maxlogsize = 1000
    preferlocalcards = 1
    dropdups = 1
    max_cache_time = 10
    keepalive = 1
    clienttimeout = 5000
    fallbacktimeout = 2500
    resolvedelay = 30
    clientmaxidle = 120
    cachedelay = 120
    bindwait = 120




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • what will that do mate, or solve? thanks for the help

  • I also use Omnikey with OScam & these settings tuned over time work 100% for me.


    Check out master G's tried & Tested Settings for oscam & SlyUK
    http://linuxsat-support.com/os…ccam2-1-3-s*y-uk-ipk.html




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • ello there,


    just woke up, no light on reader, no channels, :8888 for oscam not working


    but i got some code:



    so at 3.56 went down?


    also for some reason, a hour of no loging? after 00.53

  • Yeah m8, that is an automatic reboot scheduled in your crontab (This is set in your cccam/oscam auto-install script), it looks like it is shutting down oscam at 3.56 (Which is normal) But it is not restarting it immediately. Post your crontab here!
    /etc/crontab


    Here is my Contrab Settings



    The line in Red stops oscam at 03.56AM
    The line in Green restarts oscam at 03.59AM




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • I dont use scripts or cron jobs for the reason above shuts down and dont restart or randon crashing etc, so thats why i installed ubuntu and installed (only) what i needed for the server, i manually restart it in a morning just to re fresh everything, but tbh longest i have had it online is 8 days and not a single problem


    but i do understand people like to use cron jobs scripts and work for them


    i guess its a personal preferance tbh

  • Quote

    i guess its a personal preferance tbh


    agreed, I just don't trust myself enough to restart cccam oscam & server every day and crontab works flawlessly for me.




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • Yeah m8, that is an automatic reboot scheduled in your crontab (This is set in your cccam/oscam auto-install script), it looks like it is shutting down oscam at 3.56 (Which is normal) But it is not restarting it immediately. Post your crontab here!


    already have posted above :)



    56 03 * * * root killall oscam
    57 03 * * * root /var/script/configupdate.sh >> /var/cccamlog/configupdate.log
    58 03 * * * root /var/script/keyupdater.sh
    59 03 * * * root /usr/local/bin/CCcam.x86
    59 03 * * * root /usr/local/bin/oscam -b


    so 3.56 kill it and 3.59 reboot? but its not?

  • i think i can see why


    looking at /usr/local/bin/


    there is no oscam-b file?


    i have:
    a folder in there for build_dr
    on for oscam_backups
    one called oscam-svn?
    and CCam.x86

  • ok killed the server


    i thought maybe the part looking to update the oscam?


    just did this


    /var/local/bin# ./oscam_update.sh
    --> 1rst go to oscam's dir
    [ OK ]
    --> Backup previus version
    mv: cannot stat `./oscam': No such file or directory
    [ OK ]
    --> Let's remove old folder...
    [ OK ]
    --> Checking for latest version and create oscam-svn dir...
    svn: 'nano' does not appear to be a URL
    [ OK ]
    --> Change dir to: oscam-svn
    ./oscam_update.sh: line 30: cd: oscam-svn/: No such file or directory
    [ OK ]
    --> Create new folder: build_dir
    mkdir: cannot create directory `build_dir': File exists
    [ OK ]
    Change dir to: build_dir
    [ OK ]
    --> Compile new version with Smargo smartreader support
    CMake Error: The source directory "/usr/local/bin/oscam-svn" does not exist.
    Specify --help for usage, or press the help button on the CMake GUI.
    [ OK ]
    --> Now... make!
    make: *** No targets specified and no makefile found. Stop.
    [ OK ]
    --> Finally we install the latest fersion...
    make: *** No rule to make target `install'. Stop.
    [ OK ]
    ---> ...so it's time to clean...
    make: *** No rule to make target `clean'. Stop.
    OK. Now you have the latest oscam version!
    Oscam is running so we will stop it & restart it
    Oscam killed
    ...so going to start it
    Done. Oscam is running!
    If oscam's settings are OK, you will have picture at 5 to 10 seconds!
    Chears! :)



    but no images, rebooted box and server, nothing????


    infact took 35 secs for a image?

  • i also just check as was on another site, my file in rc.local says


    /bin/oscript start &
    /bin/cccam start &
    /emu/oscam/oscam &
    /emu/script/runonce.sh &
    /usr/local/bin/oscam -b
    exit 0

  • Quote

    i think i can see why


    looking at /usr/local/bin/


    there is no oscam-b file?


    Your not looking for a file called oscam-b
    your looking for a file called oscam, the "-b" is the command to start oscam. Is the oscam binary there and is it called oscam? If it is named something else, rename it to oscam.



    when oscam is running, run these commands as root user in the terminal to test oscam stop start!


    Code
    cd /usr/local/bin/



    Code
    killall -9 oscam


    After you run this command, Terminal will just move to the next line & you wont notice anything until you Refresh your oscam webif to confirm it is offline!



    Code
    oscam -b


    Now Refresh your oscam webif to confirm it is back online


    If both these commands work, I honestly have no idea why they wont run from crontab....






    It looks like your update script has incorrect folder & file locations, you can update oscam manually by following this step by step in post 3 of this thread..
    Just first download the correct version of oscam for your setup..
    http://linuxsat-support.com/li…ntu-server.html#post52984




    All your problems have been solved countless times before so try the search box before you post!!
    Please do not Request help by PM, use the main forum so Everyone can benefit from the answers.

  • cheers for import, yes kill oscam works, takes 5 secs to kill but does, after doing oscam -b, comes back :) so that we know is sorted


    ill try your other post

  • dont need to update as on the last one you can get? but i think maybe the smargo,
    as when i reboot server, it just hangs saying cant find smartgo, no images, when i disable smartgo, no probs, so going to leave it off today and test


    i tried the 52 rules file, so fingers crossed , thanks again

  • removed the cron jobs amd just woke up, no crash smartgo was turned off


    enabled smartgo, cant find it, so the lock to a usb is not working?

Participate now!

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