[SOLVED] Error connecting Samba Share

TBF IT

Member
Jun 6, 2018
3
0
21
52
Hello,

We updated VE 5.1 to 5.2 because we wanted to use Samba storage.
We use a Proxmox / Ceph cluster.
The upgrade went as expected.

But configuring the store is a bit problematic.

We tried to add it within the GUI and we got this error:

create storage failed: error with cfs lock 'file-storage_cfg': mkdir /mnt/pve/CIFS-Share/template: Permission denied at /usr/share/perl5/PVE/Storage/Plugin.pm line 882. (500)

Doing the same thing with a non-enabled share worked and enabling it work too.
Only the Storage gets a question mark and trying to access it we now get this error:

mkdir /mnt/pve/Proxmox-Offline/template: Permission denied at /usr/share/perl5/PVE/Storage/Plugin.pm line 882. (500)

So, now we have an unusable memory and from our attempts we got a number of folders in /mnt/pve/ which are not extinguishable since they are considered in use.

"ls -al" on /mnt/pve on the virtual host we are logged in shows:

drwxr-xr-x 2 root root 0 Apr 27 2017 Backup-cifs
d????????? ? ? ? ? ? Backup-CIFS
drwxr-xr-x 2 root root 0 Jun 6 12:22 backup-smb
drwxr-xr-x 2 root root 0 Jun 6 13:54 Backup_SMB
drwxr-xr-x 2 root root 0 Jun 6 12:22 Proxmox-Offline

and they can not be deleted after they have been removed within the GUI.

The others show a different results:

one is clean and two look like this:

drwxr-xr-x 2 root root 0 Jun 6 12:22 backup-smb
drwxr-xr-x 2 root root 0 Jun 6 13:54 Backup_SMB
drwxr-xr-x 2 root root 0 Jun 6 12:22 Proxmox-Offline

I don't know if we did something wrong or if this is a bug.
A solution or a hint into a good direction would be appreciated.

Thanks a lot
 
Last edited:
Hi,

the error message tells you that you have no rights to create the dir templates.
This has to be done on the server side. You need the write permission on this smb server.

To remove the directories you have umount them before.
Code:
umount <path>
 
I had to umount the directories several times on all servers and checked the permissions by foot.
But that worked.

Thanks a lot.
MfG
Babak
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!