I am trying to push MYSQL schema to my app which has clearDB addon. Getting this error message when i run herko db:push mysql.....
Can any one help me to identify the issue. Thanks for your time in advance.
================================
Sending schema
/var/lib/gems/1.9.1/gems/taps-0.3.24/bin/schema:3:in require': no such file to load -- rubygems (LoadError)
from /var/lib/gems/1.9.1/gems/taps-0.3.24/bin/schema:3
Schema: 100% |==========================================| Time: 00:00:07
/var/lib/gems/1.9.1/gems/taps-0.3.24/bin/schema:3:inrequire': no such file to load -- rubygems (LoadError)
from /var/lib/gems/1.9.1/gems/taps-0.3.24/bin/schema:3
! Heroku client internal error..
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new
Error: unexpected nil (OkJson::ParserError)
Backtrace: /var/lib/gems/1.9.1/gems/taps-0.3.24/lib/vendor/okjson.rb:82:in `valparse'
You can't use heroku db:push with none Heroku databases. Best way is to dump your database and then restore directly into your ClearDB instance.
Related
Pushes of updates to my app to Heroku are now rejected because of a tex-live incompatibility. See the error message below.
Heroku error message
remote: tlmgr: Remote repository is newer than local (2018 < 2019)
remote: Cross release updates are only supported with
remote: update-tlmgr-latest(.sh/.exe) --update
remote: Please see https://tug.org/texlive/upgrade.html for
details.
remote: ! Push rejected, failed to compile TeX Live app.
I have tried the following:
Add a file texlive.repository with contents ftp://tug.org/historic/systems/texlive/2018/tlnet-final. This does not work because the texlive repository lacks a required cryptographic certificate.
Delete the texlive buildpack and start over. Below is my buildpack config. However, when I try to remove it, I get this message:
$ heroku buildpacks:remove syphar/heroku-buildpack-tex
› Error: invalid json response body at https://buildpack-registry.heroku.com/buildpacks/syphar%2Fheroku-buildpack-tex reason: Unexpected end of JSON input
At this point I am stuck!
Heroku buildpacks
$ heroku buildpacks
=== nshost Buildpack URLs
1. https://github.com/HashNuke/heroku-buildpack-elixir.git
2. https://github.com/syphar/heroku-buildpack-tex.git
This works: in the file texlive.packages, replace
ftp://tug.org/historic/systems/texlive/2018/tlnet-final
with
https://www.math.utah.edu/pub/texlive/historic/systems/texlive/2018/tlnet-final
Solution courtesy of Nelson Beebe, University of Utah Mathematics Department
I am trying to install redmine (bugtracker which runs on ruby). I use webrick, it starts all fine, but when I access http://IP:3000/, it throws the following error in the server logs and the page does not load in the browser.
ERROR Errno::ECONNRESET: Connection reset by peer # io_fillbuf - fd:11
/root/.rbenv/versions/2.5.1/lib/ruby/2.5.0/webrick/httpserver.rb:82:in `eof?'
/root/.rbenv/versions/2.5.1/lib/ruby/2.5.0/webrick/httpserver.rb:82:in `run'
/root/.rbenv/versions/2.5.1/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread'
I am a bit stuck here, any help would be greatly appreciated.
Thanks in advance.
In the end, it was due to the port 3000 was being blocked by the network where the server was part of. Once the port block was removed, it started to work. Thanks #mike-k for your tips.
I have been searching and trying the things suggested for hours now and I still can't seem to get my play2.2.5 application to work on Heroku.
I get the error "An error occurred in the application and your page could not be served. Please try again in a few moments.If you are the application owner, check your logs for details." From the website when I try to run it.
Here is the text in my Procfile.txt
web: target/universal/stage/bin/homeworkorganizer -Dhttp.port=${PORT} -DapplyEvolutions.default=true -Ddb.default.driver=org.postgresql.Driver -Ddb.default.url=${DATABASE_URL}
You will notice that it doesn't contain that ${JAVA_OPTS}
Before I took that out, it didn't work either. And most of the websites I have looked at have said to remove it.
And here is the error gotten from "heroku logs"
Error can be found here
So the question is what do I need to do in order to get it to work properly?
Thanks in advance.
Procfile should have no extension, so Procfile.txt is being ignored by heroku. Which means that -DapplyEvolutions.default=true is being ignored and some default configuration is probably being used.
This is being hinted by this error:
2015-01-25T00:08:11.035238+00:00 app[web.1]: [←[33mwarn←[0m] play - Run with -DapplyEvolutions.default=true if you want to run them automatically (be careful)
2015-01-25T00:08:11.039189+00:00 app[web.1]: #6l1h6pdpo: Database 'default' needs evolution!
I want to add a collaborator to my existing project but the heroku sharing command is failing. This is the error message i have got. I have changed the email ID.
partha#PARTHA-PC ~/Desktop/hwhg (master)
$ heroku sharing:add <email>#gmail.com
! Heroku client internal error.
! Search for help at: https:// help.heroku. com
! Or report a bug at: https:// github. com/heroku/heroku/issues/new
Error: Invalid argument - git remote -v 2>&1 (Errno::EINVAL)
Backtrace: C:/Users/partha/.heroku/client/lib/heroku/helpers.rb:110:in ``'
C:/Users/partha/.heroku/client/lib/heroku/helpers.rb:110:in `git'
C:/Users/partha/.heroku/client/lib/heroku/command/base.rb:269:in `git_remotes'
C:/Users/partha/.heroku/client/lib/heroku/command/base.rb:216:in `extract_app_in_dir'
C:/Users/partha/.heroku/client/lib/heroku/command/base.rb:32:in `app'
C:/Users/partha/.heroku/client/lib/heroku/command/base.rb:238:in `extract_org_from_app'
C:/Users/partha/.heroku/client/lib/heroku/command/base.rb:253:in `org_from_app!'
C:/Users/partha/.heroku/client/lib/heroku/command/sharing.rb:45:in `add'
C:/Users/partha/.heroku/client/lib/heroku/command.rb:218:in `run'
C:/Users/partha/.heroku/client/lib/heroku/cli.rb:28:in `start'
c:/Program Files/Heroku/bin/heroku:29:in `<main>'
Command: heroku sharing:add <emailID>#gmail.com
Version: heroku/toolbelt/3.2.1 (i386-mingw32) ruby/1.9.3
as mentioned by John this is the answer...
heroku sharing:add <email> --app <yourappname
the app name should be mentioned explicitly
I'm completely confuse about Heroku Postgres Plan. Please help.
When I check for PG info, using:
heroku pg:info
It's showing:
=== HEROKU_POSTGRESQL_BRONZE_URL
Plan: Basic
Status: available
Connections: 1
PG Version: 9.2.4
Created: 2013-07-30 12:44 UTC
Data Size: 6.3 MB
Tables: 0
Fork/Follow: Unsupported
=== HEROKU_POSTGRESQL_MAROON_URL (DATABASE_URL)
Plan: Dev
Status: available
Connections: 4
PG Version: 9.2.4
Created: 2013-08-06 05:17 UTC
Data Size: 10.7 MB
Tables: 13
Rows: 22346/10000 (Write access revoked)
Fork/Follow: Unsupported
Here showing HEROKU_POSTGRESQL_MAROON(free) have 13 tables. But in Paid database there is no table. Isn't it means paid database is not working?
I don't want to use that free database. Please help me to find a way to inset data into my paid database not into free.
I also tried by deleting free database from heroku database console. But then it shows application error.
You need to "promote" the database you want to use.
heroku pg:promote HEROKU_POSTGRESQL_BRONZE_URL
This will set the DATABASE_URL to the corresponding database.
More info here