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

Password Fail #79

Open
melvin0124 opened this issue May 28, 2018 · 19 comments
Open

Password Fail #79

melvin0124 opened this issue May 28, 2018 · 19 comments

Comments

@melvin0124
Copy link

melvin0124 commented May 28, 2018

I got the same Message form two Xenserver 7.1 CU1 。

[root@xenserver7-hds snapshots]# ./VmBackup.py password test.cfg preview
2018-05-28-(16:17:24) - VmBackup config loaded from: test.cfg
2018-05-28-(16:17:24) - VmBackup.py running with these settings:
2018-05-28-(16:17:24) - backup_dir = /snapshots/BACKUPS
2018-05-28-(16:17:24) - status_log = /snapshots/NAUbackup/status.log
2018-05-28-(16:17:24) - compress = False
2018-05-28-(16:17:24) - max_backups = 3
2018-05-28-(16:17:24) - vdi_export_format = raw
2018-05-28-(16:17:24) - pool_db_backup = 1
2018-05-28-(16:17:24) - exclude (cnt)= 0
2018-05-28-(16:17:24) - exclude:
2018-05-28-(16:17:24) - vdi-export (cnt)= 0
2018-05-28-(16:17:24) - vdi-export:
2018-05-28-(16:17:24) - vm-export (cnt)= 1
2018-05-28-(16:17:24) - vm-export: Tocloud-ERP-220
['SESSION_AUTHENTICATION_FAILED', 'root', 'Authentication failure']
ERROR - XenAPI authentication error
[root@xenserver7-hds snapshots]#

[root@xenserver7-hds snapshots]# ./VmBackup.py 1qaz$!QAZ test.cfg preview
2018-05-28-(16:19:51) - VmBackup config loaded from: test.cfg
2018-05-28-(16:19:51) - VmBackup.py running with these settings:
2018-05-28-(16:19:51) - backup_dir = /snapshots/BACKUPS
2018-05-28-(16:19:51) - status_log = /snapshots/NAUbackup/status.log
2018-05-28-(16:19:51) - compress = False
2018-05-28-(16:19:51) - max_backups = 3
2018-05-28-(16:19:51) - vdi_export_format = raw
2018-05-28-(16:19:51) - pool_db_backup = 1
2018-05-28-(16:19:51) - exclude (cnt)= 0
2018-05-28-(16:19:51) - exclude:
2018-05-28-(16:19:51) - vdi-export (cnt)= 0
2018-05-28-(16:19:51) - vdi-export:
2018-05-28-(16:19:51) - vm-export (cnt)= 1
2018-05-28-(16:19:51) - vm-export: Tocloud-ERP-220
['SESSION_AUTHENTICATION_FAILED', 'root', 'Authentication failure']
ERROR - XenAPI authentication error
[root@xenserver7-hds snapshots]#

@NAUbackup
Copy link
Owner

First of all, which specific version of VmBackup is this, or I cannot try to connect the errors with the line numbers?

My guess is that the password contains characters being misinterpreted somehow as part of the command line. You can try enclosing the password in single quotes or creating a password that doesn't contain a "!" or "$"character. The "Authentication failure" error is of course indicating that the attempt to log onto root failed. I get the same error with this password, which of course won't work on my servers.

Did you already edit the configuration file to match your environment?

@melvin0124
Copy link
Author

I change the Password , get the same Authentication Error

@NAUbackup
Copy link
Owner

I have never seen this happen for the standard root password on a server, so I'm not sure what to suggest. Does test.cfg have any entries in it that might be confusing things? Again, I need to ask which version of VmBackup are you running: 3.21, 3.22, etc. ?

@melvin0124
Copy link
Author

NAUbackup Version is v3.22 , and my xenserver version is 7.1 uc1

@NAUbackup
Copy link
Owner

Could you perhaps post your entire test.cfg file (sanitized, as necessary)?

@melvin0124
Copy link
Author

pool_db_backup=0
max_backups=3
backup_dir=/snapshots/BACKUPS
vdi_export_format=raw

run Message

