Confluence - Rebuild batch.js
Asked by James Bewley:

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?

Thanks,

James


Answers:
author: James Bewley
body: I guess the best way forward is to reinstall. Just supprised there is no interest in resolving this bug.

comments: author: B_ Normann P_ Nielsen
body: 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 !


author: James Bewley
body: 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 {#toc-hId-1812532907}
=======================================

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(ActiveObjectsBackupRestoreProvider.java:37) at com.atlassian.confluence.importexport.impl.FileXmlExporter.backupPluginData(FileXmlExporter.java:239) at com.atlassian.confluence.importexport.impl.FileXmlExporter.backupEverything(FileXmlExporter.java:110) at
* ... 530 more


author: B_ Normann P_ Nielsen
body: Make a backup or snapshot of the server.

Download latest from: <http://www.atlassian.com/software/confluence/download>

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.


author: B_ Normann P_ Nielsen
body: 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 <http://www.atlassian.com/resources/support>

Alternatively, an Atlassian Expert - <http://www.atlassian.com/resources/experts>

BR,

Normann


author: James Bewley
body: 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?

comments: author: Joe Clark
body: 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 <https://support.atlassian.com> 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.


author: James Bewley
body: Any input would be appreciated.

How can I recover our confluence system?