45Drives / cockpit-file-sharing

A Cockpit plugin to easily manage samba and NFS file sharing.
GNU General Public License v3.0
590 stars 32 forks source link

ProcessError (exited non-zero) localhost: net: (255) #113

Open AlBundy33 opened 2 weeks ago

AlBundy33 commented 2 weeks ago

Bug Info

Describe the bug Installed latest version in Rocky 9.4 with cockpit 311.2 and now I get this error when opening the samba-page

ProcessError (exited non-zero)

localhost: net:  (255)

Screenshot_20241029-224134_Chrome

this is a new lxc container - so I don't have any shares configured

joshuaboud commented 1 week ago

Does the user you logged into cockpit as have administrative access (e.g. a sudoer)? Check the top right part of the cockpit window to see if it says "Administrative access" or " :lock: Limited access"

AlBundy33 commented 1 week ago

yes, of course - downgrading to the previous version works as expected (no error message and global settings are visible)

in terminal I can run net conf commands without error.

matzzze commented 1 week ago

@AlBundy33 same issue here with debian 12 on bare metal, which version did you use to get rid of the error?

AlBundy33 commented 1 week ago

on rocky the latest working version is 3.3.7-1

timwhite1 commented 1 week ago

on rocky the latest working version is 3.3.7-1

This worked for me on Alma Linux 9.4 as well.

Needed to block updates to the package to prevent pulling back in 4.2.5 (until new features are fully functional in a few weeks)

Install older version 3.3.7 Cockpit File Sharing plugin

wget https://github.com/45Drives/cockpit-file-sharing/releases/download/v3.3.7/cockpit-file-sharing-3.3.7-1.el8.noarch.rpm sudo dnf install -y cockpit-file-sharing-3.3.7-1.el8.noarch.rpm

Lock updates for the plugin to avoid reinstalling newer buggy version

cp /etc/dnf/dnf.conf /etc/dnf/dnf.conf.bak #backup the original dnf config file if ! grep -q '^exclude=cockpit-file-sharing' /etc/dnf/dnf.conf; then echo 'exclude=cockpit-file-sharing' | sudo tee -a /etc/dnf/dnf.conf > /dev/null fi

Note this simply adds an exclude line to the end of dnf.conf

# exclude=cockpit-file-sharing
dimarcode commented 1 week ago

I was having the same issue. The exact same error when opening the samba page, and no global settings available for configuration in the gui. Rolling back to 3.3.7 worked for me as well. Logged in as root on brand new LXC container in proxmox.

kekylin commented 1 week ago

The same problem also occurred on Ubuntu 24.04.1 LTS. This is my solution. I hope it will be helpful to those in need.

Steps to solve the error problem of cockpit-file-sharing plugin version 4.2.5. Affected plug-in version: Cockpit File Sharing 4.2.5

Error message: ProcessError (exited non-zero) localhost: net: (255)

Solution steps:

  1. Query the available plug-in version sudo apt list -a cockpit-file-sharing

The terminal returns the following information: ubuntu:~$ sudo apt list -a cockpit-file-sharing Listing... Done cockpit-file-sharing/focal,now 4.2.5-2focal all [installed] cockpit-file-sharing/focal 4.2.5-1focal all cockpit-file-sharing/focal 3.3.7-1focal all cockpit-file-sharing/focal 3.3.6-1focal all cockpit-file-sharing/focal 3.3.5-1focal all

According to the output, there are multiple versions of cockpit-file-sharing available in the system. The currently installed version is 4.2.5-2focal

  1. Uninstall the current version sudo apt remove cockpit-file-sharing

  2. Install the specified version sudo apt install cockpit-file-sharing=3.3.7-1focal

  3. Verify the installation sudo apt list --installed cockpit-file-sharing

The terminal returns the following information: ubuntu:~$ sudo apt list --installed cockpit-file-sharing Listing... Done cockpit-file-sharing/focal,now 3.3.7-1focal all [installed,upgradable to: 4.2.5-2focal] N: There are 30 additional versions. Please use the '-a' switch to see them.

The 3.3.7-1focal version has been successfully installed, and the system also prompts that a new version is available (4.2.5-2focal). Since there is a problem with the current version 4.2.5, you can lock the current version to avoid automatic upgrade to 4.2.5.

  1. Lock the current version: sudo apt-mark hold cockpit-file-sharing

  2. Confirm the lock. You can run the following command to confirm that it has been locked: sudo apt-mark showhold

  3. If the problem is solved in the future and you want to upgrade again, just run the following command to unlock: sudo apt-mark unhold cockpit-file-sharing

