Server stops at 3.45 am & cardreader show usb bulk write failed error

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

  • I hat same problem the for cardreader stop work at 3,45 am this time and if I restart the server it stop agen in less but 15 min or I hat to restart it after 4 am to let it runn for next 24 hours.


    Is ther a scrfit that can restart server if cardreader show usb bulk write failed ?
    I hat test put new hdd in and difrent reader still the same problem


    Thanks in advance


    http://linuxsat-support.com/li…er-works-until-4am-2.html

    The_Polar Team

  • Post your rc.local m8



    or



    edit your rc.local file located @ /etc/rc.local
    so that oscam starts before cccam
    e.g.


    Code
    sleep 30
    /usr/local/bin/oscam -b
    sleep 30
    /usr/local/bin/[COLOR='#FF0000']CCcam[/COLOR]
    exit 0


    make sure CCcam name is the exact same as the CCcam bin name in /usr/local/bin
    it could be CCcam.x86_64 or CCcam.x86



    The orig tut has been updated but that will be of no help to you..


    Can you also please post the exact filename's of your cam bins located @ /usr/local/bin/
    and also post the contents of your


    OscamCheck.sh & CCcamCheck.sh located @ /var/script


    & Finally The contents of your crontab file located @ /etc/crontab


    and we will have your setup cleaned up in minutes...




    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 only runn oscam


    This is my /etc/rc.local


    # By default this script does nothing.
    sleep 30
    /usr/local/bin/oscam -b
    exit 0


    And my OscamCheck.sh


    #!/bin/sh
    process=`ps auxwww | grep oscam | grep -v grep | awk '{print $1}'`
    if [ -z '$process' ]; then
    echo "Couldn't find Oscam running. Restarting server-binary" >> /var/cccamlog/oscam.check
    echo && date >>/var/cccamlog/oscam.check
    /usr/local/bin/oscam >> /var/cccamlog/Oscam.log &
    else echo "Oscam is still OK!" >> /var/cccamlog/oscam.check
    fi


    Also I dont know how to make this file etc/udev/rules.d/52_reader.rules

    The_Polar Team

  • It looks like cccam is somehow starting..
    Post contents of your crontab file located @ /etc/crontab..


    When you switched from cccam/oscam to oscam only, did you clean up your setup?




    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.

  • No I did no clean out
    I did dust use old Ubuntu amd.64-Bit 12.04 - Automated Oscam/CCcam 2.1.3 Install Package from this forum and did never runn CCcam on it
    Hat this problem and did test difrent hdd and then difrent cardreader but problem did start act like this allways same time abut 03,45 its go down and restart it then meny it go down age to 04.00 after that its runns ok for almost 24 hours how funny its looks

    The_Polar Team

  • # /etc/crontab: system-wide crontab
    # Unlike any other crontab you don't have to run the `crontab'
    # command to install the new version when you edit this file
    # and files in /etc/cron.d. These files also have username fields,
    # that none of the other crontabs do.


    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin


    # m h dom mon dow user command
    17 * * * * root cd / && run-parts --report /etc/cron.hourly
    25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
    47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
    52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
    #
    00 04 * * * root /sbin/reboot
    56 03 * * * root killall oscam
    59 03 * * * root /usr/local/bin/oscam -b
    */5 * * * * root /var/script/OscamCheck.sh
    56 03 * * * root killall oscam
    59 03 * * * root /usr/local/bin/oscam -b
    */5 * * * * root /var/script/OscamCheck.sh
    56 03 * * * root /killall/CCcam.x86
    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
    */5 * * * * root /var/script/CCcamCheck.sh
    03 04 * * 6 root /var/script/LogCleanUp.sh >> /var/cccamlog/CleanUp.log
    56 03 * * * root killall oscam
    59 03 * * * root /usr/local/bin/oscam -b
    */5 * * * * root /var/script/OscamCheck.sh

    The_Polar Team

  • 1... Change the contents of your crontab file to this:



    2... Navigate to /var/script & delete all these files:
    CCcamCheck.sh
    configupdate.sh
    keyupdater.sh
    LogCleanUp.sh


    3... Navigate to /usr/local/bin & Delete:
    CCcam bin file


    4... Navigate to var/etc & Delete
    CCcam.cfg
    CCcam.channelinfo
    CCcam.prio
    CCcam.providers



    5... Restart Server

    Code
    reboot




    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.

  • M8, I noticed a typo in my first post


    edit this line in your crontab file located @/etc/crontab and remove whats in RED

    Code
    38 6    * * *   root    /sbin/reboot[COLOR='#FF0000']" >> /etc/crontab[/COLOR]


    the line should look like this when your done:

    Code
    38 6    * * *   root    /sbin/reboot




    Quote

    Don so now I hat to wade to morro to see if it work fine :)


    /var/local/script wher my scripts files are


    Big thenks m8 :)


    It will work properly m8, you had cccam starting up every morning and taking over card reader & you also had cccam check scripts still running
    Also, It looks like you tried the Auto-Install 3 or 4 times which made your crontab very messy...


    Note:
    I have changed the reboot time to 6.38am (I found that 3.56am was clashing with some boxing / UFC)


    If you want to test earlier, edit this line in /etc/crontab


    Code
    00 17    * * *   root    /sbin/reboot


    this will reboot your server at 5pm today (25 mins time)




    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.

  • If oscam is not starting, it is probably because you edited rc.local in a windows editor, Replace your rc.local with this file:


    rc.local.rar


    If needed, change Permissions to 755

    Code
    cd /etc
    chmod 755 rc.local




    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.

  • Code
    00 17    * * *   root    /sbin/reboot


    this will reboot your server at 5pm today (25 mins time)


    Going on reboot now in 37 min at my time


    I did also mess upp my rc.local like this by put -c /usr/local/bin/oscam -b -c it was my fail


    Oscam boot now whit termianl comand reboot


    One more time big thenks!! for fast and wery good support

    The_Polar Team

  • Ps. I did not think must abut the CCcam becurs I did never setup the cfg files LOL . I thot it did not runn at all :)


    Big big thenks m8

    The_Polar Team


  • hi thatfellow, i have same problem. i need to do the same?
    can you have a look in mine crontabfile:
    code:
    # /etc/crontab: system-wide crontab
    # Unlike any other crontab you don't have to run the `crontab'
    # command to install the new version when you edit this file
    # and files in /etc/cron.d. These files also have username fields,
    # that none of the other crontabs do.


    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin


    # m h dom mon dow user command
    17 * * * * root cd / && run-parts --report /etc/cron.hourly
    25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
    47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
    52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
    #
    56 03 * * * root killall CCcam.x86_64
    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_64
    59 03 * * * root /usr/local/bin/oscam -b
    */5 * * * * root /var/script/CCcamCheck.sh
    */5 * * * * root /var/script/OscamCheck.sh
    03 04 * * 6 root /var/script/LogCleanUp.sh >> /var/cccamlog/CleanUp.log

    :linuxsat3:

  • Have you also switched to oscam only or are you still using cccam/oscam??




    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 using both and oscam and cccam:
    my friend have the same problem and we can't sort that, sorry about that, we newby.
    i think i missed sleep 30 on cccam:
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    sleep 30
    /usr/local/bin/CCcam.x86_64
    /usr/local/bin/oscam -b
    exit 0

    :linuxsat3:


  • Edit to oscam starting before cccam:


    sleep 30
    /usr/local/bin/oscam -b
    sleep 30
    /usr/local/bin/CCcam.x86_64

    exit 0






    Edit to:


    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin


    # m h dom mon dow user command
    17 * * * * root cd / && run-parts --report /etc/cron.hourly
    25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
    47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
    52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
    #
    56 03 * * * root killall CCcam.x86_64
    56 03 * * * root killall oscam
    57 03 * * * root /var/script/configupdate.sh >> /var/cccamlog/configupdate.log
    57 03 * * * root /var/script/keyupdater.sh
    58 03 * * * root /usr/local/bin/oscam -b
    59 03 * * * root /usr/local/bin/CCcam.x86_64
    */5 * * * * root /var/script/CCcamCheck.sh
    */5 * * * * root /var/script/OscamCheck.sh
    03 04 * * 6 root /var/script/LogCleanUp.sh >> /var/cccamlog/CleanUp.log




    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.

  • maby i can stop restart 4:00am server, how i can do that?
    is still stopt in there moning i want swich off restart. and do my self.
    any help please.

    :linuxsat3:

Participate now!

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