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

gns3-server user rights issues - v2.2.50 #3646

Closed
Kizan opened this issue Oct 22, 2024 · 38 comments
Closed

gns3-server user rights issues - v2.2.50 #3646

Kizan opened this issue Oct 22, 2024 · 38 comments
Labels

Comments

@Kizan
Copy link

Kizan commented Oct 22, 2024

OS: Ubuntu 24.04.1 (upgrade and fresh install)
GNS3 version: 2.2.50
Local GNS3 server

Attempt 1:
Ran upgrade from 2.2.49 to 2.2.50, discovered GNS3 server application is now running as new user "gns3-server". It has no rights in the /home//GNS3 folder and can't read/write there. Was able to add gns3-server user to local users group and that allowed gns3 to create new projects [sudo usermod -aG $(whoami) gns3-server
]. However, this still didn't allow it to open old projects. All custom templates are missing (no surprise) and am unable to use the standard templates. I tried to pull out a NAT object and get this error.

"Error while creating node from template: uBridge is not available, path doesn't exist, or you just installed GNS3 and need to restart your user session to refresh user permissions."

Restarting app does not help, nor does restarting the OS.

Attempt 2:
Fresh Ubuntu 24.04.1 (newest updates) installed and then installed GNS3 v2.2.50. New install has the gns3-server user issues mentioned above. In addition, the fresh install does not create the /home//GNS3 folder.

2024-10-21 14_06_32-TEMPLATE - Ubuntu 24 04-GNS3-T1 - GNS3 Error 1

2024-10-21 14_06_32-TEMPLATE - Ubuntu 24 04-GNS3-T1 - GNS3 Error 2

@Kizan Kizan added the Bug label Oct 22, 2024
@auspham
Copy link

auspham commented Oct 22, 2024

I'm having the same exact problem as well for newly installed GNS3 "Could not create project directory". Was looking for solution for hours.

2024-10-23 00:01:45 DEBUG http_client:551 POST http://localhost:3080/v2/projects {'name': 'untitled', 'path': '/home/austin/GNS3/projects/untitled', 'grid_size': 75, 'drawing_grid_size': 25, 'show_grid': False, 'snap_to_grid': False, 'show_interface_labels': False}
2024-10-23 00:01:45 DEBUG http_client:662 Response error: Error transferring http://admin@localhost:3080/v2/projects - server replied: Internal Server Error (localhost:3080) for http://admin@localhost:3080/v2/projects (error: 401)
2024-10-23 00:01:45 CRITICAL topology.py:258 Could not create project directory: [Errno 13] Permission denied: '/home/austin/GNS3'

@stutzzzz
Copy link

Same after update all images could not be seen couldn't create new project.

1 similar comment
@Raph-lab-64
Copy link

Same after update all images could not be seen couldn't create new project.

@GanzaTM
Copy link

GanzaTM commented Oct 22, 2024

The same problem. Can someone tell me it is possible to download GNS3 2.2.49?

@jschuhmann47
Copy link

Same here, also reported here

@jcalano
Copy link

jcalano commented Oct 23, 2024

I just updated to 2.2.50 and now I get an error "ubridge path not found" and all my templates are missing as are my remote servers. All of my local paths have been reset to the defaults as well, it's as if this is a new install. I run this with two remote servers on two workstations simultaneously. It will take me at least two hours to reconfigure everything. Please provide a way to revert the upgrade in cases like this where the entire system get reset. I fixed the ubridge issue by running the setup wizard, after noticing the complete system reset and all my configurations were gone. I'm very upset about this. Valuable lab time has to be postponed until I can reconfigure this again.

@grossmj
Copy link
Member

grossmj commented Oct 23, 2024

I apologize for this issue, we didn't anticipate it would create problems since enabling the service is optional when you install the gns3-server package.

Has anyone seen this dialog?

Screenshot from 2024-10-09 18-33-14

I have reverted the changes for now and will go back to the drawing board in regard of how we handle the gns3-server service.

New packages with the old behavior have been published:

gns3-server-2.2.50~oracular2
gns3-server-2.2.50~noble2
gns3-server-2.2.50~jammy2
gns3-server-2.2.50~focal2

@Kizan
Copy link
Author

Kizan commented Oct 23, 2024

I never saw this dialog during the upgrade or the fresh installs that I've done.

@auspham
Copy link

