autopkg / dataJAR-recipes

Elegant and powerful Apple services for business and education.
https://www.datajar.co.uk
Apache License 2.0
114 stars 82 forks source link

Adobe CC Recipes - Index out of Range error #39

Closed fridomac closed 4 years ago

fridomac commented 5 years ago

Hello!

Tried out the AdobeCC Recipes, but so far got nowhere (I am a Python noob):

When running the AdobeCC2019Versioner.py I always get:

Error in local.jss.AdobeAcrobatDCCC2019: Processor: AdobeCC2019Versioner: Error: list index out of range

Any Pointers on where to look?

Bye, Fridolin.

macmule commented 5 years ago

Can we have the output from autopkg run -vvv for that recipe?

Redacting as required.

fridomac commented 5 years ago

Thank you for the quick reply!

Here is the Output:


Processing /Users/admin/Library/AutoPkg/RecipeOverrides/AdobeAcrobatDCCC2019.jss.recipe...
{u'API_PASSWORD': u'xxxxx',
 u'API_USERNAME': u'xxxx',
 'AUTOPKG_VERSION': u'1.1',
 u'CATEGORY': u'Productivity',
 u'GROUP_NAME': u'AdobeAcrobatDCCC2019-update-smart',
 u'GROUP_TEMPLATE': u'SmartGroupTemplate.xml',
 u'JSS_REPOS': [{
    type = CDP;
}],
 u'JSS_URL': u'https://XXX.jamfcloud.com',
 u'MINIMUM_OS_VERSION': u'10.12.0',
 u'MUNKI_REPO': u'/Volumes/munki_repo',
 u'NAME': u'AdobeAcrobatDCCC2019',
 'PARENT_RECIPES': [u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes/Adobe CC 2019/Adobe CC 2019 Import.jss.recipe'],
 u'POLICY_CATEGORY': u'Testing',
 u'POLICY_TEMPLATE': u'PolicyTemplate.xml',
 'RECIPE_CACHE_DIR': u'/Users/admin/Library/AutoPkg/Cache/local.jss.AdobeAcrobatDCCC2019',
 'RECIPE_DIR': '/Users/admin/Library/AutoPkg/RecipeOverrides',
 'RECIPE_OVERRIDE_DIRS': ['~/Library/AutoPkg/RecipeOverrides'],
 'RECIPE_PATH': '/Users/admin/Library/AutoPkg/RecipeOverrides/AdobeAcrobatDCCC2019.jss.recipe',
 u'RECIPE_REPOS': ----removed all the output here to shorten things-----
}},
 u'RECIPE_SEARCH_DIRS': [u'.',
                         u'~/Library/AutoPkg/Recipes',
                         u'/Library/AutoPkg/Recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.jaharmi-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.munkireport-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.tbridge-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.arubdesu-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.sheagcraig-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.justinrummel-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.keeleysam-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.gerardkok-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.jps3-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.grahamgilbert-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.hjuutilainen-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.orbsmiv-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.foigus-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.rtrouton-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.timsutton-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.nmcspadden-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.hansen-m-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.jessepeterson-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.scriptingosx-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.mosen-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.moofit-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.jss-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.arubdesu.office-recipes',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.rtrouton.AutoPkg_Processors',
                         u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.dataJAR-recipes',
                         '/Users/admin/Library/AutoPkg/RecipeOverrides'],
 u'SELF_SERVICE_DESCRIPTION': u'Some description.',
 u'SELF_SERVICE_ICON': u'',
 u'UNINSTALL_CATEGORY': u'Uninstallers',
 u'UNINSTALL_GROUP_NAME': u'AdobeAcrobatDCCC2019-uninstall',
 u'UNINSTALL_GROUP_TEMPLATE': u'UninstallSmartGroupTemplate.xml',
 u'UNINSTALL_POLICY_CATEGORY': u'Testing',
 u'UNINSTALL_POLICY_TEMPLATE': u'UninstallPolicyTemplate.xml',
 'verbose': 3}
AdobeCC2019Versioner
{'Input': {}}
AdobeCC2019Versioner: pkg /Users/admin/Downloads/AdobeAcrobatDCCC2019/Build/AdobeAcrobatDCCC2019_Install.pkg
list index out of range
Failed.
Receipt written to /Users/admin/Library/AutoPkg/Cache/local.jss.AdobeAcrobatDCCC2019/receipts/AdobeAcrobatDCCC2019.jss-receipt-20190904-124641.plist

The following recipes failed:
    /Users/admin/Library/AutoPkg/RecipeOverrides/AdobeAcrobatDCCC2019.jss.recipe
        Error in local.jss.AdobeAcrobatDCCC2019: Processor: AdobeCC2019Versioner: Error: list index out of range

