Process description
Shortly after, I wrote a project with Tornado that was supposed to be deployed on Nginx, but for some reason the company didn’t use Nginx and started it directly from the command line
When I boot from the command line, it is normally accessible
Shortly after, I wrote a project with Tornado that was supposed to be deployed on Nginx, but for some reason the company didn’t use Nginx and started it directly from the command line
When I boot from the command line, it is normally accessible
python start.py &
However, when I close the remote SSH connection, the program is out of order, nothing happens, but the process is sitting in the process pool waiting for the CPU to call. By try
catch the exception [Errno 5] Input/output error
After checking, the problem was found, because I had print
statement in the program. When I quit the remote SSH, it was equivalent to closing its shell. Without shell process print
, there was no place to output characters and could not “write” to the screen, so I would report a I/O
error
The solution
- does not use the command line to start, put the program into
crontab
to start regularly or delete the program where there are print
statements in the program, use nohup to run the command permanently, it has nothing to do with the user terminal, disconnection of SSH will not affect the program to run
Read More:
- Go test print no output
- [OpenGL · error] visual studio 2019 reports an error. It is an external symbol gladloadglloader that cannot be parsed. This symbol is referenced in the function main
- The python version output from the command line is inconsistent with the python version in the current CONDA environment
- There was an internal error, and Internet Explorer is unable to print this document
- Nohup command in Linux: nohup: assigning input and attaching output to‘ nohup.out ’
- (20200912Solved) nohup: ignoring input and appending output to ‘nohup.out‘
- Hadoop reports an error. Cannot access scala.serializable and python MapReduce reports an error
- After Vue is packaged, a blank page appears, an error is reported in the resource request, and there is no error handling scheme
- error This is probably not a problem with npm. There is likely additional logging output above.
- An import error is reported in the python. The solution to setting. Pylintrc is invalid
- When python installs pocketsphinx module (package), an error is reported: command ‘swig.exe’ failed: No such file or directory
- When a system is deployed on weblogic12.2.1.3, it reports an error “IllegalStateException zip file closed”. When it is deployed on weblogic12.2.1.2, it does not report an error and can be accessed normally.
- SRS is started normally and there is no screen for streaming. Look at the SRS log and report an error SRS is already running
- Ant Design ‘cross env’ is not an internal or external command, nor is it an error reporting problem for a runnable program
- Idea2021 reports an error. Default operand size is 64 sets the startup task to automatically add the registry
- When installing pyaudio, an error is reported: failed error: portaudio. H: there is no such file or directory
- Unity reports an error cs0619: ‘guitexture’ is obsolete
- When the MAC M1 uiautomatorviewer is opened, it displays blank or reports an error
- An error of 500 is reported when an item is assigned to a role
- Easyexcel Llinux reports an error, but the local error is correct