Skip to main content
Solved

Open Self Service with URL results in error


Forum|alt.badge.img+3

We have various shell scripts in which we open or directly execute a policy in the self service as follows:

 

 

open "jamfselfservice://content?entity=policy&id=10&action=view"

 

 

Since the update from 11.4.1 to 11.7.1, we have noticed the problem that the following error message appears when we open / execute such a policy (unfortunately I can't insert a screenshot, I don't seem to have any permissions):

Self Service quit unexpectedly.
Click Reopen to open the application again.
Click Report to see more detailed information and send a report to Apple.

 

if you first open the Self Service app and then execute the command, it works.
Does anyone else have this problem?

Our workaround is now to open self Serivce first, and then wait with a sleep 5 until hopefully the app is started, so that the URL command can be executed afterwards.

 

 

open "/Applications/Self Service.app" sleep 5 open "jamfselfservice://content?entity=policy&id=54&action=view"

 

 

This works, but is suboptimal, as the 5 seconds are either too long or too short, depending on the Mac model.
Is there a way to check via shell script when an application has been started 100%? And is not still starting?

Best answer by sdagley

@Thrawnium06 The Self Service crash when launched via a URL is a known PI (I don't have the number handy at the moment) introduced in 11.6. It is slated to be fixed in the 11.9 update due out ¯\\_(ツ)_/¯ 

Jamf's suggested workaround until 11.9 is installed is to use a LaunchDaemon to keep Self Service running at all times.

View original
Did this topic help you find an answer to your question?

3 replies

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3536 replies
  • Answer
  • August 30, 2024

@Thrawnium06 The Self Service crash when launched via a URL is a known PI (I don't have the number handy at the moment) introduced in 11.6. It is slated to be fixed in the 11.9 update due out ¯\\_(ツ)_/¯ 

Jamf's suggested workaround until 11.9 is installed is to use a LaunchDaemon to keep Self Service running at all times.


Forum|alt.badge.img+3
  • Author
  • New Contributor
  • 4 replies
  • August 30, 2024
sdagley wrote:

@Thrawnium06 The Self Service crash when launched via a URL is a known PI (I don't have the number handy at the moment) introduced in 11.6. It is slated to be fixed in the 11.9 update due out ¯\\_(ツ)_/¯ 

Jamf's suggested workaround until 11.9 is installed is to use a LaunchDaemon to keep Self Service running at all times.


@sdagley Thank you for your quick response and the information!


Forum|alt.badge.img+17
  • Valued Contributor
  • 231 replies
  • August 30, 2024

If you have JSS download privileges connected to your Jamf account, you can get older versions of Self Service by tearing apart the WAR file. Download an older JSS for manual installation, run unzip on ROOT.war, and look in the resulting bin folder for Self Service as an installer package or gzipped tarball. The level 1 folder usually has the newest version for a given release.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings