cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3538
Views
17
Helpful
8
Replies

Adding Client Image fails

Having a strange issue when I try and add a client image I receive the following error.

"Error during file upload. Please ensure that the Firewall Management Center has enough space, the file is valid and that the file name contains only letters, digits, - and _. AnyConnect Image file names may contain."

The file name is in compliance and there is plenty of disk space avalible. Anyone seen this or know how to resolve this issue?

00u18jg7x27DHjRMh5d7_0-1704726038444.png00u18jg7x27DHjRMh5d7_1-1704726057225.png

 

1 Accepted Solution

Accepted Solutions

srpoda
Cisco Employee
Cisco Employee

Please find the below bug 

try with workaround mentioned in the bug 

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwh14467

Workaround:

---Without changing files on the system---

 

Use a previous image for AnyConnect/Secure Client Image which is smaller than 100MB

 

---With changing files on the system---

 

1. Open CLI to the FMC

a. expert

sudo su

vim +76 /usr/local/sf/htdocs/ddd/fileUpload.cgi

b. Enter in i on the keyboard to go to interactive mode on vim

c. Update the line by increasing the maxFileSizeMap

 

From: ANY_CONNECT_IMAGE => 100 * 1024 * 1024,

To: ANY_CONNECT_IMAGE => 200 * 1024 * 1024,

d. Save the file by entering in ESC then :wq

2. Upload the file again now

View solution in original post

8 Replies 8

@00u18jg7x27DHjRMh5d7 I had this with attempting to upload the AnyConnect for MAC webvpn package recently, it turned out to be this bug https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwh14467

 

srpoda
Cisco Employee
Cisco Employee

Please find the below bug 

try with workaround mentioned in the bug 

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCwh14467

Workaround:

---Without changing files on the system---

 

Use a previous image for AnyConnect/Secure Client Image which is smaller than 100MB

 

---With changing files on the system---

 

1. Open CLI to the FMC

a. expert

sudo su

vim +76 /usr/local/sf/htdocs/ddd/fileUpload.cgi

b. Enter in i on the keyboard to go to interactive mode on vim

c. Update the line by increasing the maxFileSizeMap

 

From: ANY_CONNECT_IMAGE => 100 * 1024 * 1024,

To: ANY_CONNECT_IMAGE => 200 * 1024 * 1024,

d. Save the file by entering in ESC then :wq

2. Upload the file again now

Same scenario for me as well. This workaround solved the issue. Trying to add the latest Cisco Secure Client 5.1.1.42 for Windows and MacOS.

Mahalo for making this fix easy to find and implement!

Is there anything else that needs to be done after editing fileUpload.cgi ?   After saving, I tried to upload the MacOS package that was over 100mb, but I'm still getting an error. 

You may need to change the lines below as well, depending on the package you're uploading:

From: ANY_CONNECT_EXTERNAL_BROWSER_PACKAGE => 100 * 1024 * 1024,

To: ANY_CONNECT_EXTERNAL_BROWSER_PACKAGE => 200 * 1024 * 1024

Thank you srpoda,  

This worked like a charm.  Saved me a lot of time

Srpoda, and Rob 

Thanks for the information. Srpoda that work file is uploaded and applied now thanks for the assistance.