jenishngl commented 1 week ago

The same problem also occurred on Ubuntu 24.04.1 LTS. This is my solution. I hope it will be helpful to those in need.

Steps to solve the error problem of cockpit-file-sharing plugin version 4.2.5. Affected plug-in version: Cockpit File Sharing 4.2.5

Error message: ProcessError (exited non-zero) localhost: net: (255)

Solution steps:

  1. Query the available plug-in version sudo apt list -a cockpit-file-sharing

The terminal returns the following information: ubuntu:~$ sudo apt list -a cockpit-file-sharing Listing... Done cockpit-file-sharing/focal,now 4.2.5-2focal all [installed] cockpit-file-sharing/focal 4.2.5-1focal all cockpit-file-sharing/focal 3.3.7-1focal all cockpit-file-sharing/focal 3.3.6-1focal all cockpit-file-sharing/focal 3.3.5-1focal all

According to the output, there are multiple versions of cockpit-file-sharing available in the system. The currently installed version is 4.2.5-2focal

  1. Uninstall the current version sudo apt remove cockpit-file-sharing
  2. Install the specified version sudo apt install cockpit-file-sharing=3.3.7-1focal
  3. Verify the installation sudo apt list --installed cockpit-file-sharing

The terminal returns the following information: ubuntu:~$ sudo apt list --installed cockpit-file-sharing Listing... Done cockpit-file-sharing/focal,now 3.3.7-1focal all [installed,upgradable to: 4.2.5-2focal] N: There are 30 additional versions. Please use the '-a' switch to see them.

The 3.3.7-1focal version has been successfully installed, and the system also prompts that a new version is available (4.2.5-2focal). Since there is a problem with the current version 4.2.5, you can lock the current version to avoid automatic upgrade to 4.2.5.

  1. Lock the current version: sudo apt-mark hold cockpit-file-sharing
  2. Confirm the lock. You can run the following command to confirm that it has been locked: sudo apt-mark showhold
  3. If the problem is solved in the future and you want to upgrade again, just run the following command to unlock: sudo apt-mark unhold cockpit-file-sharing

Isnt this just installing an older version to fix the issue temporarily?

kekylin commented 1 week ago

The same problem also occurred on Ubuntu 24.04.1 LTS. This is my solution. I hope it will be helpful to those in need.

Steps to solve the error problem of cockpit-file-sharing plugin version 4.2.5. Affected plug-in version: Cockpit File Sharing 4.2.5

Error message: ProcessError (exited non-zero) localhost: net: (255)

Solution steps:

  1. Query the available plug-in version sudo apt list -a cockpit-file-sharing

The terminal returns the following information: ubuntu:~$ sudo apt list -a cockpit-file-sharing Listing... Done cockpit-file-sharing/focal,now 4.2.5-2focal all [installed] cockpit-file-sharing/focal 4.2.5-1focal all cockpit-file-sharing/focal 3.3.7-1focal all cockpit-file-sharing/focal 3.3.6-1focal all cockpit-file-sharing/focal 3.3.5-1focal all

According to the output, there are multiple versions of cockpit-file-sharing available in the system. The currently installed version is 4.2.5-2focal

  1. Uninstall the current version sudo apt remove cockpit-file-sharing
  2. Install the specified version sudo apt install cockpit-file-sharing=3.3.7-1focal
  3. Verify the installation sudo apt list --installed cockpit-file-sharing

The terminal returns the following information: ubuntu:~$ sudo apt list --installed cockpit-file-sharing Listing... Done cockpit-file-sharing/focal,now 3.3.7-1focal all [installed,upgradable to: 4.2.5-2focal] N: There are 30 additional versions. Please use the '-a' switch to see them.

The 3.3.7-1focal version has been successfully installed, and the system also prompts that a new version is available (4.2.5-2focal). Since there is a problem with the current version 4.2.5, you can lock the current version to avoid automatic upgrade to 4.2.5.

  1. Lock the current version: sudo apt-mark hold cockpit-file-sharing
  2. Confirm the lock. You can run the following command to confirm that it has been locked: sudo apt-mark showhold
  3. If the problem is solved in the future and you want to upgrade again, just run the following command to unlock: sudo apt-mark unhold cockpit-file-sharing

Isnt this just installing an older version to fix the issue temporarily?

Yes, fix the problem by installing an older version. If you need to use the new feature iSCSI, this is not a good solution.