Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am encountering an issue while running the mgen program on my system. The error message is: scss Copy code #59

Open
LattabNidal opened this issue Dec 21, 2024 · 1 comment

Comments

@LattabNidal
Copy link

am encountering an issue while running the mgen program on my system. The error message is:

scss
Copy code
GPSSubscribe(): fopen() error: No such file or directory
The error occurs when I try to execute the program with the following command:

bash
Copy code
sudo ./mgen < traffic.conf
Even though I have tried to ensure that the necessary files are in the correct directories, it seems that the program cannot find a specific file, likely related to GPS functionality, that it needs. I have checked the configuration files, and I believe the problem might be related to missing or incorrect file paths.

I also attempted to resolve the issue by using a symbolic link to the file and verifying the paths, but the error still persists.

Steps I have taken:

Verified the existence of the gpsPub.cpp file in the correct directory (/src/common).
Checked the paths in the configuration file (traffic.conf) to ensure they are correct.
Tried creating symbolic links to ensure the program could access the necessary file.
Recompiled the program using make and make clean.
Unfortunately, none of these steps have resolved the issue, and I am still unable to run the program correctly.

This text summarizes the steps you've taken and the issue you're facing. Feel free to adjust or use it to seek further assistance.

nidal@nidal-VirtualBox:/Desktop/mgen-5.1.1/makefiles$ sudo ./mgen < traffic.conf
[sudo] password for nidal:
GPSSubscribe(): fopen() error: No such file or directory
GPSSubscribe(): fopen() error: No such file or directory
mgen: version 5.1.1
mgen: starting now ...
17:45:20.016839 START Mgen Version 5.1.1
17:45:20.016884 STOP
nidal@nidal-VirtualBox:
/Deskt

@weston-nrl
Copy link
Collaborator

weston-nrl commented Dec 23, 2024

The error "GPSSubscribe(): fopen() error: No such file or directory" has to do with accessing a shared memory location where GPS positions are published for the node (via gpsLogger, gpsFaker, gpsPub methods, etc.). If you are not attempting to supply GPS positions, this is an expected error (should possibly be a warning instead of an error), and it does not in any way affect any MGEN operation for network traffic generation/reception, logging, etc.

I should also note that you may even see two of those messages, or one still when you are supplying GPS positions as MGEN can also use the same technique for supplying payload data from other programs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants