Skip to content
manaswis edited this page Mar 8, 2013 · 5 revisions

Troubleshooting

  1. Error while running source configSA:
    After you log in to the virtual machine, if you find the following error screen: config-error

    Type the following commands in the terminal:

    • sudo rm /etc/udev/rules.d/70-persistent-net.rules
    • Reboot the virtual machine : reboot
    • Run source configSA again after you log in.
  2. Error while starting SensorAct:
    When you run source sensoract start for the first time after booting up the VM and get the following message:
    start-error
    This means SensorAct server was closed incorrectly. To resolve this, type the following commands on the terminal:

    • rm $SENSORACT_HOME/server.pid
    • rm $SENSORACTAPP_HOME/server.pid
    • rm $SENSORACTBROKER_HOME/server.pid
      and then start SensorAct using source sensoract start
      OR
      If you are using the VM with full version of Linux, use source sensoract repair and then run source sensoract start.

This error is caused due to incorrect closing of SensorAct or an abrupt shutdown of the VM. Thus, it results into the web application to be inaccessible. Make sure that you always stop SensorAct using source sensoract stop before you power off/reboot the VM.

  1. Login error while using SensorAct Application :

login-error

If you get the above error, then -

  • First, check if mongod service on the host machine has been started. If not, then start mongod service:
    On host machine using Windows :
    In a command prompt window, enter C:\mongodb\bin\mongod.exe (assuming mongodb had been extracted to C:\mongodb)
    On host machine using Linux :
    In a terminal window, enter mongod
  • If mongod service has been started and the error still persists, reconfigure SensorAct using source configSA to enter the correct IP of the host machine.
    Make sure your host machine is connected to the Internet. Use the host machine’s IP address of the interface (e.g. eth0 for Ethernet LAN/wlan0 for WiFi etc.) you are using to connect to the Internet. To know your host machine’s IP address, run ipconfig in the command prompt of a host machine with Windows OS and ifconfig in the terminal of a host machine with Linux OS.