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
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)
)
nginx installed with https://nginx.org/en/linux_packages.html in Ubuntu 18.04
sudo apt -y install curl gnupg2 ca-certificates lsb-release ;
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" | sudo tee /etc/apt/sources.list.d/nginx.list ;
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - ;
sudo apt update ;
sudo apt install nginx ;
nginx up and running
$ ps -aux | grep nginx
root 5602 0.0 0.0 33348 880 ? Ss 17:03 0:00 nginx: master process nginx
nginx 5603 0.0 0.0 33744 2748 ? S 17:03 0:00 nginx: worker process
with /etc/nginx/nginx.conf
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
record off;
allow publish 127.0.0.1;
deny publish all;
}
}
}
ffmpeg -f lavfi -i testsrc -t 30 -pix_fmt yuv420p -f flv rtmp://localhost/live/test yields
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, lavfi, from 'testsrc':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[tcp # 0x5611668b8c00] Connection to tcp://localhost:1935 failed: Connection refused
[rtmp # 0x5611668b8520] Cannot open connection tcp://localhost:1935
rtmp://localhost/live: Connection refused
Clue:
Nothing seems to be listening on port 1935. netstat -tap | grep 1935 yields nothing
Clue2:
Albeit ps shows app as running, systemctl status nginx.service shows app status down
● nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-12-03 19:37:17 CET; 7min ago
Docs: http://nginx.org/en/docs/
Process: 5709 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
Things checked given other stackoverflow questions:
trying to connect to rtmp://localhost/live/test and in nginx.conf the application is correctly named live
nginx.conf correctly placed at /etc/nginx/, no other nginx.conf files exist, and nginx -s reload called to make sure it is loaded
no localhost instances in the conf file, all renamed to 127.0.0.1
Install nginx that supports rtmp sudo apt install nginx-core nginx-common libnginx-mod-rtmp
and not sudo apt install nginx
and then run nginx with
sudo systemctl restart nginx
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).
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.