cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1158
Views
1
Helpful
12
Replies

CUCM Data Export Failed

Djeten
Level 1
Level 1

Hello, 

I have installed a new CUCM v14 and want to import the configuration of an older cluster v11.5. 

I have installed the ciscocm.DataExport_v1.0.cop.sgn file on the old cucm publisher.

When I run the Utils system upgrade dataexport initiate command, the export starts but fails when CUCM wants to copy the file to the SFTP server. 

The DRS uses the same sftp server and user, and this works, so the config of the sftp server is ok.

In the install log of CUCM I see this:

11/20/2023 16:26:08 data_export|SFTP Directory=/, SFTP Server=192.168.x.x, SFTP Username=sftp-user, Destination host=EBOSLBE1-CUCM01, Destination ip=192.168.x.x|<LVL::Debug>
11/20/2023 16:26:17 data_export|Validating the remote directory which is required to copy the exported data|<LVL::Info>
11/20/2023 16:26:21 data_export|cluster-192.168.x.x does not exist under the given sftp directory. Since the node is publisher, we will create a folder cluster-192.168.x.x under the given sftp location.|<LVL::Info>

But also this:

Failed to copy the export data to remote server 192.168.x.x under the directory //cluster-192.168.x.x
Please check if the folder cluster-192.168.x.x under / exists. This folder would be created during export of publisher.

The folder is not created on the server. I have tried to create the folder manually, but I get the same errors.

In the logs of the SFTP server I see this:

Nov 20 16:35:18 EBOSLBE1-SFTP01 sshd[2177]: Accepted password for sftp-user from 192.168.x.x port 33789 ssh2
Nov 20 16:35:18 EBOSLBE1-SFTP01 sshd[2177]: pam_unix(sshd:session): session opened for user sftp-user by (uid=0)
Nov 20 16:35:18 EBOSLBE1-SFTP01 systemd[1]: Started Session 2167011 of user sftp-user.
Nov 20 16:35:18 EBOSLBE1-SFTP01 systemd-logind[717]: New session 2167011 of user sftp-user.
Nov 20 16:35:19 EBOSLBE1-SFTP01 sshd[2244]: Received disconnect from 192.168.x.x port 33789:11: disconnected by user
Nov 20 16:35:19 EBOSLBE1-SFTP01 sshd[2244]: Disconnected from user sftp-user 192.168.x.x port 33789
Nov 20 16:35:19 EBOSLBE1-SFTP01 sshd[2177]: pam_unix(sshd:session): session closed for user sftp-user

Any ideas what I'm missing or doing wrong?

 

1 Accepted Solution

Accepted Solutions

Ok.

So let's try with data export putting data on /home/sftp-user

Please let me know

 

Regards

 

Carlo

Please rate all helpful posts "The more you help the more you learn"

View solution in original post

12 Replies 12

Data import can only be done while you are installing the nodes. Post installation you cannot import data.


I have installed a new CUCM v14 and want to import the configuration of an older cluster v11.5. 


Your issues is that CUCM node is not able to create the folder, apparently the folder must be created by CUCM node which export the data. I never tried manually creating a folder and not sure if that works. The name of the folder must be cluster-192.168.x.x. If you are creating the folder, make sure to keep this new folder inside the root folder and dont make the new folder as sftp root.  Else Try a different SFTP or  a path where CUCM can create a folder.



Response Signature


The sftp user has all the rights it needs to create a folder in the sftp folder:

Djeten_0-1700556183740.png

 

If you dont mind can you try a different SFTP,



Response Signature


Hi,

During dataexport dialog config you selected the root directory / instead of selecting /sftp

Should be 

Export Data Directory [/]: /sftp

 

HTH

 

Regards

 

Carlo

Please rate all helpful posts "The more you help the more you learn"

Hello, 

I had already tried both... Same result.

Hi

Can you please do an ls -lart / on your server?

 

Thanks

 

Regards

 

Carlo

Please rate all helpful posts "The more you help the more you learn"

Djeten_0-1700568189157.png

 

Can you please try to do a file get on the CUCM to the sftp folder as follows:

admin:file get tftp Ringlist.xml

SFTP server IP: x.x.x.x
SFTP server port [22]:
User ID: sftpuser
Password: **********

Download directory: /sftpuser

Please let me know the result

 

 

Thanks

 

Regards

 

Carlo

 

Please rate all helpful posts "The more you help the more you learn"

This works when I write the destination folder as ./sftp, but when I want to use this notation in the data export, this is not allowed.

Djeten_0-1700575023124.png

 

 

Ok.

So let's try with data export putting data on /home/sftp-user

Please let me know

 

Regards

 

Carlo

Please rate all helpful posts "The more you help the more you learn"

Djeten
Level 1
Level 1

This worked! Thx for the help!

You are most welcome!

Glad that worked and thanks for nice rating!

Cheers

 

 

Carlo

Please rate all helpful posts "The more you help the more you learn"