Active IQ Unified Manager Discussions

WFA 4.2 - not well-formed (invalid token) at line 1, column 685, byte 695 at /usr/lib64/perl5/ve

marcusgross
5,467 Views

Hi,

 

I installed the WFA 4.2 on RHEL 7.4 (with some trouble).

The restore of a WFA 4.1 backup was successful.

I haven't tried all workflows, but they are failing on a certain point. One is the creation of a qtree in a volume.

 

The workflow dies with the message: 

 

not well-formed (invalid token) at line 1, column 685, byte 695 at /usr/lib64/perl5/vendor_perl/XML/Parser.pm line 187.
Location: Row '1' step 'Create qtree'.

The API seems to be ok if I invoke it on the command line. The qtree is created:

 

require 5.6.1;
use lib '/opt/wfa/wfa/perl/nmsdk';
use strict;
use warnings;
use NaServer;
use NaElement;


my $s = new NaServer('SVM-Name', 1 , 130);
$s->set_server_type('FILER');
$s->set_transport_type('HTTPS');
$s->set_port(443);
$s->set_style('LOGIN');
$s->set_admin_user('Username', 'Password');



my $api = new NaElement('qtree-create');
$api->child_add_string('export-policy','default');
#$api->child_add_string('mode','');
$api->child_add_string('oplocks','disabled');
$api->child_add_string('qtree','testQtree');
$api->child_add_string('security-style','unix');
$api->child_add_string('volume','Testvolume');

my $xo = $s->invoke_elem($api);
if ($xo->results_status() eq 'failed') {
    print 'Error:\n';
    print $xo->sprintf();
    exit 1;
}

print 'Received:\n';
print $xo->sprintf();

Does someone have an idea where to get more detailed information? Where can I seen the commands passed to the API?

 

Marcus

1 ACCEPTED SOLUTION

marcusgross
5,325 Views

Problem solved.

 

The DB restore doesn't restore the passwords.

 

Works now.

View solution in original post

3 REPLIES 3

marcusgross
5,326 Views

Problem solved.

 

The DB restore doesn't restore the passwords.

 

Works now.

sinhaa
5,303 Views

@marcusgross

 

The restoring a backup *will* restore the passwords too, if you take the FULL backup instead of the DB backup. How to take the FULL backup? There is no GUI button given for it, but API on method GET is given which does it.

 

So in your browser URL, provide : http://<WFA>/rest/backups?full=true

 

Provide the credentials of 'Admin' when asked.

 

you will get full backup, with passwords. 

 

sinhaa

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

marcusgross
5,270 Views

Hi,

 

I used the DB backup function.

 

According to the documentation at page 41:

 

Backup and restoration of user credentials
The backup of the WFA database includes the WFA user credentials.

It should include the passwords. So the documentation is wrong?

 

Furthermore, I would like to have an useful error message for missing credentials.

 

Marcus

Public