Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Companion doesn't launch at all - Mac 10.13.2

Arthur CHAN
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 30, 2018

Hi there,  I just registered Confluence for trial and have Companion app downloaded to my Mac Air - Mac 10.13.2. 

The installation was smooth and Application icon shown up.  However, after that, there's nothing launched. 

Checking the Activity Monitor, Companion and Companion helper processes were there.  

Anyone has experienced this or is there any solution / fix for it? 

 

5 answers

1 accepted

2 votes
Answer accepted
Sergey Svishchev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 10, 2013

Instead of grovelling the database, use search engine! :-)

macroName:unmigrated-wiki-markup* OR macroName:unmigrated-inline-wiki-markup*

6 votes
William Schneider
Contributor
October 10, 2011

If you are able to view the log output for confluence, you could set com.atlassian.confluence.content.render.xhtml.migration to ALL under <BASE URL>/admin/viewlog4j.action and then run the migration from <BASE URL>/admin/unmigratedwikicontent.action . The log will show you the page title, which is then somewhat easy to search for though Confluence. If you still have the old log files from when you first upgraded to 4.0, it includes the page ID along with the macro error, which is more useful for quick access to the page.

Alternatively, the following python script will iterate over EVERY space and check ALL pages for <div class="error> in them, and output the page ID in the terminal. As a warning, this may likely take some time, and may be somewhat intensive. Once you have the page ID's, you can visit the pages at <BASE URL>/pages/viewpage.action?pageId=<ID>

#!/usr/bin/env python
import xmlrpclib
import getpass
import sys
CONFLUENCE_URL='http://example.wiki.edu/rpc/xmlrpc'
CONFLUENCE_LOGIN=raw_input('Confluence Username: ')
CONFLUENCE_PASSWORD=getpass.getpass('Confluence Password: ')

client = xmlrpclib.Server(CONFLUENCE_URL,verbose=0)
authToken=client.confluence2.login(CONFLUENCE_LOGIN,CONFLUENCE_PASSWORD) spaces=client.confluence2.getSpaces(authToken) for space in spaces: spacePages=client.confluence2.getPages(authToken,space['key']) for page in spacePages: pageId=page['id'] renderedPage=client.confluence2.renderContent(authToken,space['key'],pageId,'',{'style':'clean'}) if renderedPage.find('<div class="error">') > 0: print page['id'] client.confluence2.logout(authToken)

edit: Created a ruby version of the script also, in case ruby is preferred

#!/usr/bin/env ruby

require 'xmlrpc/client'

CONFLUENCE_URL = 'https://example.wiki.edu/rpc/xmlrpc'
printf "Username: "
CONFLUENCE_LOGIN = gets.chomp
printf "Password: "
CONFLUENCE_PASSWORD = gets.chomp

client = XMLRPC::Client.new_from_uri(CONFLUENCE_URL).proxy("confluence2")

# hackity hack for SSL (if you need it)
client.instance_variable_get("@server").instance_variable_get("@http").verify_mode = OpenSSL::SSL::VERIFY_NONE

token = client.login(CONFLUENCE_LOGIN, CONFLUENCE_PASSWORD)
spaces = client.getSpaces(token)
spaces.each do |space|
  pages = client.getPages(token, space['key'])
  pages.each do |page|
    rendered = client.renderContent(token, space['key'], page['id'], '')
    if rendered.include? '&lt;div class="error"&gt;'
      puts page['id']
    end
  end
end
client.logout(token)

Justin Rand
Contributor
October 30, 2011

I'm getting an error when running this script.

Traceback (most recent call last):
  File "./new_python.py", line 11, in &lt;module&gt;
    authToken=client.confluence2.login(CONFLUENCE_LOGIN,CONFLUENCE_PASSWORD)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1243, in request
    headers
xmlrpclib.ProtocolError: &lt;ProtocolError for localhost:8443/RPC2: 404 Not Found&gt;

Any ideas?

William Schneider
Contributor
October 31, 2011

What URL did you use for this? It looks like you are receiving a 404 Not Found error when trying to resolve localhost:8443/RPC2 . Try using the full URL to the xml-rpc api which can be found in the developer docs (https://developer.atlassian.com/display/CONFDEV/Confluence+XML-RPC+and+SOAP+APIs).

Justin Rand
Contributor
November 6, 2011

Figured out the issue above, I didn't realize the URL needed to include the xmlrpc path.

William Schneider
Contributor
November 7, 2011

Hey Justin, glad you were able to get it working! I guess between me getting the email of your reply and checking it online you solved the error you had originally posted in this comment?

William Schneider
Contributor
November 7, 2011

No problem, glad you got it working.

Justin Rand
Contributor
November 7, 2011

Yep it was a stupid copy/paste mistake for my second error. Thanks again!

Walter Kammergruber
April 25, 2013

In your python script you could probably remove the

if 1:

check ;-)

Thanks Billy for sharing your code. Clean and simple.

William Schneider
Contributor
April 25, 2013

woidda - thanks, I've removed it now. The snippet was altered from code of mine that actually had a meaningful statement in it's place :)

4 votes
CharlesH
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 24, 2012

We had this issue after migrating to 4.2. Atlassian Support suggested running the following queries, although I seem to recall the number of records it returned didn't tally exactly with the number reported in the message.

SELECT * FROM CONTENT WHERE CONTENTID IN (SELECT CONTENTID FROM bodycontent WHERE BODYTYPEID = 0) AND PREVVER IS NULL AND CONTENTTYPE IN ('PAGE','BLOGPOST');
SELECT * FROM CONTENT WHERE CONTENTID IN (SELECT CONTENTID FROM bodycontent WHERE BODY LIKE '%unmigrated-wiki-markup%') AND PREVVER IS NULL AND CONTENTTYPE IN ('PAGE','BLOGPOST');

0 votes
Application Services
August 15, 2013

Below is an SQL that I used to list the page names for pages that have unmigrated content:

select min(a.contentid),
a.title
from content a,
bodycontent b
where a.contentid in
( select b.contentid
  from bodycontent b
  where b.body like '%unmigrated%'
  and a.contentid = b.contentid
  and a.content_status='current'
)
group by a.title;

0 votes
Jositz, Michael (Allianz SE)
November 23, 2012

I there also an SQl for Oracle that gives me the ID's of the unmigrated pages?

After upgrading to Conlfuence 4.3.3 I struggle with 618 pages where Confluence discovered unknown macros. I checked with the method suggested above to show the issues in the log file. It works, but it does not show me 618 pages.

Anyone has an SQL where I can exactly that number that Confluence internally shows me?

Thanks Michael

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events