Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Download to Software Repository fails

Ciscoworks sucks. I get one step forward, then two steps back on every function. I am trying to download software from Cisco.com to the software repository. The job fails with the following: "User Error: Invalid data directory. Recommended Action: Verify that the directory exists" Of course, it doesn't tell you what directory it is trying to access. Anybody know?

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: Download to Software Repository fails

ok it's working now.

In the file repository.properties

I replace the line :

repository.imagedir=C\:\\PROGRA~1\\CSCOpx_DATADIR\\rme\\repository\\

with

repository.imagedir=C\:/PROGRA~1/CSCOpx/files/rme/repository/

olsonc don't forget the last'/'

Thx all :-)

11 REPLIES
Red

Re: Download to Software Repository fails

Check this file out:

CSCOpx\MDC\tomcat\webapps\rme\WEB-INF\classes\com\cisco\nm\rmeng\repository\common\repository.properties

What does it say for repository.imagedir ?

New Member

Re: Download to Software Repository fails

repository.imagedir=d\:\\CSCOpx_DATADIR\\rme\\repository\\

However,the default directory structure is as shown:

D:\CSCOpx\files\rme\repository

I tried to force that in the RME Admin-view/edit software preferences but it claims the directory doesn't exist. Which one should I change?

Red

Re: Download to Software Repository fails

Open a DOS shell and issue the command:

net stop crmdmgtd

edit the file (using Wordpad) and modfy the line to be:

repository.imagedir=d\:/CSCOpx/files/rme/repository

Save it as text

net start crmdmgtd

New Member

Re: Download to Software Repository fails

Did that, now I get a different error message:

"Error: You do not have write permission on current data directory. Recommended Action: Ask your system administrator to verify the write permissions for this directory or select another directory."

Permissions showed Admins and casuser having full control. Just for kicks, I added "everyone" and gave them write access. I still got the above error.

New Member

Re: Download to Software Repository fails

As a final test, I created another directory, gave the appropriate users write access and it STILL fails!

Red

Re: Download to Software Repository fails

Since we have no idea what directory it is trying to write to, check the d:\CSCOpx\log\swim_debug.log file

If the job was already created, then the log files to look at would be under d:\CSCOpx\files\rme\swim\job-id

New Member

Re: Download to Software Repository fails

See a portion of the output below.The first error is:"Failed to construct the FileManager Object"

[ Fri Sep 30 08:38:55 CDT 2005 ],DEBUG,[Thread-3],com.cisco.nm.rmeng.repository.common.FileManager,,?,Checking if the image directory d:\CSCOpx\files\rme\repository\ exists in the system.

[ Fri Sep 30 08:38:55 CDT 2005 ],DEBUG,[Thread-3],com.cisco.nm.rmeng.repository.LocalRMERepository,,?,Failed to construct the FileManager Object. null

[ Fri Sep 30 08:38:55 CDT 2005 ],ERROR,[Thread-3],com.cisco.nm.rmeng.repository.RepositoryAdminSvc,getRepository,?,Caught Repository Exception. Error Message = com.cisco.nm.rmeng.repository.common.RepositoryException

[ Fri Sep 30 08:38:55 CDT 2005 ],DEBUG,[Thread-3],com.cisco.nm.rmeng.swim.slim.ImportServiceThread,run,352,Failed to add image to LocalRepository Error Msg = null

[ Fri Sep 30 08:38:55 CDT 2005 ],DEBUG,[Thread-3],com.cisco.nm.rmeng.swim.slim.ImportServiceThread,run,388,Failed to add to one or more repositories

When I try to add the directory in software mgt./view/edit preferences I get the same error message that is output on the job file. It doesn't matter what directory I put in.

New Member

Re: Download to Software Repository fails

olsonc0510,

I've the exactly same error. Do you use ACS with your LMS2.5 like me ?

Anybody know?

New Member

Re: Download to Software Repository fails

No. We are smaller and do not have an ACS so it must be something else. I will probably open a case on this. I'll keep you informed of progress. If you come up with anything, please let me know.

CO

New Member

Re: Download to Software Repository fails

ok it's working now.

In the file repository.properties

I replace the line :

repository.imagedir=C\:\\PROGRA~1\\CSCOpx_DATADIR\\rme\\repository\\

with

repository.imagedir=C\:/PROGRA~1/CSCOpx/files/rme/repository/

olsonc don't forget the last'/'

Thx all :-)

New Member

Re: Download to Software Repository fails

Thanks ysolan!!! You were right, the last / is crucial.

148
Views
17
Helpful
11
Replies
CreatePlease to create content