- Forum
- RIO I/O Expansion Card and Navigation Computer
- Linux Installation & Programming
- Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
- opal
- Topic Author
9 years 5 months ago - 9 years 5 months ago #29529052
by opal
Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message was created 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:Please check that daemon is running. To do so issue the command:If the daemon is running you should see something like (numbers can be different):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.
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"
ps -A | grep rioboard_d
775 ? 00:00:00 rioboard_d
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.
9 years 5 months ago #29529060
by QuiXXotic
Replied by QuiXXotic on topic Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
Yes the daemon isnt running apparently. During boot i se that it tries to start with the following lines:
But it doesnt start. When i try to start it manually with that commandi just get the same message in return
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...
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
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.
- opal
- Topic Author
9 years 5 months ago #29529065
by opal
Replied by opal on topic Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
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: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:
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
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
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.
9 years 5 months ago #29529066
by QuiXXotic
Replied by QuiXXotic on topic Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
Nomal console start leads to the same message i always recieve:
It doesnt start. And running:
Returns:
Running
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?
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.
- opal
- Topic Author
9 years 5 months ago #29529076
by opal
Replied by opal on topic Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
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:
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:from within "/etc/init.d" directory.
Regards
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
Regards
Please Log in or Create an account to join the conversation.
9 years 5 months ago #29529077
by QuiXXotic
Replied by QuiXXotic on topic Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
maybe that was unclear but i think that was exactly what i were doing.
returns:
and moving to directory "/etc/init.d/" and then
returns:
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.
- opal
- Topic Author
9 years 5 months ago #29529082
by opal
Replied by opal on topic Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
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: dev.roboteq.com/dev1/riofiles/rio_board_...ll_raspbian_NOOBS.sh .
Please let us know if Raspbian.NOOBS worked for you.
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: dev.roboteq.com/dev1/riofiles/rio_board_...ll_raspbian_NOOBS.sh .
Please let us know if Raspbian.NOOBS worked for you.
Please Log in or Create an account to join the conversation.
9 years 5 months ago #29529084
by QuiXXotic
Replied by QuiXXotic on topic Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
Yo!
Both files are attached and im gonna try out the realease and optional rioinstallation you recommended during the weekend.
Thanks so far!
Both files are attached and im gonna try out the realease and optional rioinstallation you recommended during the weekend.
Thanks so far!
Please Log in or Create an account to join the conversation.
- opal
- Topic Author
9 years 5 months ago #29529090
by opal
Replied by opal on topic Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
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
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.
9 years 5 months ago #29529116
by QuiXXotic
Replied by QuiXXotic on topic Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
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
- Forum
- RIO I/O Expansion Card and Navigation Computer
- Linux Installation & Programming
- Rio "ERROR: RioInit() call failed with error codeCan't open shared memory ID file" message
Time to create page: 0.073 seconds