I have deployed an app to Heroku using this tutorial: https://medium.com/#leonardykris/how-to-run-a-meteor-js-application-on-heroku-in-10-steps-7aceb12de234
I've even just created a new app with meteor create herokutest, created a new heroku app called ludotestone, and pushed it to Heroku Git, but still its not working.
When I run heroku logs --tail I get the following result:
2017-02-22T15:56:07.680626+00:00 app[api]: Release v1 created by user dev#friendsagency.com
2017-02-22T15:56:07.529897+00:00 app[api]: Initial release by user dev#friendsagency.com
2017-02-22T15:56:07.645071+00:00 app[api]: Enable Logplex by user dev#friendsagency.com
2017-02-22T15:56:07.645071+00:00 app[api]: Release v2 created by user dev#friendsagency.com
2017-02-22T15:56:07.752423+00:00 app[api]: Release v2 created by user dev#friendsagency.com
2017-02-22T15:56:07.529897+00:00 app[api]: Release v1 created by user dev#friendsagency.com
2017-02-22T15:56:29.993806+00:00 app[api]: Attach MONGODB (#ref:mongolab-silhouetted-71457) by user dev#friendsagency.com
2017-02-22T15:56:29.993806+00:00 app[api]: Release v3 created by user dev#friendsagency.com
2017-02-22T15:56:30.133334+00:00 app[api]: Release v3 created by user dev#friendsagency.com
2017-02-22T15:57:59.468311+00:00 app[api]: Set MONGO_URL config vars by user dev#friendsagency.com
2017-02-22T15:57:59.468311+00:00 app[api]: Release v4 created by user dev#friendsagency.com
2017-02-22T15:57:59.651147+00:00 app[api]: Release v4 created by user dev#friendsagency.com
2017-02-22T15:58:32.383523+00:00 heroku[router]: at=info code=H81 desc="Blank app" method=GET path="/" host=ludotestone.herokuapp.com request_id=ef4376e2-218a-44ee-89ee-a8c762c23a11 fwd="37.235.112.81" dyno= connect= service= status=502 bytes=
2017-02-22T15:58:32.907631+00:00 heroku[router]: at=info code=H81 desc="Blank app" method=GET path="/favicon.ico" host=ludotestone.herokuapp.com request_id=1b246c81-49bd-450d-8e83-7bd83e095504 fwd="37.235.112.81" dyno= connect= service= status=502 bytes=
2017-02-22T15:58:50.239561+00:00 app[api]: Release v5 created by user dev#friendsagency.com
2017-02-22T15:58:50.239561+00:00 app[api]: Set ROOT_URL config vars by user dev#friendsagency.com
2017-02-22T15:58:50.375276+00:00 app[api]: Release v5 created by user dev#friendsagency.com
2017-02-22T15:59:24.000000+00:00 app[api]: Build started by user dev#friendsagency.com
2017-02-22T16:07:15.247743+00:00 app[api]: Scaled to web#1:Free by user dev#friendsagency.com
2017-02-22T16:07:15.205972+00:00 app[api]: Deploy 7970970 by user dev#friendsagency.com
2017-02-22T16:07:15.205972+00:00 app[api]: Release v6 created by user dev#friendsagency.com
2017-02-22T16:07:15.586286+00:00 app[api]: Release v6 created by user dev#friendsagency.com
2017-02-22T15:59:24.000000+00:00 app[api]: Build succeeded
2017-02-22T16:07:43.758842+00:00 heroku[web.1]: Starting process with command `node build/bundle/main.js`
2017-02-22T16:07:46.734182+00:00 heroku[web.1]: Process exited with status 8
2017-02-22T16:07:46.620143+00:00 app[web.1]:
2017-02-22T16:07:46.621194+00:00 app[web.1]: throw new assert.AssertionError({
2017-02-22T16:07:46.620605+00:00 app[web.1]: assert.js:93
2017-02-22T16:07:46.621196+00:00 app[web.1]: ^
2017-02-22T16:07:46.623579+00:00 app[web.1]: AssertionError: "undefined" === "function"
2017-02-22T16:07:46.623582+00:00 app[web.1]: at wrapPathFunction (/app/build/bundle/programs/server/mini-files.js:77:10)
2017-02-22T16:07:46.623583+00:00 app[web.1]: at Object.<anonymous> (/app/build/bundle/programs/server/mini-files.js:108:24)
2017-02-22T16:07:46.623583+00:00 app[web.1]: at Module._compile (module.js:456:26)
2017-02-22T16:07:46.623585+00:00 app[web.1]: at Object.Module._extensions..js (module.js:474:10)
2017-02-22T16:07:46.623585+00:00 app[web.1]: at Module.load (module.js:356:32)
2017-02-22T16:07:46.623586+00:00 app[web.1]: at Function.Module._load (module.js:312:12)
2017-02-22T16:07:46.623586+00:00 app[web.1]: at Module.require (module.js:364:17)
2017-02-22T16:07:46.623587+00:00 app[web.1]: at require (module.js:380:17)
2017-02-22T16:07:46.623587+00:00 app[web.1]: at Object.<anonymous> (/app/build/bundle/programs/server/boot.js:9:13)
2017-02-22T16:07:46.623588+00:00 app[web.1]: at Module._compile (module.js:456:26)
2017-02-22T16:07:46.763859+00:00 heroku[web.1]: State changed from starting to crashed
2017-02-22T16:07:46.764493+00:00 heroku[web.1]: State changed from crashed to starting
2017-02-22T16:08:12.517015+00:00 heroku[web.1]: Starting process with command `node build/bundle/main.js`
2017-02-22T16:08:14.723827+00:00 app[web.1]:
2017-02-22T16:08:14.724103+00:00 app[web.1]: assert.js:93
2017-02-22T16:08:14.724315+00:00 app[web.1]: throw new assert.AssertionError({
2017-02-22T16:08:14.724317+00:00 app[web.1]: ^
2017-02-22T16:08:14.725795+00:00 app[web.1]: AssertionError: "undefined" === "function"
2017-02-22T16:08:14.725796+00:00 app[web.1]: at wrapPathFunction (/app/build/bundle/programs/server/mini-files.js:77:10)
2017-02-22T16:08:14.725797+00:00 app[web.1]: at Object.<anonymous> (/app/build/bundle/programs/server/mini-files.js:108:24)
2017-02-22T16:08:14.725798+00:00 app[web.1]: at Module._compile (module.js:456:26)
2017-02-22T16:08:14.725798+00:00 app[web.1]: at Object.Module._extensions..js (module.js:474:10)
2017-02-22T16:08:14.725799+00:00 app[web.1]: at Module.load (module.js:356:32)
2017-02-22T16:08:14.725799+00:00 app[web.1]: at Function.Module._load (module.js:312:12)
2017-02-22T16:08:14.725800+00:00 app[web.1]: at Module.require (module.js:364:17)
2017-02-22T16:08:14.725800+00:00 app[web.1]: at require (module.js:380:17)
2017-02-22T16:08:14.725800+00:00 app[web.1]: at Object.<anonymous> (/app/build/bundle/programs/server/boot.js:9:13)
2017-02-22T16:08:14.725801+00:00 app[web.1]: at Module._compile (module.js:456:26)
2017-02-22T16:08:14.849873+00:00 heroku[web.1]: State changed from starting to crashed
2017-02-22T16:08:14.831165+00:00 heroku[web.1]: Process exited with status 8
2017-02-22T16:20:15.789306+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=ludotestone.herokuapp.com request_id=4e8276da-dda8-4dcc-b4eb-9a480acb00d3 fwd="37.235.112.81" dyno= connect= service= status=503 bytes=
2017-02-22T16:20:17.692344+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=ludotestone.herokuapp.com request_id=ecf0bbfe-a03c-477d-9af1-69d27c9ec548 fwd="37.235.112.81" dyno= connect= service= status=503 bytes=
I have no idea what's going on, and how to fix this.
Related
I am trying to deploy my shiny app with heroku, but I have this output
web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2021-03-08T04:40:12.154157+00:00 heroku[web.1]: Stopping process with SIGKILL
2021-03-08T04:40:12.344233+00:00 heroku[web.1]: Process exited with status 137
2021-03-08T04:40:12.428222+00:00 heroku[web.1]: State changed from starting to crashed
2021-03-08T04:40:16.087134+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sccosmo.herokuapp.com request_id=c07864e8-1e9e-49ea-ac9a-c6e87eafec83 fwd="187.232.16.32" dyno= connect= service= status=503 bytes= protocol=https
2021-03-08T04:40:16.167140+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=hello.herokuapp.com request_id=a3953768-7884-4654-8db1-dee6f6a92708 fwd="187.232.16.32" dyno= connect= service= status=503 bytes= protocol=https
How can I solve this?
This is my file run.app
library(shiny)
port <- Sys.getenv('PORT')
shiny::runApp(
appDir = getwd(),
host = '0.0.0.0',
port = as.numeric(port)
)
I want to try to deploy the app on heroku. Created a simple MVC Spring that outputs "Hello Mark" in the browser. The app works. I follow the instructions.
Call:
heroku ps:scale web=1
Scaling dynos... !
! Couldn't find that process type (web).
And when you open the app
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
The logs show an error:
2020-10-01T16:36:04.081129+00:00 app[api]: Initial release by user mark.sinakaev#gmail.com
2020-10-01T16:36:04.081129+00:00 app[api]: Release v1 created by user mark.sinakaev#gmail.com
2020-10-01T16:36:04.325650+00:00 app[api]: Release v2 created by user mark.sinakaev#gmail.com
2020-10-01T16:36:04.325650+00:00 app[api]: Enable Logplex by user mark.sinakaev#gmail.com
2020-10-01T16:38:12.000000+00:00 app[api]: Build started by user mark.sinakaev#gmail.com
2020-10-01T16:38:36.880432+00:00 app[api]: Release v3 created by user mark.sinakaev#gmail.com
2020-10-01T16:38:36.880432+00:00 app[api]: Deploy ab380bda by user mark.sinakaev#gmail.com
2020-10-01T16:38:39.000000+00:00 app[api]: Build succeeded
2020-10-01T16:42:01.754283+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=sinakaev.herokuapp.com request_id=1b73c233-00df-4d63-abe3-b406bbd75fbc fwd="95.30.16.131" dyno= connect= service= status=503 bytes= protocol=https
2020-10-01T16:42:02.130866+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=sinakaev.herokuapp.com request_id=40a7902a-9cd9-43f1-a693-66aa96ad1bf1 fwd="95.30.16.131" dyno= connect= service= status=503 bytes= protocol=https
2020-10-01T16:59:27.106572+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=sinakaev.herokuapp.com request_id=74ad276a-e21b-4960-9e5a-b460ec0f2fca fwd="95.30.16.131" dyno= connect= service= status=503 bytes= protocol=https
2020-10-01T16:59:27.403649+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=sinakaev.herokuapp.com request_id=53fdb320-c269-4d38-bd27-f88f46b84256 fwd="95.30.16.131" dyno= connect= service= status=503 bytes= protocol=https
Give me an idea, please, how to solve the problem?
Do you have a Procfile? You should define your web process in that file, and then you can scale up the web dyno before sending traffic.
I have my Spring Boot Application (Maven) which connects Firebase DB to fetch data and deployed on heroku. but i'm getting
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/check/value" host=.herokuapp.com request_id=4d200dd7-c893-4cc3-8ce2-a3a12bf79592 fwd="106.201.132.7" dyno= connect= service= status=503 bytes= protocol=https
and i found that issue with connecting firebaseDB by heroku(in my localserver, it is working).
Yesterday I was developing a dashboard on my server using PHP and MySQL. I came in today to finish said dashboard and am met with the following output:
git clone https://github.com/tbg/tcd
Cloning into 'tcd'...
fatal: unable to access 'https://github.com/tbg/tcd/': Could not resolve host: github.com
Looking deeper into this issue I cam across the following issues as well with apt-get:
apt-get update
Err:1 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
Could not resolve 'ppa.launchpad.net'
Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease
Could not resolve 'security.ubuntu.com'
Err:3 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Could not resolve 'ppa.launchpad.net'
Err:4 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Could not resolve 'us.archive.ubuntu.com'
Err:5 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease
Could not resolve 'us.archive.ubuntu.com'
Err:6 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease
Could not resolve 'us.archive.ubuntu.com'
Err:7 https://download.docker.com/linux/ubuntu xenial InRelease
Could not resolve host: download.docker.com
Err:8 https://deb.nodesource.com/node_8.x xenial InRelease
Could not resolve host: deb.nodesource.com
Err:9 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 InRelease
Could not resolve 'repo.mongodb.org'
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease Could not resolve 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease Could not resolve 'security.ubuntu.com'
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/xenial/InRelease Could not resolve host: download.docker.com
W: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/xenial/InRelease Could not resolve 'ppa.launchpad.net'
W: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.2/InRelease Could not resolve 'repo.mongodb.org'
W: Failed to fetch https://deb.nodesource.com/node_8.x/dists/xenial/InRelease Could not resolve host: deb.nodesource.com
W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/xenial/InRelease Could not resolve 'ppa.launchpad.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Trying to resolve the apt-get host I get the following:
host -v us.archive.ubuntu.com
Trying "us.archive.ubuntu.com"
;; connection timed out; no servers could be reached
I figured this would be a DNS issue so I checked my resolv.conf file and am met with the following output:
cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
So now I'm lost, what's going on and how can I fix this issue successfully?
EDIT:
ifconfig shows that I have an IP address as expected:
eno1 Link encap:Ethernet HWaddr d0:94:67:41:8b:b3
inet addr:10.1.1.78 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::d294:66ff:fe51:5bb3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13800 errors:0 dropped:1 overruns:0 frame:0
TX packets:2420 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4767680 (4.7 MB) TX bytes:559473 (559.4 KB)
Interrupt:17
I had the same issue on Ubuntu:
Run:
systemctl enable systemd-resolved --now
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
nano /etc/systemd/resolved.conf
and add the relevant DNS, for example:
DNS=8.8.8.8
I was able to fix this issue completely with the following:
$ sudo dpkg-reconfigure resolvconf
$ sudo cat<<EOF > /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF
$ /etc/init.d/networking restart
$ sudo ifdown <INTERFACE>
$ sudo ifup <INTERFACE>
I want to deploy Meteor to heroku but have problems with starting the app.
I followed this tutorial
In heroku logs -t this results in:
2016-04-25T13:20:44.434043+00:00 heroku[web.1]: State changed from
crashed to starting 2016-04-25T13:20:48.587122+00:00 heroku[web.1]:
Starting process with command `.meteor/heroku_build/bin/node
.meteor/heroku_build/app/main.js` 2016-04-25T13:21:49.118920+00:00
heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind
to $PORT within 60 seconds of launch 2016-04-25T13:21:49.118920+00:00
heroku[web.1]: Stopping process with SIGKILL
2016-04-25T13:21:50.240617+00:00 heroku[web.1]: Process exited with
status 137 2016-04-25T13:21:50.250147+00:00 heroku[web.1]: State
changed from starting to crashed 2016-04-25T13:21:51.781162+00:00
heroku[router]: at=error code=H10 desc="App crashed" method=GET
path="/" host=pcmaster.herokuapp.com
request_id=99d374ee-cd1d-460f-b2bc-ef867dca219f fwd="217.196.169.249"
dyno= connect= service= status=503 bytes=
2016-04-25T13:21:53.057121+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico"
host=pcmaster.herokuapp.com
request_id=43cb523f-0036-4af8-b6d6-6db4c883f2b2 fwd="217.196.169.249"
dyno= connect= service= status=503 bytes=
What do I need to do differently?
Thanks