Custom-application fails to restart
- This topic has 4 replies, 3 voices, and was last updated 1 year, 8 months ago by Rina Watanabe.
-
AuthorPosts
-
August 15, 2022 at 11:55 pm #32975Rina WatanabeParticipant
Hello,
I have created a custom application to forward the data received by Conduit (MTCDT Series, Firmware 6.0.0) to another PC.
The custom application was created using app-connect.py (https://github.com/MultiTechSystems/lorawan-app-connect) as a reference.
This application worked fine when I installed it, but after restarting Conduit, it didn’t work.
When I checked the Apps tab on Conduit’s website, the custom application appeared and had a status of Started.tar.gz has custom-app.py, Install, manifest.json, Start, status.json (Reference: https://www.multitech.net/developer/software/aep/creating-a-custom-application/).
Are there any known issues between Conduit restarts and custom applications?
What should I check to investigate the cause of the problem?- This topic was modified 1 year, 8 months ago by Rina Watanabe.
- This topic was modified 1 year, 8 months ago by Rina Watanabe.
August 16, 2022 at 6:56 am #32981bcaillard@goconcept.comParticipantHi Rina,
How did you install your custom app ? What is the process you used ? I am currently struggling with the same kind of problem and the app installation seem a bit unstable to me. So maybe we can check if the issue is the same.
Bart
- This reply was modified 1 year, 8 months ago by bcaillard@goconcept.com.
August 16, 2022 at 7:31 am #32983Jeff HatchKeymasterHello Rina,
Can you check to make sure that the Start script in your application is executable and anything that it is going to try to execute is executable by root? Make sure that once it is installed that the Start script and other executables have execute permissions set on the files.
Jeff
August 18, 2022 at 12:28 am #33013Rina WatanabeParticipantThanks Bart,
I follow Reference (https://www.multitech.net/developer/software/aep/creating-a-custom-application/) to create a tar.gz file and install the custom application from the [Apps] tab on the Conduit website.
After following Jeff’s instructions and checking the application’s behavior, I found a file that the custom application application was unable to access. By modifying the source code, the custom application works fine even after restarting conduit.August 18, 2022 at 12:40 am #33014Rina WatanabeParticipantThanks Jeff,
I followed your instructions to check the behavior of the custom application and found files that the custom application was unable to access when the conduit restarted.
The custom application I created was created with reference to app-connect.py (https://github.com/MultiTechSystems/lorawan-app-connect).
In app-connect.py run “query = os.popen(‘lora-query -x session list json file /tmp/sessions.json’)” on L330.
The custom application does the same thing.
The inability to access ‘/tmp/sessions.json’ was causing problems when the conduit was restarted.
After adding “query.readlines()” before opening the file (L331), the custom application worked fine after restarting the conduit. -
AuthorPosts
- You must be logged in to reply to this topic.