* [PVE-User] Backup Beta - restore failing
@ 2020-07-11 5:05 Lindsay Mathieson
2020-07-11 6:33 ` Dietmar Maurer
0 siblings, 1 reply; 11+ messages in thread
From: Lindsay Mathieson @ 2020-07-11 5:05 UTC (permalink / raw)
To: Proxmox VE user list
Have installed the Backup Server on a VM with storage on a NFS serve
(our NAS) - not recommend I know, but its for testing.
Have backups working fine, performance is ok and the diff backups are
very fast. However can't get a restore to work, get this error in the
web gui:
/usr/bin/proxmox-backup-client restore '--crypt-mode=none'
vm/311/2020-07-11T00:57:52Z index.json
/var/tmp/vzdumptmp121335/index.json --repository
proxmox@pbs@192.168.5.49:test' failed: exit code 255
If I run the same command from the console, I get:
/usr/bin/proxmox-backup-client restore '--crypt-mode=none'
vm/311/2020-07-11T00:57:52Z index.json
/var/tmp/vzdumptmp121335/index.json --repository
proxmox@pbs@192.168.5.49
Error: parameter verification errors
parameter 'repository': value does not match the regex pattern
proxmox@pbs has DatastorePowerUser rights.
--
Lindsay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 5:05 [PVE-User] Backup Beta - restore failing Lindsay Mathieson
@ 2020-07-11 6:33 ` Dietmar Maurer
2020-07-11 7:09 ` Lindsay Mathieson
2020-07-11 7:17 ` Lindsay Mathieson
0 siblings, 2 replies; 11+ messages in thread
From: Dietmar Maurer @ 2020-07-11 6:33 UTC (permalink / raw)
To: Proxmox VE user list, Lindsay Mathieson
> Have backups working fine, performance is ok and the diff backups are
> very fast. However can't get a restore to work, get this error in the
> web gui:
>
> /usr/bin/proxmox-backup-client restore '--crypt-mode=none'
> vm/311/2020-07-11T00:57:52Z index.json
> /var/tmp/vzdumptmp121335/index.json --repository
> proxmox@pbs@192.168.5.49:test' failed: exit code 255
>
>
> If I run the same command from the console, I get:
>
> /usr/bin/proxmox-backup-client restore '--crypt-mode=none'
> vm/311/2020-07-11T00:57:52Z index.json
> /var/tmp/vzdumptmp121335/index.json --repository
> proxmox@pbs@192.168.5.49
> Error: parameter verification errors
>
> parameter 'repository': value does not match the regex pattern
>
>
> proxmox@pbs has DatastorePowerUser rights.
Seem there is a problem how we compute the repository - the datastore part is missing.
It should look like <user@pbs@<IP>:<datastore>. For example, if your datastore
name is 'store1':
--repository proxmox@pbs@192.168.5.49:store1
You can test easily if that works with:
# proxmox-backup-client snapshots --repository proxmox@pbs@192.168.5.49:store1
Please can you show post the pbs storage configuration?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 6:33 ` Dietmar Maurer
@ 2020-07-11 7:09 ` Lindsay Mathieson
2020-07-11 8:28 ` Dietmar Maurer
2020-07-11 7:17 ` Lindsay Mathieson
1 sibling, 1 reply; 11+ messages in thread
From: Lindsay Mathieson @ 2020-07-11 7:09 UTC (permalink / raw)
To: Dietmar Maurer, Proxmox VE user list
On 11/07/2020 4:33 pm, Dietmar Maurer wrote:
> Please can you show post the pbs storage configuration?
pbs: backupbeta
datastore test
server 192.168.5.49
content backup
fingerprint
1c:f0:e0:76:67:a5:f3:b7:b6:2b:5c:33:xxxxxxxxx:98:8f:31:15:0b:0d:53:93:2b:2f:52
maxfiles 2
nodes vni,vnh,vnb
username proxmox@pbs
> Seem there is a problem how we compute the repository - the datastore part is missing.
> It should look like <user@pbs@<IP>:<datastore>. For example, if your datastore
> name is 'store1':
>
> --repositoryproxmox@pbs@192.168.5.49:store1
>
> You can test easily if that works with:
>
> # proxmox-backup-client snapshots --repositoryproxmox@pbs@192.168.5.49:store1
proxmox-backup-client restore '--crypt-mode=none'
vm/311/2020-07-11T00:57:52Z index.json
/var/tmp/vzdumptmp121335/index.json --repository
proxmox@pbs@192.168.5.49:backupbeta
Processed without the param verification error and I got asked for the
password, and two fingerprint verications/did I really want to continue
prompts, but then it fails with:
Error: HTTP Error 400 Bad Request: no permissions
nb:
* Std install with no custom certs, so using the default self
generated certs in the proxmox cluster and backup server
* Have added the pub keys to authorized_keys in both the ProxMox host
and the Backup server so automatic ssh works in both directions.
Should I try adding the backup storage in proxmox as a FQDN rather than
a static IP?
--
Lindsay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 6:33 ` Dietmar Maurer
2020-07-11 7:09 ` Lindsay Mathieson
@ 2020-07-11 7:17 ` Lindsay Mathieson
2020-07-11 8:17 ` Lindsay Mathieson
1 sibling, 1 reply; 11+ messages in thread
From: Lindsay Mathieson @ 2020-07-11 7:17 UTC (permalink / raw)
To: Dietmar Maurer, Proxmox VE user list
On 11/07/2020 4:33 pm, Dietmar Maurer wrote:
> Seem there is a problem how we compute the repository - the datastore part is missing.
> It should look like <user@pbs@<IP>:<datastore>. For example, if your datastore
> name is 'store1':
>
> --repositoryproxmox@pbs@192.168.5.49:store1
Actually that looks to be my fault - looking at the gui log I posted,
the ":test" is in fact there, I just neglected to copy it to the command
line :( Sorry.
However now that side is working ok, getting:
Error: HTTP Error 400 Bad Request: no permissions
--
Lindsay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 7:17 ` Lindsay Mathieson
@ 2020-07-11 8:17 ` Lindsay Mathieson
2020-07-11 8:24 ` Thomas Lamprecht
0 siblings, 1 reply; 11+ messages in thread
From: Lindsay Mathieson @ 2020-07-11 8:17 UTC (permalink / raw)
To: Dietmar Maurer, Proxmox VE user list
On 11/07/2020 5:17 pm, Lindsay Mathieson wrote:
>
> However now that side is working ok, getting:
>
> Error: HTTP Error 400 Bad Request: no permissions
>
Works when I use root@pam
--
Lindsay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 8:17 ` Lindsay Mathieson
@ 2020-07-11 8:24 ` Thomas Lamprecht
2020-07-11 12:46 ` Lindsay Mathieson
0 siblings, 1 reply; 11+ messages in thread
From: Thomas Lamprecht @ 2020-07-11 8:24 UTC (permalink / raw)
To: Proxmox VE user list, Lindsay Mathieson, Dietmar Maurer
On 11.07.20 10:17, Lindsay Mathieson wrote:
> On 11/07/2020 5:17 pm, Lindsay Mathieson wrote:
>>
>> However now that side is working ok, getting:
>>
>> Error: HTTP Error 400 Bad Request: no permissions
>>
> Works when I use root@pam
>
If you add and user it starts out with no permissions, so you need to
add some to make it work.
https://pbs.proxmox.com/docs/administration-guide.html#access-control
The simplest would probably be to give the DatastoreAdmin role on the
/datastore/<id> path.
HTH
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 7:09 ` Lindsay Mathieson
@ 2020-07-11 8:28 ` Dietmar Maurer
2020-07-11 9:55 ` Dietmar Maurer
2020-07-11 12:47 ` Lindsay Mathieson
0 siblings, 2 replies; 11+ messages in thread
From: Dietmar Maurer @ 2020-07-11 8:28 UTC (permalink / raw)
To: Lindsay Mathieson, Proxmox VE user list
> > Please can you show post the pbs storage configuration?
>
>
> pbs: backupbeta
> datastore test
> server 192.168.5.49
> content backup
> fingerprint 1c:f0:e0:76:67:a5:f3:b7:b6:2b:5c:33:xxxxxxxxx:98:8f:31:15:0b:0d:53:93:2b:2f:52
> maxfiles 2
> nodes vni,vnh,vnb
> username proxmox@pbs
>
>
>
> > Seem there is a problem how we compute the repository - the datastore part is missing.
> > It should look like <user@pbs@<IP>:<datastore>. For example, if your datastore
> > name is 'store1':
> >
> > --repository proxmox@pbs@192.168.5.49:store1
> >
> > You can test easily if that works with:
> >
> > # proxmox-backup-client snapshots --repository proxmox@pbs@192.168.5.49:store1
>
>
> proxmox-backup-client restore '--crypt-mode=none' vm/311/2020-07-11T00:57:52Z index.json /var/tmp/vzdumptmp121335/index.json --repository proxmox@pbs@192.168.5.49:backupbeta
The datastore name in 'test', so please try "proxmox@pbs@192.168.5.49:test" instead.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 8:28 ` Dietmar Maurer
@ 2020-07-11 9:55 ` Dietmar Maurer
2020-07-11 12:47 ` Lindsay Mathieson
1 sibling, 0 replies; 11+ messages in thread
From: Dietmar Maurer @ 2020-07-11 9:55 UTC (permalink / raw)
To: Proxmox VE user list
> > proxmox-backup-client restore '--crypt-mode=none' vm/311/2020-07-11T00:57:52Z index.json /var/tmp/vzdumptmp121335/index.json --repository proxmox@pbs@192.168.5.49:backupbeta
>
> The datastore name in 'test', so please try "proxmox@pbs@192.168.5.49:test" instead.
Please note that 'proxmox-backup-client' uses backup server datastore
names, instead of pve storage names. I guess this can be confusing ...
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 8:24 ` Thomas Lamprecht
@ 2020-07-11 12:46 ` Lindsay Mathieson
2020-07-11 13:01 ` Thomas Lamprecht
0 siblings, 1 reply; 11+ messages in thread
From: Lindsay Mathieson @ 2020-07-11 12:46 UTC (permalink / raw)
To: Thomas Lamprecht, Proxmox VE user list, Dietmar Maurer
On 11/07/2020 6:24 pm, Thomas Lamprecht wrote:
> If you add and user it starts out with no permissions, so you need to
> add some to make it work.
> https://pbs.proxmox.com/docs/administration-guide.html#access-control
>
> The simplest would probably be to give the DatastoreAdmin role on the
> /datastore/<id> path.
I did add the DatastorePowerUser role to path "/" for the user, but it
didn't seem to take. After a bit of testing I found I had to switch to a
different VM and back again in the GUI before it recognised the role
addition. Maybe some caching at play?
Restores and Show config are working now.
--
Lindsay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 8:28 ` Dietmar Maurer
2020-07-11 9:55 ` Dietmar Maurer
@ 2020-07-11 12:47 ` Lindsay Mathieson
1 sibling, 0 replies; 11+ messages in thread
From: Lindsay Mathieson @ 2020-07-11 12:47 UTC (permalink / raw)
To: Dietmar Maurer, Proxmox VE user list
On 11/07/2020 6:28 pm, Dietmar Maurer wrote:
> The datastore name in 'test', so please try"proxmox@pbs@192.168.5.49:test" instead.
Yup, that did the trick, thanks.
--
Lindsay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PVE-User] Backup Beta - restore failing
2020-07-11 12:46 ` Lindsay Mathieson
@ 2020-07-11 13:01 ` Thomas Lamprecht
0 siblings, 0 replies; 11+ messages in thread
From: Thomas Lamprecht @ 2020-07-11 13:01 UTC (permalink / raw)
To: Lindsay Mathieson, Proxmox VE user list, Dietmar Maurer
On 11.07.20 14:46, Lindsay Mathieson wrote:
> On 11/07/2020 6:24 pm, Thomas Lamprecht wrote:
>> If you add and user it starts out with no permissions, so you need to
>> add some to make it work.
>> https://pbs.proxmox.com/docs/administration-guide.html#access-control
>>
>> The simplest would probably be to give the DatastoreAdmin role on the
>> /datastore/<id> path.
>
> I did add the DatastorePowerUser role to path "/" for the user, but it didn't seem to take. After a bit of testing I found I had to switch to a different VM and back again in the GUI before it recognised the role addition. Maybe some caching at play?
>
There is a cache for permissions, so there /could/ theoretically be an issue with
not invalidating immediately after some permissions where changed.
>
> Restores and Show config are working now.
>
Ok, glad to hear!
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-07-11 13:01 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-11 5:05 [PVE-User] Backup Beta - restore failing Lindsay Mathieson
2020-07-11 6:33 ` Dietmar Maurer
2020-07-11 7:09 ` Lindsay Mathieson
2020-07-11 8:28 ` Dietmar Maurer
2020-07-11 9:55 ` Dietmar Maurer
2020-07-11 12:47 ` Lindsay Mathieson
2020-07-11 7:17 ` Lindsay Mathieson
2020-07-11 8:17 ` Lindsay Mathieson
2020-07-11 8:24 ` Thomas Lamprecht
2020-07-11 12:46 ` Lindsay Mathieson
2020-07-11 13:01 ` Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox