GNS3 / gns3-gui

GNS3 Graphical Network Simulator
http://www.gns3.com
GNU General Public License v3.0
2.15k stars 435 forks source link

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

Open Kizan opened 3 days ago

Kizan commented 3 days ago

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

auspham commented 3 days ago

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 commented 3 days ago

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

Raph-lab-64 commented 3 days ago

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

GanzaTM commented 2 days ago

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

jschuhmann47 commented 2 days ago

Same here, also reported here

jcalano commented 2 days ago

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 commented 2 days ago

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 commented 2 days ago

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

auspham commented 2 days ago

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 commented 2 days ago

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 commented 2 days ago

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

e-thibault commented 2 days ago

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 ?

MaiMarti commented 2 days ago

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 commented 2 days ago

@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 commented 2 days ago

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 commented 2 days ago

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 commented 1 day ago

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 commented 18 hours ago

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 commented 5 hours ago

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 commented 4 hours ago

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 commented 3 hours ago

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 commented 3 hours ago

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 commented 2 hours ago

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

stutzzzz commented 35 minutes ago

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 commented 24 minutes ago

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