Software Archive
Read-only legacy content
17061 Discussions

iotkit-agent not working after boot

Zoran_R_1
Beginner
1,082 Views

Small node.JS application with Intel IoT XDK. App communicate with enableiot.com using iotkit-agent (mqtt protocol). App works fine both on Edison & Galileo GEN1. Both boards have last image, last node, last iotkit-agent. App exchange message with iotkit-agent using UDP.

Same problem : after boot/reboot without systemctl restart iotkit-agent  app not sending any data to enableiot. On galileo board situation is very clear : without restart iotkit, agent.log is missing in tmp folder. Immediatly after restart, agent.log is created, and in-out messages are generated.

Galileo version app is started during boot process ( uploaded with XDK IoT edition ). Edison version app is started manually (node main.js)

Galileo is connected to LAN, Edison is connected to WiFi....

 

0 Kudos
1 Solution
Matthias_H_Intel
Employee
1,082 Views

just to check the obvious: is iotkit-agent enabled at all?

I.E. "systemctl enable iotkit-agent"

View solution in original post

0 Kudos
5 Replies
Matthias_H_Intel
Employee
1,083 Views

just to check the obvious: is iotkit-agent enabled at all?

I.E. "systemctl enable iotkit-agent"

0 Kudos
Zoran_R_1
Beginner
1,082 Views

Thx Matthias... that's problem

systemctl status iotkit-agent  => disabled

  • systemctl enable iotkit-agent
  • shutdown -r now
  • app works!!!! 
  • systemctl status iotkit-agent return 

Yes, I'm Linux newbie :)

One thing confused me: with disabled iotkit-agent, test iotkit-admin test was successful...

 

0 Kudos
Matthias_H_Intel
Employee
1,082 Views

iotkit-admin completly bypasses iotkit-agent and directly talks to the cloud. Hence it also wouldn't recognize the agent not running. IMHO "iotkit-admin test" would tell you whether your device can see the cloud.

0 Kudos
Matthias_H_Intel
Employee
1,082 Views

btw: afaik this forum is discontinued and you should rather post questions to https://communities.intel.com/community/makers

0 Kudos
Zoran_R_1
Beginner
1,082 Views

I know that this forum is discontinued, but I have problem with login at communities.... I wrote to Intel support and waiting for answer. error like "account is merged.....call support :("

0 Kudos
Reply