Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message

6 years 3 months ago - 6 years 3 months ago #29529052 by opal
It seems that Rio Board users often experience an issue with Rio Board daemon not running.
Whenever you call Rio Board library functions and see an error message like:
"ERROR: RioInit() call failed with error codeCan't open shared memory ID file"
Please check that daemon is running. To do so issue the command:
ps -A | grep rioboard_d
If the daemon is running you should see something like (numbers can be different):
775 ?        00:00:00 rioboard_d
Otherwise (daemon does not run) you should see nothing. In this case try to figure out why would daemon not run. There could be several reasons for that, specific to the distribution you are using. So, please post your question and distribution details to this topic if you still have problem making the daemon run.

Posting your question here please be specific and provide as much details as you can - your experience can be useful to others having the same problem.

Please Log in or Create an account to join the conversation.

6 years 3 months ago #29529060 by QuiXXotic
Yes the daemon isnt running apparently. During boot i se that it tries to start with the following lines:
Starting script rioboard_d
Usage: /etc/init.d/rioboard_d {start|stop}

But it doesnt start. When i try to start it manually with that command
/etc/init.d/rioboard_d start
i just get the same message in return
Usage: /etc/init.d/rioboard_d {start|stop}

Im running the Rasbian - Debian wheezy (release 2014-01-07)
It worked before even after several reboots and apps installations. But somehow something got corrupted i guess.

So any ideas how to get it running? Im fairly new to linux as you problably already noticed...

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29529065 by opal
Hello QuiXXotic,

Try starting the daemon as a normal console application. To do so change the directory to the location where the daemon binary resides(/usr/sbin) and execute:
./rioboard_d
The daemon should start as a foreground process. From the other shell session you can try to execute the test application.

If daemon does not start please provide the produced output.

Also check if WiringPi library is located under "/usr/local/lib". To do so issue the command:
find / -name libwiringPi.so.1.0

About: It worked before even after several reboots and apps installations. But somehow something got corrupted i guess
You have to agree that more details are needed to suggest something useful here. Please share what were the apps installed or other actions taken.

Regards

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29529066 by QuiXXotic
Nomal console start leads to the same message i always recieve:
Usage: /etc/init.d/rioboard_d {start|stop}

It doesnt start. And running:
./rioboard_d start

Returns:
Starting script rioboard_d
Usage: /etc/init.d/rioboard_d {start|stop}

Running
find / -name libwiringPi.so.1.0

Tells me that libwiringPi is indeed located in "usr/local/lib" and in "/home/pi/riofiles"

Regarding the other apps installed i just realized that it wasa on another memory card ive installed a bunch of apps. The only app ive installed after the rio installation is samba for sharing the memory card.

Do you have any recommendation regarding what OS to run on the Pi with rioboard?

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29529076 by opal
Please try to specify the full path to the daemon executable (it is unclear which is the current working directory at the moment you are attempting to run the daemon).

To do so please run:
sudo /usr/sbin/rioboard_d

To me it looks like you are in "/etc/init.d", trying to run a startup script (with the same name) rather than the binary. If this is your intention execute:
./rioboard_d start
from within "/etc/init.d" directory.

Regards

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29529077 by QuiXXotic
maybe that was unclear but i think that was exactly what i were doing.
sudo /usr/sbin/rioboard_d

returns:
Usage: /etc/init.d/rioboard_d {start|stop}

and moving to directory "/etc/init.d/" and then
./rioboard_d start

returns:
Starting script rioboard_d
Usage: /etc/init.d/rioboard_d {start|stop}

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29529082 by opal
Hello QuiXXotic,

That's indeed a mystery. Just to resolve remaining doubts, could you please zip and attach to the forum post "/usr/sbin/rioboard_d" and "/etc/init.d/rioboard_d"?

In the meantime we are investigating this issue, please consider using Raspbian from NOOBS ( NOOBS_v1_3_4.zip )
bundle and different Rio Board install script: http://dev.roboteq.com/dev1/riofiles/rio_board_install_raspbian_NOOBS.sh .

Please let us know if Raspbian.NOOBS worked for you.

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29529084 by QuiXXotic
Yo!

Both files are attached and im gonna try out the realease and optional rioinstallation you recommended during the weekend.

Thanks so far!
Attachments:

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29529090 by opal
Hello,
Now it is clear! Both files you have attached appear to be a daemon start scripts. Normally daemon executable should be located at "/usr/sbin/". Daemon executable is a binary file you can find at "/riofiles/rioboard_d" after Rio Board software installation. This binary should be copied to "/usr/sbin" by the script. I can't imagine the reason why it didn't in your case.

Please try copying the daemon manually and test the resulting setup like it was discussed above. On our side we will go step-by-step installing Rio Board software on exactly the same Linux distribution you have, to verify our installation script. If we find something wrong - it will be announced and update will be provided.
Regards

Please Log in or Create an account to join the conversation.

6 years 2 months ago #29529116 by QuiXXotic
Yes manually copy the file got it running. But i reinstalled everyting with your recommended files anyways.

Please Log in or Create an account to join the conversation.

Moderators: opal
Time to create page: 0.137 seconds