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.

Deploying with Heroku

See original GitHub issue

Getting the module worked perfectly from my local environment.

When deploying to Heroku, it is failing when the sentry-cli interacts with the git repo (or so I think). Can you take a look at the error log from Heroku and see what the issue is? I’ve been Googling like crazy for the past two days and tried many possible fixes (eg: resetting auths, github permissions and resetting it, etc…) not getting anywhere with it.

If someone can give insight/tip on what the issue is, I would truly appreciate it! 😃

Here’s the output from Heroku (FYI *** is used to mask sensitive info below):

ERROR in Sentry CLI Plugin: Command failed: /tmp/build_5410c600/node_modules/@sentry/cli/sentry-cli releases set-commits *** --auto
  INFO    2021-03-12 17:34:21.313599104 +00:00 sentry-cli was invoked with the following command line: "/tmp/build_5410c600/node_modules/@sentry/cli/sentry-cli" "releases" "set-commits" "***" "--auto"
  INFO    2021-03-12 17:34:21.492554660 +00:00 Resolving HEAD (***/webapp@HEAD)
error: could not find repository from '.'; class=Repository (6); code=NotFound (-3)
 FATAL  Nuxt build error

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chadwtaylorcommented, Mar 12, 2021

This is a follow up to my issue – I had to update the nuxt.config.js file to reflect:

sentry: {
  dsn: process.env.SENTRY_DSN,
  attachCommits: false, // <- particularly this line was required to make the error in heroku go away
  publishRelease: true
}

I’ve no idea what the issue is with not being able to find the repository (it looked right) but I’m content with the above setup and leaving this issue open if someone wants to tackle this if anybody needs attachCommits to be true.

0reactions
rchlcommented, Aug 21, 2021

Then it’s expected that attachCommits doesn’t work.

With the latest version of the module, you can manually pass the commit SHA to get commits to attach without a .git directory. See https://github.com/nuxt-community/sentry-module/issues/334#issuecomment-902572261

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying with Git - Heroku Dev Center
To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your...
Read more >
Heroku Deploy – How to Push a Web App or Site to Production
Step 1 - Create the project · Step 2 - Version control system · Step 3 - Link the repository with Heroku ·...
Read more >
Deploy your first App with Heroku and Node.js - YouTube
In this Tutorial, I walk you through how to deploy a simple Node.js app to Heroku.Here is the source code for the app...
Read more >
Deploying a Back-End with Heroku - Codecademy
Click the Deploy Branch button to manually deploy your app. You will see a log that scrolls through the build processes. When it...
Read more >
Deploying with Heroku - Apollo GraphQL Docs
Again, make sure you have Heroku CLI installed. Then, log into the Heroku CLI from your terminal. ... $ git add . ......
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