auspham commented Oct 23, 2024

I apologize for this issue, we didn't anticipate it would create problems since enabling the service is optional when you install the gns3-server package.

Has anyone seen this dialog?

Screenshot from 2024-10-09 18-33-14

I have reverted the changes for now and will go back to the drawing board in regard of how we handle the gns3-server service.

New packages with the old behavior have been published:

gns3-server-2.2.50~oracular2
gns3-server-2.2.50~noble2
gns3-server-2.2.50~jammy2
gns3-server-2.2.50~focal2

I saw the dialog and selected NO, upons removing and reinstalling this dialog not appear anymore.

@ahmedkhlief
Copy link

i also have the same issue and after modifying the permissions i managed to make it work but now it can't list VMs in vbox or vmware and other issues also related to permissions

@Raph-lab-64
Copy link

Hello,
I cannot find these packages gns3-server-2.2.50oracular2, gns3-server-2.2.50noble, 2gns3-server-2.2.50jammy, 2gns3-server-2.2.50focal2, in the repositories ( I use Mint). How can I install them?
thank's

@e-thibault
Copy link

Yes I must have seen it but

  1. in the previous installations I remembered we always had to answer 'yes' to those screens
  2. I thought in a new edition fom 2.2.49 to 2.2.50 there would not be major change anyway.

so now that we installed that version how should we proceed to get the correction ?

  • do we have to uninstall GNS3 and reinstall 2.2.50 for our OS ?
  • or do we have to install 2.2.50 for our OS, i.e. gns3-server-2.2.50~noble2 for me and it should correct the issue ?

@MaiMarti
Copy link

MaiMarti commented Oct 23, 2024

I did remove the old version gns3-server-2.2.50 (jammy1)
update repository
install the new version gns3-server-2.2.50~jammy2
and select the "NO" to avoid gns3-server as a service.

But not working for me.
The only way is doing this everytime I want to use GNS3:
close gns3
sudo ps -ef | grep gns3

And kill the process: sudo kill -9 pid

It's really annoying working this way.
I hope they will repair soon.
Is it possible to return to 2.2.49 version?

@auspham
Copy link

auspham commented Oct 23, 2024

@grossmj

I removed the old versions and then re-installed your updates. However facing unauthentication error.

2024-10-23 19:14:08 ERROR http_client:681 Host requires authentication (localhost:3080)
2024-10-23 19:14:08 DEBUG http_client:371 Retry connection to http://localhost:3080
2024-10-23 19:14:09 DEBUG http_client:551 GET http://localhost:3080/v2/version {}
2024-10-23 19:14:09 DEBUG http_client:662 Response error: Host requires authentication (localhost:3080) for http://admin@localhost:3080/v2/version (error: 204)

@e-thibault
Copy link

so now that we installed that version how should we proceed to get the correction ?

  • do we have to uninstall GNS3 and reinstall 2.2.50 for our OS ?
  • or do we have to install 2.2.50 for our OS, i.e. gns3-server-2.2.50~noble2 for me and it should correct the issue ?

Thinking twice about it I imagine that you produced a new version without the choice that introduces the new option
would it be just for the new people that had not upgraded yet so they can upgrade without the issue whatever their choice,
so uninstall and reinstall I think.

Now I already had an issue with GNS3 2.2.49 described there :
https://gns3.com/community/featured/gns3-2-2-49-on-ubuntu-24-04-does-not-recognize-gns3-2-2-47-projects-working-on-ubuntu-22-04
I imagine it is still there...

@e-thibault
Copy link

OK so I uninstalled GNS3 and reinstalled it, I got no screen with questions like in Jeremy's post.
the issue of users rights is solved but not the issue I found in GNS3 2.2.49 i reported there :
https://gns3.com/community/featured/gns3-2-2-49-on-ubuntu-24-04-does-not-recognize-gns3-2-2-47-projects-working-on-ubuntu-22-04

So I'm going to open an issue here...

@stutzzzz
Copy link

re installing the new update crashes on cosmic may be a wayland issue. x11 appears to launch and create a project but unable to see images like FTDs or FMCs that was used before.

@jcalano
Copy link

jcalano commented Oct 24, 2024

What changes during the install process that makes it so my templates are not found? Now that my other computer was updated to the latest GNS3 version all my templates are gone. Is there an easy way to get them back without having to reinstall them all?

