Forum Discussion

michal_liska_61's avatar
michal_liska_61
Icon for Nimbostratus rankNimbostratus
Apr 13, 2010

Configuration backup not working

Hello,

 

 

We have a problem with configuration backup. When we run "bigpipe config save ", we get the following error:

 

Saving active configuration...

 

md5sum: /config/: Is a directory

 

Fatal: executing: md5sum /config/\

 

Operation aborted.

 

/tmp/configsync.spec: Error creating package

 

 

WARNING:There are error(s) during saving.

 

Not everything was saved.

 

Be very careful when using this saved file!

 

 

Error creating package

 

Error during config save.

 

BIGpipe parsing error:

 

01020001:3: The requested operation failed.

 

 

The /config/ directory contains a file with bad name "\" which i believe is the source of this problem:

 

-rw-r--r-- 1 root root 16561 Jul 22 2009 \

 

 

Any ideas how can this be resolved? Is it save to remove this file?

 

Any comments/ideas are appreciated...

 

 

Thanks

 

7 Replies

  • Hello Michal,

     

     

    I just tried recreating your issue but so far have no success. What is the full command you are running please? Have you tried specifying a different filename for the backup (e.g. "b config save mybackup").

     

     

    Are ucs backups created correctly via System>Archive in the GUI?

     

     

    Thanks.

     

  • Hello,

     

     

    Thanks for your fast reply...

     

     

    I used the command "b config save 10_4_2010" for example.

     

     

    We are getting the same error when using GUI.

     

     

    Thanks

     

  • Hello Michal,

     

     

    there shouldn't be a file called '\' in the config directory for sure. If i create this file I can replicate your issue exactly. So, quickly check the fle isn't something important that has been accidentally renamed (this is very unlikely to have happened but let's check to be sure!). If the filesize is 0 bytes for example it is safe to delete. If you're not sure my preference would be to copy the file off using WinSCP or similar then open it in Notepad++ (or whatever) and see what it contains.

     

     

    I'm 99% sure it'll be empty or nonsensical, in which case delete it and try the "b config save 10_4_2010" command again.

     

     

  • Hello,

     

     

    The file size is around 16k. The issue is that i cannot copy this file because of its name... at least i haven't found a way how to copy it :-(

     

     

    I have also tried to list its content directly on F5, but once again, no success.

     

     

    Another question, how do you delete it? "rm \" will not work ... maybe i can delete it based on its inode number?

     

     

    Thanks a lot for your help.

     

  • Hello Michal,

     

     

    I had to connect over SCP (I use WinSCP myself, from http://winscp.net/eng/download.php ) and this allows me to right click>delete files. Are you able to give this a try please?

     

     

    Otherwise we might need someone more command line savvy to help out :S

     

     

    Still, we're close to fixing your problem, I have a good feeling about this one today!
  • Hello,

     

     

    So i managed to download that file and it seems that it contains a subset of the bigip.conf file...

     

     

    As the file bigip.conf is there as well, i would say that it should be save to delete it?

     

    I do not expect that there is something using it.

     

     

    I have no idea how and why this file was created. Maybe it was created by the backup script...

     

     

     

  • Nice work in figuring this out guys. For files or directories that have meta-characters in the name, you can generally delete them using a backslash to escape the name:

     

     

    echo test > \\

     

     

    ls -la |head

     

    total 247900

     

    drwxrwxrwt 7 root root 4096 Apr 13 19:38 ./

     

    drwxr-xr-x 19 root root 4096 Mar 31 08:11 ../

     

    -rwS--S--T 1 root webusers 0 Feb 4 10:12 .qkview_lock

     

    drwx------ 4 root root 4096 Jan 11 18:50 578CGPw79T/

     

    -rw-r--r-- 1 tomcat tomcat 22878 Mar 31 08:09 LICENSE.F5

     

    -rwxr-xr-x 1 root root 7607 Feb 11 12:09 LocalTrafficMap.pl*

     

    -rwx------ 1 root webusers 1211 Mar 31 11:07 README.txt*

     

    drwxr-xr-x 2 root root 4096 Jan 11 19:06 WebAppTrace/

     

    -rw-r--r-- 1 root webusers 5 Apr 13 19:38 \

     

    -rw-r--r-- 1 root root 136695 Nov 30 17:45 bigip.conf_v10.1.0

     

     

    file \\

     

    \: ASCII text

     

     

    cat \\

     

    test

     

     

    rm \\

     

     

    ll \\

     

    ls: \: No such file or directory

     

     

    Aaron