Topic: Deploy MDB Pro with OAuth2 on GitLab CI and Ansible
ostrowsk priority asked 3 years ago
I'm using Ansible for my deployment.
When install mdb-ui-kit-pro-advanced loal with oauth2 it is working finde.
In the CI I'll get following Error.
npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects clone https://oauth2:*@git.mdbootstrap.com/mdb/standard/mdb-ui-kit-pro-advanced /root/.npm/_cacache/tmp/git-cloneCJX74u --recurse-submodules npm ERR! fatal: could not create leading directories of \'/root/.npm/_cacache/tmp/git-cloneCJX74u\': Permission denied npm ERR! A complete log of this run can be found in:
I also tried let the task run as root, but it's not working: become: yes become_user: root
Any Idea?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.10.1
- Device: Gitlab CI
- Browser: None
- OS: Linxu
- Provided sample code: No
- Provided link: Yes
Dawid Wajszczuk staff commented 3 years ago
Hi. Based on this piece of code
ERR! fatal: could not create leading directories of \'/root/.npm/_cacache/tmp/git-cloneCJX74u\': Permission denied
, it is probably related to your permissions to this directory. Set yourself proper permissions and let us know if you still have some issues, as well as the error you will get.