Nothing downloaded, packaged or imported.```
macmule commented 5 years ago

@fridomac, is /Users/admin/Downloads/AdobeAcrobatDCCC2019/ an Adobe Admin console downloaded item?

fridomac commented 5 years ago

Yes, built the Package in the Admin Console, downloaded and unzipped it...

Am 05.09.2019 um 20:20 schrieb macmule notifications@github.com:

@fridomac, is /Users/admin/Downloads/AdobeAcrobatDCCC2019/ an Adobe Admin console downloaded item?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

macmule commented 5 years ago

hmm.. can you try with another PKG?

The logs are saying that "/Users/admin/Downloads/AdobeAcrobatDCCC2019/Build/AdobeAcrobatDCCC2019_Install.pkg" doesn't exist

fridomac commented 5 years ago

Will do tomorrow morning (Sunday at the Office :-( and Report back. Sorry to be such a bother...

Am 07.09.2019 um 16:57 schrieb macmule notifications@github.com:

hmm.. can you try with another PKG?

The logs are saying that "/Users/admin/Downloads/AdobeAcrobatDCCC2019/Build/AdobeAcrobatDCCC2019_Install.pkg" doesn't exist

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

fridomac commented 5 years ago

@macmule tried building the packages another way in the Admin Console. The packages I built had no Uninstall pkg present, so the Versioner would fail. If it is present, everything worked well.

Bye, Fridolin.

macmule commented 5 years ago

huh.. i didn't know you could build packages without the uninstall.pkg's!

Is this resolved now?

On Sun, 8 Sep 2019 at 09:12, Fridolin Koch notifications@github.com wrote:

@macmule https://github.com/macmule tried building the packages another way in the Admin Console. The packages I built had no Uninstall pkg present, so the Versioner would fail. If it is present, everything worked well.

Bye, Fridolin.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/autopkg/dataJAR-recipes/issues/39?email_source=notifications&email_token=AASZZTUV7IFK25B452OJB4TQISXX7A5CNFSM4ITQK6XKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FKQHI#issuecomment-529180701, or mute the thread https://github.com/notifications/unsubscribe-auth/AASZZTR2FLSIRZVUA55AKTDQISXX7ANCNFSM4ITQK6XA .

--

Regards,

Ben

fridomac commented 5 years ago

If I build a custom pkg, it does not include an uninstaller. Yes, seems to work now. Thank you!

Am 08.09.2019 um 12:11 schrieb macmule notifications@github.com:

huh.. i didn't know you could build packages without the uninstall.pkg's!

Is this resolved now?

On Sun, 8 Sep 2019 at 09:12, Fridolin Koch notifications@github.com wrote:

@macmule https://github.com/macmule tried building the packages another way in the Admin Console. The packages I built had no Uninstall pkg present, so the Versioner would fail. If it is present, everything worked well.

Bye, Fridolin.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/autopkg/dataJAR-recipes/issues/39?email_source=notifications&email_token=AASZZTUV7IFK25B452OJB4TQISXX7A5CNFSM4ITQK6XKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FKQHI#issuecomment-529180701, or mute the thread https://github.com/notifications/unsubscribe-auth/AASZZTR2FLSIRZVUA55AKTDQISXX7ANCNFSM4ITQK6XA .

--

Regards,

Ben — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

macmule commented 5 years ago

Ah, great!

Can you advise on the steps taken to create a custom installer?

I can then see if I can amend or make the error messaging clearer.

On Sun, 8 Sep 2019 at 12:27, Fridolin Koch notifications@github.com wrote:

If I build a custom pkg, it does not include an uninstaller. Yes, seems to work now. Thank you!

Am 08.09.2019 um 12:11 schrieb macmule notifications@github.com:

huh.. i didn't know you could build packages without the uninstall.pkg's!

Is this resolved now?

On Sun, 8 Sep 2019 at 09:12, Fridolin Koch notifications@github.com wrote:

@macmule https://github.com/macmule tried building the packages another way in the Admin Console. The packages I built had no Uninstall pkg present, so the Versioner would fail. If it is present, everything worked well.

Bye, Fridolin.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/autopkg/dataJAR-recipes/issues/39?email_source=notifications&email_token=AASZZTUV7IFK25B452OJB4TQISXX7A5CNFSM4ITQK6XKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FKQHI#issuecomment-529180701 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AASZZTR2FLSIRZVUA55AKTDQISXX7ANCNFSM4ITQK6XA

.

--

Regards,

Ben — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/autopkg/dataJAR-recipes/issues/39?email_source=notifications&email_token=AASZZTXVO6ERXV4H7FBU2XDQITORHA5CNFSM4ITQK6XKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FNVVY#issuecomment-529193687, or mute the thread https://github.com/notifications/unsubscribe-auth/AASZZTSAFRUOJEKL32AQEVLQITORHANCNFSM4ITQK6XA .

--

Regards,

Ben

fridomac commented 5 years ago

If you create a "Self-Service"-Package instead of a "Managed Package", it will not include an uninstaller, and the AdobeVersioner.py will break.

Thank you again!

Frido.

macmule commented 4 years ago

Hi @fridomac, this would need a whole re-architecting to these recipes & isn't something we'd actually use.

So.. i'm going to close this one off for now. But thanks for bringing the issue to our attention.