Error when changing space avatar
Asked by Jason Liu:

When I'm changing the space avatar, it showed error message "An error occurred while updating space details". Is there anything wrong with the space? We succeeded with other spaces. ![Change avatar error.png](https://community.atlassian.com/t5/image/serverpage/image-id/190137iEA87EBF24D631C89/image-size/large?v=v2&px=999 "Change avatar error.png")


Answers:
author: Ismael Jimoh
body: Hi [@Jason Liu](/t5/user/viewprofilepage/user-id/4567629)

Can you make the change, note what time the change was made and the error experienced. Then you can generate a support zip to cross reference this time to see what Confluence is complaining about.

It is hard to explain why without at least knowing if it is a timeout issue, file compatibility issue, e.t.c

Add the snippet of the log here and I'm sure someone would happily analyse it for you.

(please clean out any sensitive data such as user names before appending your snippet here)

comments: author: Jason Liu
body: May I know how to generate a support zip?


author: Ismael Jimoh
body: Please find the steps here: <https://confluence.atlassian.com/support/create-a-support-zip-790796819.html>


author: Jason Liu
body: Hi Ismael, I have customized a zip file and the change time is 03/31/2022 13:39 (Beijing time). Please let me know if there's any other information needed. Thank you. May I know which log I should support?

![????_20220401095937.png](https://community.atlassian.com/t5/image/serverpage/image-id/191036iA687B753C91C3E74/image-size/large?v=v2&px=999 "????_20220401095937.png")


author: Ismael Jimoh
body: Jason have a look at the first file in the list in your image at the time the user added the attachment, you can also search for the user's name.

What does the application say?


author: Jason Liu
body: Hi Ismael,

Maybe it's this:

2022-03-31 13:39:07,619 WARN \[http-nio-8090-exec-9\] \[confluence.impl.hibernate.ConfluenceHibernateTransactionManager\] doRollback Performing rollback. Transactions:  
-\>\[com.atlassian.confluence.pages.CachingAttachmentManager.saveAttachments\]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #1086667267)  
-- referer: https:/\<base-url\>/display/DQM/Quality+Ecosystem \| url: /rest/ia/1.0/space/setLogo \| traceId: ba47bedeb3e34974 \| userName: ?????  
2022-03-31 13:39:08,524 ERROR \[http-nio-8090-exec-41\] \[confluence.util.velocity.VelocityUtils\] writeRenderedContent Error occurred rendering template content  
-- url: /display/\~???????/calendars \| traceId: 602e6d2b5bb2c383 \| userName: ?????????? \| action: spacecalendar \| space: 73367641  
org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 1, column 2. Encountered: \<EOF\> after : ""


author: Ismael Jimoh
body: Hi [@Jason Liu](/t5/user/viewprofilepage/user-id/4567629)

Please avoid adding your base url and remove usernames when adding a snippet here as this is a public community.

I have removed them from the above.

Regards


author: Ismael Jimoh
body: From all I see the upload of your attachment itself is triggering an error though I am still not sure why?

Confluence is rolling back to the old attachment due to this.

Can you try the following(not sure if it helps but it's worthy of a try):

1. Go to your Cache page in Confluence when no one is actively working on it
2. Flush your cache.
3. Index confluence and try again

If the issue persists please get me the few errors and warnings before the first line you shared including the said line. Please remember to remove the URL as I have done and replace all usernames.

Thanks


author: Ismael Jimoh
body: Oh and to ensure that the image isn't cached by the browser, can you try either in private browsing mode or using a different browser to see if this helps?


author: Jason Liu
body: Hi Ismael,

Does this error help? "There was an exception thrown trying to dispatch event"


author: Jason Liu
body: Hi Ismael,

This is the line before the first line I shared:

Caused by: java.lang.NullPointerException


author: Jason Liu
body: May I know which cache I should flush? And how this works? What influence it will have?


author: Ismael Jimoh
body: Hi [@Jason Liu](/t5/user/viewprofilepage/user-id/4567629)

See cache to flush here: <https://confluence.atlassian.com/doc/cache-statistics-150472.html> hit Flush All at the bottom of the page.

As for the error you shared, it tells me nothing. When sharing an error please consider copying from the date only removing usernames and urls if they exist. With the null pointer you shared there's no way for me to confirm this is directly related to what we want to investigate.

Regards.


author: Jason Liu
body: Hi Ismael, I checked with my colleague and we found an error by F12 when changing the avatar. Here's it:

{statusCode: 501, message: "Unable to save changes to unreconciled page null",...}  
message: "Unable to save changes to unreconciled page null"  
reason: "Not Implemented"  
statusCode: 501

Could you help to check on this?


author: Ismael Jimoh
body: Hi Jason,  

What you described is quite odd. What happens if you try this in Private browsing or incognito mode so we can ensure that this is not an issue with caching?

Also, does the issue occur when a different image is used?  

I haven't personally seen the following error but in my search, I came across [this](https://jira.atlassian.com/browse/CONFSERVER-69310) but this has to do with updating pages along with Synchrony (a component that allows collaborative editing).  

We would require a bit more information on the following to be able to suggest how to proceed here.  

Regards.


author: Ismael Jimoh
body: For a more thorough indepth analysis, I would suggest raising a ticket with Atlassian directly at support.atlassian.com because they have an NDA with customers and providing them with the support zip for a full analysis would help speed up getting this resolved.  

Regards.


Tags: confluence-server

server