Invalid option when starting Confluence

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

The following error is received when starting Confluence through start-confluence.sh/start-confluence.bat or automatically through a service running  /etc/init.d/confluence start:

: invalid option

 

Additionally, there are no relevant errors in the Catalina or Confluence logs.

Cause

The terminal emulator is using the incorrect newline format. UnixLinux, and OS X use LF and Windows uses CRLF to denote the end of a line.

Resolution

To resolve the issue, make sure the terminal/terminal emulator (e.g. PuTTY) is using the correct newline format when editing the start-confluence.sh/start-confluence.bat or /etc/init.d/confluence files.

  • If using UnixLinux, and OS X, set it to LF
  • If using Windows, set it to CRLF
  • Edit the file again and save.

Last modified on Feb 26, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.