@pmsobral
Copy link

All my templates are also gone! Please roll back these changes and go back to 2.2.49. Precious time lost trying to solve this!

@grossmj
Copy link
Member

grossmj commented Oct 25, 2024

Do you know under what user the GNS3 server run? ps aux | grep gns3server?

Also, your templates should be stored in ~/.config/GNS3/2.2/gns3_controller.conf

Finally, what is the output of systemctl status gns3-server?

Thanks.

@pmsobral
Copy link

Thank You for your message:

ps -aux | grep gns3-server

root 3952 0.4 0.4 357764 51668 ? Ssl 12:45 0:03 /usr/share/gns3/gns3-server/bin/python /usr/bin/gns3server --local

Perhaps this is the problem as I have a user (not root) where all the templates are stored in the corresponding gns3_controller.conf file

systemctl status gns3-server

● gns3-server.service - GNS3 server
Loaded: loaded (/lib/systemd/system/gns3-server.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2024-10-25 10:22:35 WEST; 2h 39min ago
Main PID: 3952 (gns3server)
Tasks: 5 (limit: 13860)
Memory: 65.1M
CGroup: /system.slice/gns3-server.service
└─3952 /usr/share/gns3/gns3-server/bin/python /usr/bin/gns3server --local

Any help will be greatly appreciated! Thanks.

Regards,

Pedro

@pmsobral
Copy link

pmsobral commented Oct 25, 2024

I linked the 2.2 directory in the root home dir to the one with my user configs (redes) and it works now.

root@RedesVM:/.config/GNS3# mv 2.2 2.2.bak
root@RedesVM:
/.config/GNS3# ln -s /home/redes/.config/GNS3/2.2 /root/.config/GNS3/2.2

So, if the gns3server is launched at gns3-gui startup by my user and not as a service running as root in background this problem should be avoided.

Thanks.

Pedro

@e-thibault
Copy link

Sorry after a windows update I cannot start my VMs anymore on my pro laptop so for the moment I cannot provide outputs.

@stutzzzz
Copy link

recent update fixed the permission issue of opening new projects but I am unable to open old projects due to not being able to see the images. This includes new projects its also unable to locate the images.

@joohnnyf1
Copy link

joohnnyf1 commented Oct 25, 2024

please roll back these changes and go back to 2.2.49 and fix this for gods sake already!! (ubuntu)

@e-thibault
Copy link

This issue affects already gns3 2.2.49 as the github issue #3647 states (I found it on GNS3 2.2.49).
You can yourself check that by uninstalling gns3 2.2.50 and install GNS3 2.2.49 instead :
python3 -m pip install gns3-gui==2.2.49
python3 -m pip install gns3-server==2.2.49

Personnally the version I am only sure of is GNS3 2.2.47
because I have a running install of it above ubuntu 22.04 (on my laptop)

@MaiMarti
Copy link

MaiMarti commented Oct 26, 2024

I linked the 2.2 directory in the root home dir to the one with my user configs (redes) and it works now.

root@RedesVM:/.config/GNS3# mv 2.2 2.2.bak root@RedesVM:/.config/GNS3# ln -s /home/redes/.config/GNS3/2.2 /root/.config/GNS3/2.2

So, if the gns3server is launched at gns3-gui startup by my user and not as a service running as root in background this problem should be avoided.

Thanks.

Pedro

This solution worked for me.

I moved 2.2 to 2.2.bak
And linked my directory 2.2 to the root directory
root@host: ~/.config/GNS3# mv 2.2 2.2.bak
root@host: ~/.config/GNS3# ln -s /home/youruser/.config/GNS3/2.2 /root/.config/GNS3/2.2

After reboot all images, projects ... work as always.

Thanks Pedro

@stutzzzz
Copy link

I linked the 2.2 directory in the root home dir to the one with my user configs (redes) and it works now.
root@RedesVM:/.config/GNS3# mv 2.2 2.2.bak root@RedesVM:/.config/GNS3# ln -s /home/redes/.config/GNS3/2.2 /root/.config/GNS3/2.2
So, if the gns3server is launched at gns3-gui startup by my user and not as a service running as root in background this problem should be avoided.
Thanks.
Pedro

This solution worked for me.

I moved 2.2 to 2.2.bak And linked my directory 2.2 to the root directory root@host: ~/.config/GNS3# mv 2.2 2.2.bak root@host: ~/.config/GNS3# ln -s /home/youruser/.config/GNS3/2.2 /root/.config/GNS3/2.2

After reboot all images, projects ... work as always.

Thanks Pedro

This worked great for me.

@pmsobral
Copy link

This was just a hack to overcome the problems caused by the initial update to the 2.2.50 version I saw in the GNS3 forum. A new update is available. In ubuntu 22.04 I uninstalled gns3-gui and gns3-server and reinstalled them again (using apt-get) and everything works as expected now. So, you can undo the hack as it is not necessary anymore.

@grossmj
Copy link
Member

grossmj commented Oct 28, 2024

In ubuntu 22.04 I uninstalled gns3-gui and gns3-server and reinstalled them again (using apt-get) and everything works as expected now. So, you can undo the hack as it is not necessary anymore.

Indeed, the following packages fix the issue:

gns3-server-2.2.50~oracular3
gns3-server-2.2.50~noble3
gns3-server-2.2.50~jammy3
gns3-server-2.2.50~focal3

We are going to release v2.2.51 in a few days too.

@grossmj grossmj closed this as completed Oct 28, 2024
@AlvaroLucasPerez
Copy link

AlvaroLucasPerez commented Nov 7, 2024

i have troubles with the v2.2.51 i switch the permissions of some files and i get all the time when i try to open or create a projet.
Could not load topology /home/batoi/GNS3/projects/practica1/practica1-1.gns3: [Errno 13] Permission denied: '/home/batoi/GNS3/projects/practica1/practica1-1.gns3

@grossmj
Copy link
Member

grossmj commented Nov 8, 2024

@AlvaroLucasPerez I need more information to help.

Do you have a systemd service running?

Use this command to find out: systemctl status gns3-server

@mozzy45
Copy link

mozzy45 commented Nov 8, 2024

@grossmj I am also getting the error after upgrading to v2.2.51.

=> Could not load topology /home/gibson/GNS3/projects/Demo_BGP+LAB/Demo_BGP+LAB.gns3: [Errno 13] Permission denied: '/home/gibson/GNS3/projects/Demo_BGP+LAB/Demo_BGP+LAB.gns3'

Do you have a systemd service running? Yes


$ systemctl status gns3-server
● gns3-server.service - GNS3 server
Loaded: loaded (/usr/lib/systemd/system/gns3-server.service; enabled; pres>
Active: active (running) since Fri 2024-11-08 05:50:34 SAST; 9min ago
Main PID: 1587 (gns3server)
Tasks: 1 (limit: 14067)
Memory: 64.6M (peak: 69.4M)
CPU: 1.483s
CGroup: /system.slice/gns3-server.service
└─1587 /usr/share/gns3/gns3-server/bin/python /usr/bin/gns3server >

@grossmj
Copy link
Member

grossmj commented Nov 8, 2024

Do you have a systemd service running? Yes

Then stop/disable the service with systemctl stop gns3-server && systemctl disable gns3-server and let the GUI start the server.

@mozzy45
Copy link

mozzy45 commented Nov 8, 2024

Have run the above commands and when I try to create a new project I get the following error:

Could not create project directory: [Errno 13] Permission denied: '/home/gibson/GNS3/projects/mona'

--

Trying tu open an existing project and still getting the following error:

Could not create project directory: [Errno 13] Permission denied: '/home/gibson/GNS3/projects/mona'
Could not write topology: [Errno 13] Permission denied: '/home/gibson/GNS3/projects/Demo_BGP+LAB/Demo_BGP+LAB.gns3.tmp'

Updating permissions on the projects folder and subfolders resolved the above error.

Thank you @grossmj , much appreciated.

@Huron
Copy link

Huron commented Nov 20, 2024

Do you have a systemd service running? Yes

Then stop/disable the service with systemctl stop gns3-server && systemctl disable gns3-server and let the GUI start the server.

This solution works for me. Thanks a lot!

@AlvaroLucasPerez
Copy link

AlvaroLucasPerez commented Nov 20, 2024 via email

@adioalao
Copy link

Do you have a systemd service running? Yes

Then stop/disable the service with systemctl stop gns3-server && systemctl disable gns3-server and let the GUI start the server.

This solution works for me too. Thanks

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

No branches or pull requests