Giter Site home page Giter Site logo

Comments (8)

elBoberido avatar elBoberido commented on September 24, 2024 1

@Autostone-c @elfenpiff since iceoryx now uses a prefix for it's resources, it is sufficient to just do rm -rf /dev/shm/iox1* and rm -rf /tmp/iox1*. No need to remove unrelated shm files anymore

from iceoryx.

elfenpiff avatar elfenpiff commented on September 24, 2024

It seems that the example is currently broken. Could you please open config_and_run_ice_access_control.sh and change line 27 into

TMUX="tmux -2 -q"

and tell us if this fixes your issue.

Did you execute the command

./config_and_run_ice_access_control.sh config

before you executed the example with

./config_and_run_ice_access_control.sh run

Sometimes, the user and group information are not updated in your current session until you re-login. Could you try this as well please.

from iceoryx.

Autostone-c avatar Autostone-c commented on September 24, 2024

看来这个例子目前已经被破坏了。能否请您打开config_and_run_ice_access_control.sh第 27 行并将其更改为

TMUX="tmux -2 -q"

并告诉我们这是否可以解决您的问题。

你执行命令了吗

./config_and_run_ice_access_control.sh config

在执行示例之前

./config_and_run_ice_access_control.sh run

有时,在您重新登录之前,当前会话中的用户和组信息不会更新。您也可以尝试一下吗?

hi,thanks for your reply. I have modified and run what you said. but i get nothing on my terminal

from iceoryx.

elfenpiff avatar elfenpiff commented on September 24, 2024

@Autostone-c Could you start it manually.

  1. Open 4 Terminals
  2. In every terminal, go inside the iceoryx directory and then type cd build/iceoryx_examples/ice_access_control/
  3. Terminal 1: Start roudi with user roudi and group iceoryx with sudo -u roudi -g iceoryx -- ./iox-cpp-roudi-static-segments
  4. Terminal 2: Start the radar app with user perception and group iceoryx via sudo -u perception -g iceoryx -- ./iox-cpp-radar
  5. Terminal 3: Start the display app with user infotainment and group iceoryx via sudo -u infotainment -g iceoryx -- ./iox-cpp-display
  6. Terminal 4: Start the application that is not allowed to participate in the communication `sudo -u notallowed -g iceoryx -- ./iox-cpp-cheeky'. Here you should observe an error.

Did the single steps work?

from iceoryx.

Autostone-c avatar Autostone-c commented on September 24, 2024

5. sudo -u infotainment -g iceoryx -- ./iox-cpp-display

image
Have you ever encountered this error

from iceoryx.

elBoberido avatar elBoberido commented on September 24, 2024

I think you get this if there are some remnants of an old application with the same name, e.g. when you started that application with a different user and that application was not shut down gracefully. When the application is restarted, it notices that there are some remnants and tries to clean them up but they were created by a different user, it fails.

from iceoryx.

elfenpiff avatar elfenpiff commented on September 24, 2024

@Autostone-c I think I quick fix would be to restart the system, then those remnants should be cleaned up.

You can do this also manually by calling:

rm -rf /dev/shm/* # removes all shared memory data segments
rm -rf /tmp/$APP_NAME$* # removes all iceoryx lock files and sockets

For instance for the application iox-cpp-display it should be

rm -rf /tmp/iox-cpp-display*

Please check manually via ls -alh /tmp/ the files.

from iceoryx.

Autostone-c avatar Autostone-c commented on September 24, 2024

I have resolved the issue and need to add the dell user to the iceoryx group as well as delete the temporary files in the /tmp directory,i will close this issues

from iceoryx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.