Topic: MDB Pro npm install fails in CI jobs

Vinod pro asked 4 years ago


Expected behavior When installing locally via the following command, the library installs properly:

 npm install -D git+https://oauth2:xxxxxxxxxxxxxxxxxxxxxxxx@git.mdbootstrap.com/mdb/jquery/jq-pro.git#4.8.1

However, when we run this in our Hudson CI server, the install fails

Actual behavior

Install fails with a 403 error: The command you're trying to execute is not allowed.

Resources (screenshots, code snippets etc.)

Here is an excerpt from the install logs in Hudson CI:

 08:40:45  [ERROR] c.g.e.m.p.f.l.DefaultNpmRunner - npm ERR! Error while executing:
 08:40:45  [ERROR] c.g.e.m.p.f.l.DefaultNpmRunner - npm ERR! /usr/bin/git ls-remote -h -t 
 https://oauth2:xxxxxxxxxxxxxxxxxxxxxxxx@git.mdbootstrap.com/mdb/jquery/jq-pro.git
 08:40:45  [ERROR] c.g.e.m.p.f.l.DefaultNpmRunner - npm ERR! 
 08:40:45  [ERROR] c.g.e.m.p.f.l.DefaultNpmRunner - npm ERR! error:  while accessing https://oauth2:xxxxxxxxxxxxxxxxxxxxxxxx@git.mdbootstrap.com/mdb/jquery/jq-pro.git/info/refs
 08:40:45  [ERROR] c.g.e.m.p.f.l.DefaultNpmRunner - npm ERR! 
 08:40:45  [ERROR] c.g.e.m.p.f.l.DefaultNpmRunner - npm ERR! fatal: HTTP request failed
 08:40:45  [ERROR] c.g.e.m.p.f.l.DefaultNpmRunner - npm ERR! 
 08:40:45  [ERROR] c.g.e.m.p.f.l.DefaultNpmRunner - npm ERR! exited with error code: 128

If I try the failed url from the Hudson logs via wget on the commandline I get this:

 $ wget https://oauth2:xxxxxxxxxxxxxxxxxxxxxxxx@git.mdbootstrap.com/mdb/jquery/jq-pro.git/info/refs
 --2019-06-04 10:55:37--  https://oauth2:*password*@git.mdbootstrap.com/mdb/jquery/jq-pro.git/info/refs
 Resolving git.mdbootstrap.com (git.mdbootstrap.com)... 147.135.209.235
 Connecting to git.mdbootstrap.com (git.mdbootstrap.com)|147.135.209.235|:443... connected.
 HTTP request sent, awaiting response... 401 Unauthorized
 Authentication selected: Basic realm="GitLab"
 Reusing existing connection to git.mdbootstrap.com:443.
 HTTP request sent, awaiting response... 403 Forbidden
 2019-06-04 10:55:38 ERROR 403: Forbidden.

We therefore cannot integrate MDBootstrap Pro into our production pipeline. Please advise.


Vinod pro answered 4 years ago


We have resolved this issue. It was caused by using a very old version of git on our CI server. Installing the latest version of git (2.21.0) resolved the issue.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.0
  • Device: NA
  • Browser: NA
  • OS: Linux
  • Provided sample code: No
  • Provided link: No