[root@xenserver7-hds snapshots]# ./VmBackup.py password test.cfg preview
2018-05-29-(12:53:57) - VmBackup config loaded from: test.cfg
2018-05-29-(12:53:57) - VmBackup.py running with these settings:
2018-05-29-(12:53:57) - backup_dir = /snapshots/BACKUPS
2018-05-29-(12:53:57) - status_log = /snapshots/NAUbackup/status.log
2018-05-29-(12:53:57) - compress = False
2018-05-29-(12:53:57) - max_backups = 3
2018-05-29-(12:53:57) - vdi_export_format = raw
2018-05-29-(12:53:57) - pool_db_backup = 0
2018-05-29-(12:53:57) - exclude (cnt)= 0
2018-05-29-(12:53:57) - exclude:
2018-05-29-(12:53:57) - vdi-export (cnt)= 0
2018-05-29-(12:53:57) - vdi-export:
2018-05-29-(12:53:57) - vm-export (cnt)= 1
2018-05-29-(12:53:57) - vm-export: Tocloud-ERP-220
['SESSION_AUTHENTICATION_FAILED', 'root', 'Authentication failure']
ERROR - XenAPI authentication error

@NAUbackup
Copy link
Owner

NAUbackup commented May 29, 2018

There are no VMs or VDIs specified either on the command line or in the file. Could you add one in and try again, please, like:

vm-export=Tocloud-ERP-220

You might also try adding onto the end of the command line:
ignore_extra_keys=True

@melvin0124
Copy link
Author

Sorry , I have already added

@NAUbackup
Copy link
Owner

I cannot reproduce the error with the same configuration file with the only difference being that I am using one of my own VMs. I'm not sure what else to suggest!

@melvin0124
Copy link
Author

Think's I will try other xenserver version

@rtrevino70
Copy link

Hellol,, I have the same issue, im running v.3.25
my current password is aaaaaaaaaaaaaa (just lowercase letters (14) )
this is my log

2019-09-09-(12:24:01) - VmBackup config loaded from: config.cfg
2019-09-09-(12:24:01) - VmBackup.py running with these settings:
2019-09-09-(12:24:01) - backup_dir = /mnt/nfs
2019-09-09-(12:24:01) - status_log = /mnt/nfs/status.log
2019-09-09-(12:24:01) - compress = False
2019-09-09-(12:24:01) - max_backups = 2
2019-09-09-(12:24:01) - vdi_export_format = raw
2019-09-09-(12:24:01) - pool_db_backup = 0
2019-09-09-(12:24:01) - exclude (cnt)= 0
2019-09-09-(12:24:01) - exclude:
2019-09-09-(12:24:01) - vdi-export (cnt)= 0
2019-09-09-(12:24:01) - vdi-export:
2019-09-09-(12:24:01) - vm-export (cnt)= 26
2019-09-09-(12:24:01) - vm-export: AuthServer Serverpro, BI Centos, DC01.Serverpro.Local, DC02.Serverpro.Local, Devel Windows, Historico DEsarrollo y Plex (old) WIN7, IOT Server, MapaMonitor, MapaMonitor4x64, Monitor v4 x64a, Monitor4x64_NEW, MonitorEnalces Alitas, Monitorx64v4_Centos7, Multicomp, OM2, Plex, SQLx86 2008, SQl02, ServerproMail, ServerproMail_NEW, WINurbackup_DEV_CTE, XenServer DDK, XenServer DDK (1), XenServer DDK 6.5.0-90233c import, osticket, urbackup_edit_iso
['SESSION_AUTHENTICATION_FAILED', 'root', 'Authentication failure']
ERROR - XenAPI authentication error

@NAUbackup
Copy link
Owner

I made one small change just the other day, changing one dangling https back to http. Try and see if that might help, please.

@rtrevino70
Copy link

the only two occurrences in the script are already http. I forgot to mention I am using xcp-ng v8 sorry for this

@NAUbackup
Copy link
Owner

Hmmm... I'd be curious if a different, perhaps shorter, password works?

@rtrevino70
Copy link

Hi,

just changed the password to 5 lowercase letters.. same result

@NAUbackup
Copy link
Owner

I really have no way to test under XCP-ng, unfortunately, so I'm not sure if its a compatibility issue or what. It seems to work fine under various versions of XenServer. I assume putting the password in double quotes makes no difference, either?

@rtrevino70
Copy link

got it to work.!!!

I sent in the clear password instead of the encrypted file. and it is working

./VmBackup.py 'mycurrentlongpassword' config.cfg

cheers!

@NAUbackup
Copy link
Owner

Ah, great to hear! Maybe the encryption algorithm isn't working right? Could someone else test this on XenServer/CitrixHypervisor with V3.25?

@sfitzpsp
Copy link

sfitzpsp commented Sep 24, 2019

Hi there,

im trying this on Citrix Hypervisor 8.0 standard fully patched and getting the same error. If i provide the password as argument it works but not when using password file.

I was also using the latest SDK XenAPI which might be the issue?

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

No branches or pull requests

4 participants