Error executing sch...
 
Notifications
Clear all

Error executing scheduled task

9 Posts
2 Users
0 Likes
844 Views
Posts: 103
 ram
Topic starter
(@ram)
Estimable Member
Joined: 8 years ago

I cannot run scheduled task and get the message following in audit log:

Error executing scheduled task
Value cannot be null.
Parameter name: type
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at SolidCP.EnterpriseServer.SchedulerJob.RunSchedule()

 I have updated the values connectionString and SolidCP.CryptoKey for SolidCP.SchedulerService.exe.Config

8 Replies
3 Replies
Admin
(@m-tiggelaar)
Joined: 8 years ago

Noble Member
Posts: 1964

does this happen for any scheduled tasks or for a specific one?
Also can you verify the scheduler service in Windows --> is set to the Enterprise/bin location?

Reply
 ram
(@ram)
Joined: 8 years ago

Estimable Member
Posts: 103

Yes, this happen for any scheduled tasks.

The scheduler service status is running and the path to executable is C:WebsitePanelEnterprise ServerbinSolidCP.SchedulerService.exe

Reply
Admin
(@m-tiggelaar)
Joined: 8 years ago

Noble Member
Posts: 1964

alright
can you check that
1) Scheduler service is started
2) if started and still having this error can you check the database tables:
ScheduleTasks
and
ScheduleTaskViewConfiguration

double check they do not mention WebsitePanel
if they do mention websitepanel please run the update_db.sql file from the file: http://installer.solidcp.com/Files/1.0.1/SolidCP-EnterpriseServer-1.0.1-Update.zip again (it should have the scripts present to overwrite any websitepanel path/ variable to SolidCP).

Reply
Posts: 103
 ram
Topic starter
(@ram)
Estimable Member
Joined: 8 years ago

Scheduler service is started.

I ran the update_db.sql file and query is executed successfully.

Here the tables ScheduleTasks and ScheduleTaskViewConfiguration:

 

ScheduleTasks

ScheduleTaskViewConfiguration

Reply
1 Reply
Admin
(@m-tiggelaar)
Joined: 8 years ago

Noble Member
Posts: 1964

hmm thats odd

seems the db script doesn't correctly set the scheduled tasks.

I will make a quick fix for that now.

Reply
Posts: 1964
Admin
(@m-tiggelaar)
Noble Member
Joined: 8 years ago

Ok,

I am not sure how that script got dropped from the database (it used to be in there).

I have now updated the SQL script to fix up scheduletasks database table correctly again.

You can download:  http://installer.solidcp.com/Files/1.0.1/SolidCP-EnterpriseServer-1.0.1-Update.zip

and execute the update sql again.

Then double check if all the tables in ScheduleTasks have no more WebsitePanel value.

Reply
Posts: 103
 ram
Topic starter
(@ram)
Estimable Member
Joined: 8 years ago

Great! Scheduled Tasks is working fine now!!!

Reply
1 Reply
Admin
(@m-tiggelaar)
Joined: 8 years ago

Noble Member
Posts: 1964

Glad i could help, and apologies for the inconvenience.:)

Reply
Share: