Schedule reboot does not save anymore

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
sbs
Posts: 18
Joined: Sat Jan 10, 2015 3:47 pm

Schedule reboot does not save anymore

Post by sbs »

I have used the scheduled reboot at 0h for a while and it was regularly wiped when changing other settings.

But now I cannot seem to save any scheduled reboot. Since internet access get shutdown after about 2d of uptime it is problematic.

Lantis
Moderator
Posts: 6920
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Schedule reboot does not save anymore

Post by Lantis »

can you grab the contents of your crontab before and after trying to set a schedule? because the schedule process itself works fine for me. I need uninterrupted internet at the moment so i can't test if it actually reboots... but if it lands in the crontab there shouldn't be any reason for it not to.

Also your version of gargoyle.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

sbs
Posts: 18
Joined: Sat Jan 10, 2015 3:47 pm

Re: Schedule reboot does not save anymore

Post by sbs »

Hi,

Thanks for your reply, it opened my eyes to an issue on my setup :

Code: Select all

Using username "root".


BusyBox v1.22.1 (2015-01-04 19:09:52 EST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

------------------------------------------------------------------
|            _____                             _                 |
|           |  __ \                           | |                |
|           | |  \/ __ _ _ __ __ _  ___  _   _| | ___            |
|           | | __ / _` | '__/ _` |/ _ \| | | | |/ _ \           |
|           | |_\ \ (_| | | | (_| | (_) | |_| | |  __/           |
|            \____/\__,_|_|  \__, |\___/ \__, |_|\___|           |
|                             __/ |       __/ |                  |
|                            |___/       |___/                   |
|                                                                |
|----------------------------------------------------------------|
| Gargoyle version 1.7.0    | OpenWrt Barrier Breaker branch     |
| Gargoyle revision f739e1e | OpenWrt revision r43694            |
| Built January 04, 2015    | Target  ar71xx/default             |
------------------------------------------------------------------
root@Gargoyle:~# crontab -l
crontab: can't open 'root': No such file or directory
root@Gargoyle:~# crontab -e
crontab: can't open '/etc/crontabs.3660': No space left on device
root@Gargoyle:~# du
0       .
root@Gargoyle:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                     320       264        56  83% /
/dev/root                 2560      2560         0 100% /rom
tmpfs                    14476       212     14264   1% /tmp
/dev/mtdblock3             320       264        56  83% /overlay
overlayfs:/overlay         320       264        56  83% /
tmpfs                      512         0       512   0% /dev
root@Gargoyle:~#
How do I make space? what should I clean up ?

Lantis
Moderator
Posts: 6920
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Schedule reboot does not save anymore

Post by Lantis »

That's a question that is out of my expertise. How much flash does your router have?
Maybe another user will have a suggestion on this. I'll find out tomorrow how much the default crontab file is, and how one is with a scheduled reboot.


EDIT:
Default gargoyle crontab is in the range of 124 bytes
Adding a scheduled reboot adds a maximum of 44 bytes
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply