cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4427
Views
20
Helpful
14
Replies

Prime Infrastructure 2.2 can't delete file name too long

bkoch1
Beginner
Beginner

I'm trying to delete older application backups in the CLI, and it says I can't because the filepath is too many characters.

Ex. prime/admin# delete disk://defaultRepo/prime-150916-0330__VER2.2.0.0.158_BKSZ126G_CPU16_MEM4G_RAM15G_SWAP15G_APP_CK2774132844.tar.gpg
                    ^
% param string too long detected at '^' marker.

So, how do I delete these files?

14 Replies 14

facepages111
Beginner
Beginner

i succeed using Long Path Tool

How can you use the LONG Path tool to delete the too long files in Prime 2.2

donglei888999
Beginner
Beginner

I have the same problem with you, cannot delete the too long backup data,  and I cannot find any "rename" or "mv" command to change the files name shorter....    how was your solve such issues?

JASON BOYERS
Contributor
Contributor

If you use the "root" command, after enabling it with "root_enable", you can go into the underlying Linux shell.  From there, go to the /localdisk directory.  Change to whichever directory the file is in, then do a "rm filename".  Just ran into the same issue, and this worked.

Hi Jason, Appreciated your help,  works for me too....

Long PathTool is a software that will let you easily delete, copy or rename long path files.

Note that the "root" command has been changed to the "shell" command as of PI 3.0.

A couple of people have mentioned using the Long Path Tool. If there is a way that you know of to access the file structure within Prime remotely via Long Path Tool (or any other way,) please share those steps.  To my knowledge, it isn't possible, but would love to be wrong on this.

barnessweb
Beginner
Beginner

Try using Long Path Tool as it works better.

jeams.doland
Beginner
Beginner


“Long Path Tool” is very helpful for this error !
You can use to solve this problem


Long Path Tool help me a lot when i have an issue like file deleting or renaming the file. Also good to use if file name and file extension is too long.

I used to have similar problems too, but after using "long path tool" everything was solved. Try this software and you would be glad you did.

workingfaster440
Beginner
Beginner


Long path tool is the very good program for error, unlock solution.
Try it and solve your problem.
I used long path tool and I solve my error, unlock problem solution.

pinjormd2
Beginner
Beginner

Long Path Tool is the perfect utility that can solve all the long path issues. Download this software online.

Otar Petrosov
Beginner
Beginner

Do not use other programs use SSH, Root acces and Linux commands.

xprime/admin# root_enable
Password :
Password Again :

Root enabled

xprime/admin# root
Enter root password :
Starting root bash shell ...


ade # cd /localdisk/defaultRepo/

ade # ls -lh
total 3.1G
-rw-rw-rw- 1 root gadmin 3.1G Jul  9 03:50 xprime-170709***********************.tar.gpg

ade # rm xprime-170709***********************.tar.gpg

DONE !

Thanks mate,

It worked for me, after few hours wasted I run into your solution and saved my day

This worked for me. Thanks!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers