Unable to create scheduled tasks

Maybe I am doing something wrong, but I cannot create any scheduled tasks.

I am using 5.0.15-0 and when I create a task in the UI for example a scrub, I give it a name, the task type, the pool name, the frequency (monthly or weekly), and then press the ‘Submit’ button which changes from red to blue, and then nothing. No task is created

Any advice is welcome.

@delboy do you see anything in the rockstor logs? I assume, you don’t have any issues with other actions in the Rocksto WebUI (like Rockon installation, configuring a service or creating a new share)?
I have tried creating new tasks for scrubs and snapshots and selecting the Submit button works without a problem, creating the newly defined task (using a Google Chrome browser).

Only difference might be that there are existing tasks in my scenario to which I add a new one. In your case, is this the first task you are trying to create on that system?

2 Likes

quick update: to see whether the “first” scheduled task to be created could cause some issues I created one on a VM instance where no jobs had been created prior. In my case, I created a btrfs scrub task to be run weekly. Clicking the Submit button resulted in the task being created as well.

The only time I have encountered the “blue” button in the past was during Rockon installations where no environment variables were defined, and it required clicking the button twice to trigger the installation.

2 Likes

Thanks for the advice @Hooverdan

Once more you have come to my rescue.
It is a browser issue.
I was using the Brave browser (because it is an excellent browser). As soon as I tried it out with Firefox task creation works correctly.
Brave blocks ads and trackers by default. I assume there is something in the Javascript that triggers Brave to block it.

2 Likes

Looking into what is happening here.
Brave is not blocking anything. The developers tool throws up an error when the submit button is pressed saying

Form submission failed, as the <SELECT> element named 'cron-time-min' was implicitly closed by reaching the end of the file. Please add an explicit end tag ('</SELECT>')

Looking at the html of the page the cron-time-min SELECT IS correctly terminated with </SELECT>
I wonder if it is the length of the select that is causing Brave to error?

A quick Google shows up other sites that have had a similar problem with Brave (none resolved)

4 Likes

Thanks for doing the additional research.

There is a plan to overhaul the UI starting after the next stable release, which will hopefully reduce some of the reliance on Javascript, as well as update underlying libraries, etc. so that this incompatibility will hopefully be a thing of the past. But … it will take a while due to developer capacity constraints.

1 Like