Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
openCARP
openCARP
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • openCARP
  • openCARPopenCARP
  • Issues
  • #81

Closed
Open
Opened Nov 27, 2020 by Eike M. Wülfers@wuelfersDeveloper

pkg Installer fails on macOS

Summary

As described also here, installation on macOS currently fails. The failure occurs for v4 and latest. It occurs in the last step (postinstall scripts).

I wasn't sure which repo to file against (CI?), feel free to move.

What version of openCARP are you using?

-v4 and -latest (2020-11-27 15:48).

What operating system and processor architecture are you using?

macOS Catalina 10.15.7 x86_64

Steps to reproduce

Install or upgrade openCARP using pkg installer on macOS. Version 3.2 works, v4 and latest have this bug.

This bug occurs both for fresh installs and upgrades.

Relevant logs and/or screenshots

Log from installing at command line (repeated lines have been cut):

$ sudo installer -verbose -pkg opencarp-latest.pkg -target /
installer: Package name is opencarp
installer: Upgrading at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing opencarp….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:
#
installer: Validating packages….....
#
installer: Writing files….....
#
installer: Moving items into place….....
#
installer: Running package scripts….....
#
installer: Running package scripts….....
installer: Running package scripts….....
installer: Validating packages….....
installer: Validating packages….....
#
installer: The upgrade failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “opencarp-latest.pkg”.)

Possible fixes

The issue occurs in the postinstall step. We should bisect what changes have been made between 3.2 and 4. I'm happy to help with that! This is most likely related to the installation of carputils.

The error also occurs when carputils is deselected during installation, but as far as I can tell, the postinstall script is still run (because it is not in the sub-pkg opencarp.carputils but in the opencarp.core and opencarp.tools packages).

(On a semi-related note: The installer will apparently gladly overwrite the carputils settings YAML in your home directory during an upgrade. Maybe that should be optional or automatically back up the existing file.)

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: openCARP/openCARP#81