Every time I enter
heroic update
I get this following message
This is the legacy Heroku CLI. Please install the new CLI from https://cli.heroku.com
heroku-cli: Updating CLI... already on latest version: 6.12.0-a504409
heroku-cli: Updating plugins... done
! `heroku update` is only available from Heroku Toolbelt.
! Download and install from https://toolbelt.heroku.com
but I did click on the link and reinstalled it, and when I try again, the same message pops up. How should I fix this?
Try adding HEROKU_DEBUG=1 to the command , it will tell any trouble it have have.
You can also try with DEBUG=* to see more verbose output of command.
Error logs files are stored at
MacOS ~/Library/Caches/heroku/error.log
Windows %LOCALAPPDATA%\heroku\error.log
Linux/Other ~/.cache/heroku/error.log (or XDG_CACHE_HOME if set)
reference https://devcenter.heroku.com/articles/heroku-cli#troubleshooting
Related
I am currently trying to set up some system testing for my rails web application (using Rails version 7.0.3.1)
When running rails test:system to run a single system test I had written, I am getting the below setup-related error
Command '/usr/bin/chromium-browser' requires the chromium snap to be installed.
Please install it with:
snap install chromium
.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/webdrivers-5.0.0/lib/webdrivers/system.rb:190:in `call': Failed to make system call: ["/usr/bin/chromium-browser", "--product-version"] (RuntimeError)
And then, when I try to run
snap install chromium
as suggested by the error I am getting back, I then run into the following error
error: cannot communicate with server: Post http://localhost/v2/snaps/chromium: dial unix /run/snapd.socket: connect: no such file or directory
I am lost as to how to move forward with this issue, which is preventing me from being able to run any system tests. There also seem to not be too many related issues online currently that applied to this case. Any help/ suggestions on where to look to further troubleshoot this error would be greatly appreciated.
Try to install it from the Google, depends on your ubuntu versions:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install ./google-chrome-stable_current_amd64.deb
I am looking to access git commands from the Ruby command line in Windows 10 however when I attempt to run a git command I get a "git is not recognized" error. I can call git commands from the standard command line without any problems. I have updated my paths to include C:\Program Files\Git\cmd\ and C:\Program Files\Git\bin\ however this has not resolved the error. Any other suggestions of how to solve this?
Make sure you've set your PATH to git correctly. By default, git should already be configured to PATH automatically. Go to this link and download the correct version for your system and then install it. Afterwards, open the windows terminal and everything should work.
This may help you out: How to run Ruby and GIT commands in one place on Windows
I'm at my wit's end. I'm trying to push a new rails 5 application to heroku, and i keep getting the error message "yarn executable was not detected in system" whenever the rake assets:precompile starts.
I have followed all of the instructions from this post, the installation instructions from the yarn site, and even tried the solutions from this post.
Every time that I run yarn --version from the command line, it looks as if it's installed perfectly fine, and I get the following result: 1.7.0
If anybody else can recommend something else to try, I would greatly appreciate it.
Thanks!
When forking a heroku app, I get the message "Cisaurus copy service no longer available. Use Heroku Platform API instead." No gem by that title is installed. What is causing this? Full output below, using [myapp] in place of the sourceapp name, and [targetapp] in place of the forked copy name:
[myapp]$ heroku fork -a [myapp] [targetapp]
Creating fork [targetapp]... done
Copying slug... Failed to fork app [myapp] to [targetapp].
! WARNING: Potentially Destructive Action
! This command will destroy edmeasured-sandbox (including all add-ons).
! To proceed, type "[targetapp]" or re-run this command with --confirm
[targetapp]
> [targetapp]
Deleting [targetapp]... done
Original exception below:
! Cisaurus copy service no longer available. Use Heroku Platform API instead. See: https://devcenter.heroku.com/articles/platform-api-copying-slugs
[targetapp]$
The issue is being caused by using an old version of Heroku Toolbelt. Updating via https://toolbelt.heroku.com allows the command to run as intended.
In a windows environment I am getting the following error when trying to deploy to Heroku
C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/base.rb:32:in ': No such file or directory - git
remote (Errno::ENOENT)
from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/ba
se.rb:32:in shell'
from C:/Ruby/lib/ruby/1.8/fileutils.rb:121:in
chdir'
from C:/Ruby/lib/ruby/1.8/fileutils.rb:121:in
cd'
from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/ba
se.rb:32:inshell'
from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/commands/ap
p.rb:52:in create'
from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/command.rb:
48:insend'
from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/command.rb:
48:in run_internal'
from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/lib/heroku/command.rb:
20:inrun'
from C:/Ruby/lib/ruby/gems/1.8/gems/heroku-1.9.13/bin/heroku:13
from C:/Ruby/bin/heroku:19:in `load'
from C:/Ruby/bin/heroku:19
Any idea how I can correct this? This is being run from the Ruby Command line (which seems to me like the regular command line)
Ok so I figured out a way to make it work and why it is likely happening.
For some reason I can only run the Ruby commands from the CMD prompt however the GIT commands only seem to work from the GIT Bash. When in the GIT Bash the Ruby commands don't work.
When you run the Heroku commands to create the service it seems to want to run certain GIT commands which don't work from the CMD prompt the way I have it set up.
To get around this for the moment I am adding the Heroku path for GIT as a remote manually and then pushing that manually when needed. An extra step but everything still works as intended.
If you need help with the work around check out the information in this link: http://www.wiki.devchix.com/index.php?title=Working_around_the_%22heroku_create%22_error
I'd still recommend using Git Bash over the normal windows CMD prompt.. but I know how tedious that can be sometimes.
You can bypass the need to do this however and get your Heroku gem working properly in your windows CMD prompt by adding your msysgit/bin path to your system Path variable.
That'll give your heroku gem access to the git command.
To add heroku as remote use the following:
git remote add heroku git#heroku.com:yourappname.git
Then push your master copy to Heroku:
git push heroku master