cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2653
Views
5
Helpful
2
Replies
Beginner

PaaS Python App hangs until 'ioxclient app console' done, which forces a resume

Hi folks

 

I am running a Python IOx agent that can suddenly hang, mid-execution.  In IOx, the application is still shown as running but no more logs are output (or any other form of interact with other services, e.g. http calls to our server). 

The App has 2 threads and both are hung.

 

I can, however, then "bring it back to life" by merely executing an ioxclient app console command for the App.  Logging resumes, from some utterly random point in the code (it could have been midway through execution of a function); expected log messages are output with the now current timestamps and all is good once again.  

 

If I exit out of the console session, however, the App will again freeze up at some point in the future.

 

It seems the frequency of failure can be increased by increasing App logging levels and redirecting output to console.

 

Thoughts?

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

Re: PaaS Python App hangs until 'ioxclient app console' done, which forces a resume

The main reason for this is the console/print information occupied all the console cache and make it suspended.
The workaround is to write all the console information in the app log. You may use the app log for debug/troubleshooting instead of the console information.

View solution in original post

2 REPLIES 2
Highlighted
Cisco Employee

Re: PaaS Python App hangs until 'ioxclient app console' done, which forces a resume

The main reason for this is the console/print information occupied all the console cache and make it suspended.
The workaround is to write all the console information in the app log. You may use the app log for debug/troubleshooting instead of the console information.

View solution in original post

Highlighted
Beginner

Re: PaaS Python App hangs until 'ioxclient app console' done, which forces a resume

Thanks for that, Steve. It was indeed the problem - a 3rd party module was slyly logging to console when debug logging was enabled.  Overrriding logger settings for that module solved the problem.

CreatePlease to create content