# Starting Light Client failed

**URL:** <https://forum.availproject.org/t/starting-light-client-failed/1222>\
**Category:** Light Client\
**Created:** [April 5, 2024, 7:07am UTC](https://forum.availproject.org/t/starting-light-client-failed/1222 "2024-04-05T07:07:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubham\_kumar](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.availproject.org/shubham_kumar/32/705_2.png) [@shubham\_kumar](https://forum.availproject.org/u/shubham_kumar)\
**Post date:** [April 5, 2024, 7:07am UTC](https://forum.availproject.org/t/starting-light-client-failed/1222/1 "2024-04-05T07:07:09Z")

</div>

I facing an error in the node running. i use a script which is pinned in discord but still issue is not resolved.

 ![Screenshot (53)](https://europe1.discourse-cdn.com/flex013/uploads/availproject/original/1X/e3a82b9fb3b4be8fd513a3478c476ab04dfe94e8.png)

use this script- **rpc call fail. try to use the script to auto restart when node stop**

 

**```auto
sudo apt install nano
sudo apt install screen**

**```**

 

**```auto
rm -rf /root/.avail/data**

**```**

 

**```auto
screen -S node**

**```**

 

**```auto
sudo systemctl stop avail**

**```**

 

**```auto
sudo nano availscript.sh**

**```**

 

**Copy script and paste into it**

 

**```auto
#!/bin/bash**

**# official script command of Avail scrtip from daningyn
COMMAND="curl -sL1 avail.sh | bash"** 

**# Here is script making LC restart if getting errors
while true; do
    echo "Starting command: $COMMAND"
    # Chạy lệnh trong background
    bash -c "$COMMAND" &**
    

    **PID=$!**
    

    **wait $PID
    EXIT_STATUS=$?**

    **if [$EXIT_STATUS -eq 0]; then
        echo "Command exited successfully. Restarting..."
    else
        echo "Command failed with status $EXIT_STATUS. Restarting..."
    fi
    # 
    sleep 10
done**

**```**

 

**ctrl+x, y enter to save and run**

 

**```auto
bash availscript.sh**

**```**

 

**press three key CTRL+a+d together to save the screen**

---

<div class="post-metadata">

**Author:** ![robin-rrt](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.availproject.org/robin-rrt/32/15_2.png) [@robin-rrt](https://forum.availproject.org/u/robin-rrt)\
**Post date:** [April 5, 2024, 6:03pm UTC](https://forum.availproject.org/t/starting-light-client-failed/1222/2 "2024-04-05T18:03:54Z")

</div>

Team is working on a fix. Please refer to this thread for updates: [Avail's Light Client Lift-off Challenge Status](https://forum.availproject.org/t/avails-light-client-lift-off-challenge-status/1225)
