-
Notifications
You must be signed in to change notification settings - Fork 469
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
Issue running scheduled job #144
Comments
I have found the log file, and can see where the error is:- 2020-10-10 05:59:07,686 [INFO]: Received job 12d0f2a5-605a-44eb-ad22-8dc4c938ddef I removed Automagica from machine, and reinstalled, and have exactly the same error again. Also tried on another Windows 10 machine, and again I have identical error. |
@Fats25 can you post the job information and details about the command you are trying to run? I suspect the command in the Popen call is malformed or missing. |
I am not sure I am technical enough to understand the question! Would it be at the start of the .Josn file? I'm happy to post the .Josn file here if that is what you mean? |
@Fats25 sure post the json file here let's take a look. If you can tell more details about the job you are trying to run that might help too |
Its a very simple job to make an unattended golf club booking. Josn file attached (with credentials removed). I attach the automagica log file error again too, and the apps.py file that is referenced, and I think which is causing the error. I don't know how to get to the PIPED file D:\.....subprocess.py to see what is happening here? The other thing I did try was to change the locale in the bot to "utf-8" as I could see that referenced in the apps.py file, but it has made no difference. |
Okay I have a hunch what might be happening here. Is the file for your job If so, try to rename the file to |
The file name is .Josn.
I only used .txt so that I could paste on GitHub as an attachment. (It doesn't accept .josn files).
…________________________________
From: Farhan Kathawala <[email protected]>
Sent: Sunday, October 11, 2020 7:18:13 PM
To: automagica/automagica <[email protected]>
Cc: Chris Asher <[email protected]>; Mention <[email protected]>
Subject: Re: [automagica/automagica] Issue running scheduled job (#144)
@Fats25<https://github.com/Fats25>
Okay I have a hunch what might be happening here.
Is the file for your job golf_bookkng.txt or golf_booking.json.txt?
If so, try to rename the file to golf_booking.json and rerun the job.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#144 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARJOKEYJ7RGNBK6ZXP6JLLTSKHEDLANCNFSM4SIKDYCA>.
|
Makes sense. also, just in case, it needs to be Exactly |
How is your entrypoint defined in the Portal? What is the filename of your main Flow? |
It is .json - sorry it was a typo from my phone that I was replying on! (It was autocreated from Automagica Lab). |
When I created the process I left that blank. I thought (perhaps mistakenly) that you only needed to specify an entry point when you had other Python code running you needed to run? With regards to the name of the main flow, I could not find anyway to rename this in Lab. It is therefore called "Unnamed Process". It is named in the Portal. Both of your responses made me try something else. I renamed the .json file to have no spaces in the name, and created a new process (again with a blank entry point), and it seems to be running now. I had recreated Jobs, and Bots, but for some reason never thought to create the process. |
It was an entry point issue. But also a filename issue....... The original .json file was called Golf Booking.json - when I tried to create the job I received an error - which is why I tried to leave it blank. When the filename has no spaces (Golf_Booking.json), it works fine. Thanks for all of your help - this seems to be the issue...... |
Apologies if a stupid question, this is first time I have tried automation, or used Automagica!
I downloaded the package directly (windows 10) yesterday.
I have successfully created a process in Automagica Flow, and tested and all working.
I created a new process in portal and imported the .josn file created in Flow.
I created a job to run the new process on a schedule.
I ensured that the Bot was running locally on same machine, and is showing as online in Portal - and is part of same team.
I tried to test the job by clicking on green arrow under the process, and it tries to run the job. When the job runs it I see Automagica receive the job, and immediately a connection error. If I look in the jobs, it remains running, but nothing is happening. I am guessing the connection error is either to the Bot, or to the Portal. I am unsure which it is or how to check further.
For the Bot configuration I have tried with the user secret blank, and also with the user secret as a copy of the Bot Secret (as shown here - https://automagica.readthedocs.io/bot.html). I get the same error.
What am I missing here?
Many Thanks
The text was updated successfully, but these errors were encountered: