Java Spring Boot Deployment with GitHub - github

If I build and deploy the code linked below through CLI it works successfully. It also builds and runs locally. I am trying to set it up to deploy through github, but when I do that I get an 'application error' when trying to access the page via the url. Looking at the logs, I don't think there are any errors from the build, but I do get the following message when I try to access the url:
at=error code=H14 desc="No web processes running" method=GET path="/" host=bug-tracker-url.herokuapp.com request_id=620ec127-49ea-4aea-8f0c-d1b228e6cb03 fwd="86.180.101.141" dyno= connect= service= status=503 bytes= protocol=https
This is the repo I'm trying to use to deploy:
https://github.com/jamesgiddings/bugtracker
I have tried running heroku ps:scale web=1 -a
This returns Couldn't find that process type
I did also try adding both jvm and java to the build packs. This allows me to run heroku ps:scale web=1 -a successfully, but then when I try to access the website I get
at=error code=H10 desc="App crashed" method=GET

Related

Macos - Heroku error code H=10 (Twitter Opensea.io Sales Bot)

I'm facing the problem showing below on HEROKU. I'm using this GitHub Program (https://github.com/dsgriffin/opensea-sales-twitter-bot)
and deployed it 1:1 in Heroku. The current status is that the app is deployed, but I can't open the app. If I try, this message appears.
This is the message:
ug 17 03:50:12 kidpunksbot heroku/router at=error
code=H10 desc="App crashed" method=GET path="/favicon.ico"
host=kidpunksbot.herokuapp.com request_id=d146801e-6e51-424d-abe1-9b111d06b080
fwd="79.229.5.11" dyno= connect= service= status=503 bytes= protocol=https
check out the following service: https://nft-bots.io/

Discord.py now working on Heroku deployment

Im trying to deploy my python code on Heroku using GitHub Desktop,
i also have have .json on the files btw
[requirements]
discord.py
[Procfile]
worker : python economia.py
HEROKU ERROR:
-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
updated with new files:
[githbu files] (https://github.com/richcipriano/billionaireboysclub)
UPDATED HEROKU LOG:
2020-08-30T20:51:18.764302+00:00 app[api]: Release v13 created by user mallkz#hotmail.com
2020-08-30T20:51:27.000000+00:00 app[api]: Build succeeded
2020-08-30T20:53:55.070715+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=billionaireboysclub.herokuapp.com request_id=d0cb7997-13a0-4e27-945e-6f04d471f5e7 fwd="107.184.213.12" dyno= connect= service= status=503 bytes= protocol=https
2020-08-30T20:53:55.776349+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=billionaireboysclub.herokuapp.com request_id=64a55a40-5c9e-4c9e-b351-9120b8d87e1a fwd="107.184.213.12" dyno= connect= service= status=503 bytes= protocol=https
2020-08-30T20:59:14.000000+00:00 app[api]: Build started by user mallkz#hotmail.com
2020-08-30T20:59:46.151834+00:00 app[api]: Deploy 52d5b11d by user mallkz#hotmail.com
2020-08-30T20:59:46.151834+00:00 app[api]: Release v14 created by user mallkz#hotmail.com
2020-08-30T20:59:54.000000+00:00 app[api]: Build succeeded
2020-08-30T21:05:42.259926+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=billionaireboysclub.herokuapp.com request_id=63abbf21-aa34-433c-b9e6-8a708810e334 fwd="107.184.213.12" dyno= connect= service= status=503 bytes= protocol=https
2020-08-30T21:05:43.029607+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=billionaireboysclub.herokuapp.com request_id=91edc538-2ef0-4f8e-88e3-5bb91007e6c6 fwd="107.184.213.12" dyno= connect= service= status=503 bytes= protocol=https

A problem with Vapor app deployed to Heroku

I've deployed my Vapor app to Heroku, but when I try to make a request, it fails with the error:
at=error code=H10 desc="App crashed" method=GET path="/feed" host=detect-api.herokuapp.com request_id=970e4005-58b0-4b34-8489-715dc9cd5e19 fwd="5.228.26.4" dyno= connect= service= status=503 bytes= protocol=https
Also, when I run this script - heroku ps:scale web=1, I get the next logs:
State changed from crashed to starting
State changed from starting to crashed
My Procfile contains the next code:
web: Run serve --env production --hostname 0.0.0.0 --port $PORT
In the configure.swift file I added this code:
let nioServerConfig = NIOServerConfig.default(
hostname: "0.0.0.0",
port: Int(Environment.get("PORT") ?? "") ?? 8080
)
services.register(nioServerConfig)
How to fix this issue?
I've solved the problem by replacing SQLite with PostgreSQL. I didn't find any information about SQLite support on Heroku, but it seems like there is no support of this database (or I did something wrong).

Deployed heroku postgrest + database keeps crashing

I am trying to deploy postgrest v 0.4.2.0 app (https://github.com/begriffs/postgrest/releases/tag/v0.4.2.0) on heroku according to this instruction:
https://postgrest.com/en/v3.2/admin_deployment.html#heroku (it's an older version, but viable in general instructions)
I already have a deployed database (via Heroku Postgres) with 1 table on my heroku account, so I keep trying to connect my DB with postgrest:
DB_URL: postgres://mpdwpnlqhwsosk:5abeb772ff431ef99e975be287970c3412174b331926b189d6485277f41d65d1#ec2-174-129-224-33.compute-1.amazonaws.com:5432/da5a8m1p77diab
And so, my app is just crashing (H10 error). I can't see table, etc. Although, I can successfully connect to this DB via pgAdmin
Is there I am doing something wrong, or is that some kind of nasty bug?
Logs:
2017-06-19T09:53:52.579013+00:00 heroku[web.1]: State changed from starting to crashed
2017-06-19T09:53:52.568134+00:00 heroku[web.1]: Process exited with status 1
2017-06-19T10:38:45.049215+00:00 heroku[web.1]: State changed from crashed to starting
2017-06-19T10:38:45.838847+00:00 heroku[web.1]: Starting process with command ./env-to-config ./postgrest postgrest.conf
2017-06-19T10:38:47.811334+00:00 heroku[web.1]: Process exited with status 1
2017-06-19T10:38:47.752947+00:00 app[web.1]: ConfigError {configErrorLocation = Key "" "secret-is-base64", configConversionError = Just [ConversionError {conversionErrorLoc = "boolValue", conversionErrorWhy = TypeError, conversionErrorVal = Just (String "false"), conversionErrorType = Just Bool, conversionErrorMsg = Nothing}]}
2017-06-19T10:38:47.822918+00:00 heroku[web.1]: State changed from starting to crashed
2017-06-19T11:04:22.519115+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=agile-mesa-95349.herokuapp.com request_id=7f7c6d70-c23b-400a-aec8-83758cb226cf fwd="109.184.214.45" dyno= connect= service= status=503 bytes= protocol=https
By the way, this probably should not have been downvoted. It looks like a manifestation of a bug that was recently fixed in https://github.com/begriffs/postgrest/pull/897
The fix is not yet part of a release, but will be in the next release.

Application error when deploying Sinatra app using DataMapper + postgres

I'm trying to deploy a simple Sinatra app to Heroku, I'm using postgresql, my Gemfile looks like this:
gem 'sinatra'
gem 'data_mapper'
gem 'dm-postgres-adapter'
gem 'pg'
gem 'database_cleaner'
gem 'bcrypt-ruby'
gem 'rack-flash3'
gem 'sinatra-partial'
gem 'mandrill-api'
group :development, :test do
gem 'capybara'
gem 'shotgun'
gem 'rspec'
gem 'debugger'
end
I have the pg add-on on my app, This is how my datamapper_setup.rb looks:
env = ENV['RACK_ENV'] || "development"
DataMapper.setup(:default, ENV['DATABASE_URL'] || "postgres://localhost/bookmark_manager_# {env}")
DataMapper.finalize
DataMapper.auto_upgrade!
I don't know how to interpret the logs from heroku but here they are:
2014-03-29T13:35:47.674101+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=staging-bookmarkmanager.herokuapp.com request_id=304ebd75-859f-4768-9766-f25ca2fdf3ba fwd="77.99.158.5" dyno= connect= service= status=503 bytes=
2014-03-29T13:35:48.545822+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=staging-bookmarkmanager.herokuapp.com request_id=1669c22c-60c2-4d74-9967-7e60b32d49ad fwd="77.99.158.5" dyno= connect= service= status=503 bytes=
2014-03-29T13:35:51.486444+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=staging-bookmarkmanager.herokuapp.com request_id=6c70962d-7313-4dee-82de-5c12ca091aab fwd="77.99.158.5" dyno= connect= service= status=503 bytes=
2014-03-29T13:35:52.025452+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=staging-bookmarkmanager.herokuapp.com request_id=9166bd84-2187-4d2c-bf01-13a1a5574ac1 fwd="77.99.158.5" dyno= connect= service= status=503 bytes=
Any ideas on why is this happening? I've tried several approaches already with no luck.
In the additional logs you posted, it would seem that the database is refusing your connection:
FATAL: role "xbwj…jedif" is not permitted to log in (DataObjects::ConnectionError)
Verify the that the credentials provided by ENV['DATABASE_URL'] are the same as those listed in the output of heroku config.