Confluence - Rebuild batch.js

I have a problem with Confluence after I restared the host machine today. When I visit the site I see around fifty to a hundred errors in batch.js stating "Error running batched script"

  • Is there a know workaround for this?
  • Is it possible to rebuild batch.js?



4 answers

1 accepted

1 vote
Answer accepted

I guess the best way forward is to reinstall. Just supprised there is no interest in resolving this bug.

Maybee You can "just" upgrade it via the Command Line, hence replacing "bad"/missing files?

After what I can google, the error may be due to an IOException, so some server filesystem check and an upgrade, try it !

The upgrade content link on the administration page does not run as it is determined to be not required. How would one go about running an "upgrade" from the command line?

the backup tool gives me the following typical java trace:

Backup & Restore

The following error(s) occurred:

  • com.atlassian.confluence.importexport.ImportExportException: org.springframework.osgi.service.ServiceUnavailableException: service matching filter=[(objectClass=com.atlassian.activeobjects.spi.Backup)] unavailable at com.atlassian.activeobjects.confluence.backup.ActiveObjectsBackupRestoreProvider.backup( at com.atlassian.confluence.importexport.impl.FileXmlExporter.backupPluginData( at com.atlassian.confluence.importexport.impl.FileXmlExporter.backupEverything( at
  • ... 530 more

Make a backup or snapshot of the server.

Download latest from:

For Linux, ssh to the server and do a:

sudo sh atlassian-confluence-5.1.4-x64.bin

Select ok first, then 3 for upgrade etc etc.

This actually replaces all (almost) files as jars, js's etc etc and I would expect any bad or missing files to be replaced etc.

After the upgrade Confluence is started and You can check the varios logs.

PS: This is a bit simplified description, but the basics are here - a commandline upgrade is pretty straght forward, if You dont have changed files like server.xml and added You own files under the installation. If so, You need to make these changes again.

You are mistaken if You belive Atlassian Anwsers are for paided support in Any way, this is a community based site, where we help each other.. Atlassian included - after "best effort".

You should go to the Company You pay for hosting/support - and/or Atlassian official-support, see

Alternatively, an Atlassian Expert -



Any input would be appreciated.

How can I recover our confluence system?

Anyone even have an opinion on this. It's been sitting around for a month without a single comment.

This is a live and paid for confluence server, is there a better place to recive support?

Joe Clark Atlassian Team Jul 17, 2013

Hi James!

This is our community Q&A site, so this is not the "official" support channel. You can get in touch with our excellent support team by logging in to and creating a new JIRA issue. The answer that Normann provided includes a link to our support landing page, which will direct you to all the support options that we provide.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

278 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you