Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Request] document system command configuration better, especially the async flag #2487
What were you doing?
Creating a new command in the system menu while using a script that does not return (I.E. have something like an
Tried to run the python script using a bash sh file that
Stuff that I tried (and didn't work)
Source code of the "start" script (running this stalls the interface forever):
Source code of the "stop" script (this one always works and does not stall the web interface):
Source code of the bash script:
Source code of the relevant part of my config.yaml file:
Note that running these scripts manually from the terminal works.
What did you expect to happen?
Normal system command behavior (run and return a green success message since the script does not raise an exception).
What happened instead?
Interface is stalled forever while waiting for the request to finish.
Did the same happen when running OctoPrint in safe mode?
Version of OctoPrint
Operating System running OctoPrint
OctoPi with a Raspberry Pi 3.
Browser and version of browser, operating system running browser
Chrome 65.0 in Windows 10 64-bits
It looks like there is some information missing from your bug report that will be needed in order to solve the problem. Read the Contribution Guidelines which will provide you with a template to fill out here so that your bug report is ready to be investigated (I promise I'll go away then too!).
If you did not intend to report a bug but wanted to request a feature or brain storm about some kind of development, please take special note of the title format to use as described in the Contribution Guidelines.
Please do not abuse the bug tracker as a support forum - that can be found at discourse.octoprint.org. Go there for any kind of issues with network connectivity, webcam functionality, printer detection or any other kind of such support requests or general questions.
Also make sure you are at the right place - this is the bug tracker of the official version of OctoPrint, not the Raspberry Pi image OctoPi nor any unbundled third party OctoPrint plugins or unofficial versions. Make sure too that you have read through the Frequently Asked Questions and searched the existing tickets for your problem - try multiple search terms please.
I'm marking this one now as needing some more information. Please understand that if you do not provide that information within the next two weeks (until 2018-04-01 01:10 UTC) I'll close this ticket so it doesn't clutter the bug tracker. This is nothing personal, so please just be considerate and help the maintainers solve this problem quickly by following the guidelines linked above. Remember, the less time the devs have to spend running after information on tickets, the more time they have to actually solve problems and add awesome new features. Thank you!
PS: I'm just an automated script, not a human being, so don't expect any replies from me :) Your ticket is read by humans too, I'm just not one of them.