question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENOENT while running mup deploy from a Bitbucket pipeline

See original GitHub issue

Hi!

I have used mup for years, but I have always just deployed from my local environment. Now, I am trying to deploy a meteor app to a Digital Ocean droplet from a Bitbucket pipeline, but I am having troubles.

The error I get from mup is:

{ cwd: '/opt/atlassian/pipelines/agent/build' }
{ [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }

From googling I believe this could be caused by that the path or file does not exist or is malformed. I have used pwd in order to find the path and it is /opt/atlassian/pipelines/agent/build which to me seems to match the path in the error message above. { cwd: '/opt/atlassian/pipelines/agent/build' }

Does anyone have a successful Bitbucket Pipeline running that deploys a meteor app with mup or have any idea on what is going on here and could help me?

My pipeline configuration for now (which kind of shows the steps I have tried for getting it to work):


pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          - mkdir -p ~/.ssh
          - ls
          - pwd
          - cd .deploy
          - cat my_known_hosts >> ~/.ssh/known_hosts
          - cat id_rsa.pub >> ~/.ssh/id_rsa.pub
          - (umask 077; echo $SSH_KEY | base64 --decode > ~/.ssh/id_rsa)
          - npm install -g mup@1.0.4
          - npm install -g ssh2
          - mup deploy```

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SimonatoLucaManuelecommented, May 21, 2017

I would share with you this docker and pipelines that works for me.

Meteor installation and mup installation are set inside Dockerfile. I’m not a pro in docker so feel free to try and modify it.

Docker - simonatoluca/bitbucket-pipelines-mup - link

Pipelines

image: simonatoluca/bitbucket-pipelines-mup

pipelines:
  default:
    - step:
        script:
          - rm -r node_modules
          - meteor npm install
          - cd .deploy
          - export METEOR_ALLOW_SUPERUSER=true
          - mup deploy

I hope this will help in future.

0reactions
SimonatoLucaManuelecommented, Jun 2, 2017

thank you @brianlukoff! So i can try to copy them in a more accessible folder… ~/ssh/id_rsa maybe?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker image in Pipelines doesn't install Packages
When Bitbucket Pipelines "spins up" an environment to run a build script, it has already "installed" a `node_modules` folder. And that "pre-installed" ` ......
Read more >
Deploy websites with Bitbucket pipelines and Git-ftp
This tutorial will teach you how to set up Bitbucket pipelines with Git-ftp to deploy websites from Bitbucket repository to FTP hosting.
Read more >
Bitbucket Pipeline Ssh Doesn't End - ADocLib
前段时间需要用到自 ENOENT while running mup deploy from a Bitbucket pipeline. <p>I have. ssh-run. Clone. Source code for the Bitbucket Pipe to run a...
Read more >
Translate Bitbucket Pipeline to circleCI - Stack Overflow
You are setting the working directory for your entire job to / . Because of this it is attempting to clone the repo...
Read more >
Help wit Serverless CI/CD Github Actions or Bitbucket Pipelines
I want to simply check into git and have serverless deploy to lambda… I havent found a single example that works… When serverless...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found