Fwconsole restart cron error

Good morning guys
i have a problem with my installation: i have an old pc that i use as server but the ram get full some times and system locks, i found a walkaround by running fwconsole restart at midnight every day and everything worked like a charm in the last year.

Since the last update of asterisk system and freepbx framework from their repositories i get this error: " Running FreePBX shutdown…

Core FastAGI Server is not running
Stopping UCP Node Server
[>---------------------------] < 1 sec
Stopped UCP Node Server
Stopping Chat Server
Stopped Chat Server
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
stty : standard input : Inappropriate ioctl for device*
[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>--------
-------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec[>---------------------------] < 1 sec
[—>------------------------] 1 sec
[------>---------------------] 2 secs
[---------->-----------------] 3 secs
[------------->--------------] 4 secs
[---------------->-----------] 5 secs
[-------------------->-------] 6 secs
[----------------------->----] 7 secs
[-------------------------->-] 8 secs
[–>-------------------------] 9 secs
[----->----------------------] 10 secs
[-------->-------------------] 11 secs
[------------>---------------] 12 secs
[--------------->------------] 13 secs
[------------------>---------] 14 secs
[---------------------->-----] 15 secs
[------------------------->–] 16 secs
[>---------------------------] 17 secs
[---->-----------------------] 18 secs
[------->--------------------] 19 secs
[---------->-----------------] 20 secs
[-------------->-------------] 21 secs
[----------------->----------] 22 secs
[-------------------->-------] 23 secs
[------------------------>—] 24 secs
[--------------------------->] 25 secs
[–>-------------------------] 26 secs
[------>---------------------] 27 secs
[--------->------------------] 28 secs
[------------>---------------] 29 secstty : standard input : Inappropriate ioctl for device
Killing asterisk forcefully.
Asterisk is still running and we can’t stop it! "

this happen ONLY when the command is sent via crontab job, if i send it via ssh to the server in realtime it works witout any problem.
Any idea? it happen since the last update

I don’t know why you’d put this command in a crontab but that’s your call. Anyways you need to silence output since you aren’t in a tty.

fwconsole restart -q -n

checkout all the commands avalible to you by running

fwconsole restart --help

I use an old pc as a server, i had a ram/processor saturation problem and my server stop to respond to any command and had to reboot the system every few day. I found a quick solution scheduling a console restart: i rebooted the system 6 month ago the last time. I’m sure that is not the best solution but it works great!

I’ll try your advice and let you know!

THANKS

it works great, thank you

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.