Uploaded image for project: 'Opencast'
  1. MH-11811

Opencast build fails when system timezone is set to PDT (Pacific Daylight Time)

    Details

    • Severity:
      Build Error
    • Steps to reproduce:
      Hide
      After checking out the git repo for release 2.2.2 on a freshly installed CentOS 7 system, I found I couldn't get opencast to compile. It would always error out during the 'grunt' phase in matterhorn-admin-ui-ng.

      I tried running npm from the matterhorn-admin-ui-ng modules directory for a better error report (attached). When I noticed the date checks were failing, I tried changing the computer to UTC time (rm /etc/localtime, ln -s /usr/share/zoneinfo/UTC /etc/localtime). This allowed the build to succeed.

      Steps to reproduce:
      1. Set timezone to PDT (I use '/usr/share/zoneinfo/America/Los_Angeles').
      2. Checkout the 2.2.2 branch via git.
      3. Install all dependencies.
      4. mvn clean install
       
      I also tried this on the 2.2.3-rc1 branch and got the same error.

       Actual Results:
      [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:npm (frontend build) on project matterhorn-admin-ui-ng: Failed to run task: 'npm run build --no-color --skipTests=false --color=false' failed. (error code 1) -> [Help 1]
       
       Expected Results:
      Successful build
       
       Workaround (if any):
      Change the system clock to UTC.
      Show
      After checking out the git repo for release 2.2.2 on a freshly installed CentOS 7 system, I found I couldn't get opencast to compile. It would always error out during the 'grunt' phase in matterhorn-admin-ui-ng. I tried running npm from the matterhorn-admin-ui-ng modules directory for a better error report (attached). When I noticed the date checks were failing, I tried changing the computer to UTC time (rm /etc/localtime, ln -s /usr/share/zoneinfo/UTC /etc/localtime). This allowed the build to succeed. Steps to reproduce: 1. Set timezone to PDT (I use '/usr/share/zoneinfo/America/Los_Angeles'). 2. Checkout the 2.2.2 branch via git. 3. Install all dependencies. 4. mvn clean install   I also tried this on the 2.2.3-rc1 branch and got the same error.  Actual Results: [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:npm (frontend build) on project matterhorn-admin-ui-ng: Failed to run task: 'npm run build --no-color --skipTests=false --color=false' failed. (error code 1) -> [Help 1]    Expected Results: Successful build    Workaround (if any): Change the system clock to UTC.

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              greg_logan Greg Logan
              Reporter:
              mikeyorr Mikey Orr
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases