Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler don't run (0X1) #48

Closed
waxweazle2001 opened this issue Mar 26, 2019 · 17 comments
Closed

Scheduler don't run (0X1) #48

waxweazle2001 opened this issue Mar 26, 2019 · 17 comments
Labels
Documentation Update FAQ or other doc to help the user

Comments

@waxweazle2001
Copy link

I got the newest Version of the Snapraid GUI, I set a schedule to write the data to the parity but i noticed as i sync the data the day after that the schedule don't run.
Now i saw that the schedule give the last run result of (0x1), so i asked google and they said that I should set up "run with highest privileges", I want to do this and have it optimized for win 10 pro but when i gave my password in the box then the elucidate give me an failure and cant set the option. Any Idea??

It's not so good if I can't be sure that the server make the sync in the night when i set it, if any hdd make a fault i don't can restore the data. So it would be nice if it runs, although i don't find the schedule in the windows schedules as it was in earlier versions is this right?

Greetings
Rene

@Smurf-IV
Copy link
Owner

The Schedule functionality is provided by a nuget package, so cannot comment, on it too much.
What was the failure ?
I'm not sure what you mean by you last question?

@waxweazle2001
Copy link
Author

I mean that in the old Version the Schedule was also visible in the Windows Schedule Plan now there is no Schedule if I make one in the Snapraid GUI.
The failure was (0x1), here is the Screenshot:

94ifr57a

and as I read about the failure you should check the "run with highest privilege" box. But if i do so, and after I wrote in my Password the GUI make the following failure:

aeltnnxz

Hope this helps.
Greetings
Rene

@tdwilli1
Copy link

tdwilli1 commented Mar 31, 2019

I'm having the same issue. After a sync schedule is setup it won't run. it just reports as completed with 0x1.
The manual sync runs fine. There must be something wrong in the command line. This is what gets put in the arguments line:
-File "C:\Program Files\Elucidate\Elucidate GUI\snapraid.ps1" -exe "C:\Snapraid\snapraid.exe" -args "--log "C:\ProgramData\Elucidate\logs<DATETIME> sync.log" -c "C:\Snapraid\snapraid.conf" sync"

No matter if I try to run this from your GUI or from task manager it won't execute a sync. OK after I try to paste the argument line it leaves out some backslashes. It looks ok in the edit box but as soon as I update the comment the slashes disappear. There is a backslash right before the C":\ProgramData and right after the -c.

Repository owner deleted a comment from waxweazle2001 May 27, 2019
@tdwilli1
Copy link

tdwilli1 commented Jun 1, 2019

Just installed the new release and if fixed my issue. Thanks.

@Smurf-IV Smurf-IV added done and removed help wanted labels Jun 3, 2019
@hyyz17200
Copy link

hyyz17200 commented Jul 13, 2019

I still have this problem even in newest version. Manually syncing in main tab is ok but not working in Schedule tab. After clicking RUN it shows a powershell and just disappears.
Typing the commend it like this screenshot:
QQ截图20190713234106

@Smurf-IV Smurf-IV added help wanted and removed done labels Jul 28, 2019
@Smurf-IV
Copy link
Owner

@BlueBlock ?

@BlueBlock
Copy link
Contributor

I'll see if I can recreate the issue.

@BlueBlock
Copy link
Contributor

BlueBlock commented Jul 28, 2019

I reproduced it only 1 time and can't again. The code looks correct so I'm thinking the scheduler nuget package might have/had a bug. I'll commit an update to the packages. (#55)

@Smurf-IV
Copy link
Owner

Smurf-IV commented Aug 4, 2019

https://github.com/Smurf-IV/Elucidate/releases/tag/V19.8.993.4
Update NuGet Packages and re-issue installer

CommandLine 2.50 -> 2.60
KryptonToolkitSuite5472 5.472.1222 -> 5.472.1251
NLog 4.6.5 -> 4.6.5
ByteSize 2.0.0-alpha2 -> 2.0.0-beta1
TaskScheduler 2.8.11 -> 2.8.15
TaskSchedulerEditor 2.8.11 -> 2.8.15

@hyyz17200
Copy link

I updated. No any improvement.

@jakebullet70
Copy link
Contributor

A note: I use Win 2008 Server. Scheduler DOES NOT run.
My son uses Win 2016 server his DOES run.
OS issues?

@jakebullet70
Copy link
Contributor

OK, here is what I did to get them to run in Server 2008. Seems like the snapraid.exe is blocked.
So in properties I unblocked it. It is running now on the scheduler.

unblock1

@Smurf-IV Smurf-IV added Documentation Update FAQ or other doc to help the user and removed help wanted bug labels Oct 2, 2019
@hyyz17200
Copy link

I am using Windows10 Pro and has no block. Still cannot run in the scheduler.

@jakebullet70
Copy link
Contributor

Run it directly from the scheduler. That is where I found a popup that stopped me from running. See if you are getting a popup.

@jakebullet70
Copy link
Contributor

jakebullet70 commented Nov 14, 2019

Another issue here is if building from source the powershell script is not signed and therefor will fail to run in the scheduler.

@Smurf-IV
Copy link
Owner

@BlueBlock Do you think that this script should be removed and replaced with just calling Elucidate with the commandLine actions ?

Smurf-IV added a commit that referenced this issue Dec 12, 2019
- Update NuGet Packages and re-issue installer
  - CommandLine         2.50         -> 2.60
  - KryptonToolkitSuite5472 5.472.1222         -> 5.472.1251
  - NLog                          4.6.5         -> 4.6.5
  - ByteSize                     2.0.0-alpha2          -> 2.0.0-beta1
  - TaskScheduler          2.8.11         -> 2.8.15
  - TaskSchedulerEditor  2.8.11         -> 2.8.15
@Smurf-IV
Copy link
Owner

Smurf-IV commented Apr 4, 2021

#64

@Smurf-IV Smurf-IV closed this as completed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Update FAQ or other doc to help the user
Projects
None yet
Development

No branches or pull requests

6 participants