GithubHelp home page GithubHelp logo

Comments (4)

ginuerzh avatar ginuerzh commented on June 26, 2024

服务器端gost版本是多少,
崩溃后的日志信息可否发上来

from gost.

ARwMq9b6 avatar ARwMq9b6 commented on June 26, 2024

@ginuerzh 多谢 G 大的回复,服务端版本 1.7, 这是我 git push heroku master 部署时用的文件:https://copy.com/ZMjYfwGWiYyIAOEN/gost_heroku.7z

查看日志如下:

2015-07-27T00:31:22.562133+00:00 heroku[web.1]: State changed from crashed to starting
2015-07-27T00:31:24.952408+00:00 heroku[web.1]: Starting process with command `gost -ws`
2015-07-27T00:32:25.513283+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2015-07-27T00:32:25.513283+00:00 heroku[web.1]: Stopping process with SIGKILL
2015-07-27T00:32:26.564816+00:00 heroku[web.1]: Process exited with status 137
2015-07-27T00:32:26.579611+00:00 heroku[web.1]: State changed from starting to crashed
2015-07-27T06:15:48.920298+00:00 heroku[web.1]: State changed from crashed to starting
2015-07-27T06:15:50.667713+00:00 heroku[web.1]: Starting process with command `gost -ws`
2015-07-27T06:16:50.726775+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2015-07-27T06:16:50.726775+00:00 heroku[web.1]: Stopping process with SIGKILL
2015-07-27T06:16:51.682204+00:00 heroku[web.1]: State changed from starting to crashed
2015-07-27T06:16:51.666225+00:00 heroku[web.1]: Process exited with status 137
2015-07-27T06:43:41.973099+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=sleepy-basin-3008.herokuapp.com request_id=d7e167bd-8ca3-4b12-9943-f079001ed1c4 fwd="107.178.194.104" dyno= connect= service= status=503 bytes=
2015-07-27T06:43:44.486078+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=sleepy-basin-3008.herokuapp.com request_id=6f2f52a8-e903-4bb6-a5ec-ac2cd032cceb fwd="107.178.194.88" dyno= connect= service= status=503 bytes=

发现出错在 Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch ,好像说的是 gost -ws 后建立监听端口时发生错误。

搜到这篇文章 http://jamesmcfadden.co.uk/heroku-web-process-failed-to-bind-to-port-within-60-seconds-of-launch/ ,上面说 Heroku 每次开机都是随机端口, gost -L=":port" 这个端口必须是 Heroku 的环境变量中的 $PORT 值才行。

G 大可否帮助试验下 gost -L=":$PORT" -ws 是否可行。

from gost.

ginuerzh avatar ginuerzh commented on June 26, 2024

从日志及你所描述的情况来看,应该是端口限制导致的,
gost的默认监听端口是8080,你可以查看或设置一下$PORT变量,再通过-L参数设置此端口试试。

from gost.

ARwMq9b6 avatar ARwMq9b6 commented on June 26, 2024

多谢 G 大,直接使用 $PORT:

$ gost -L=":$PORT" -ws

成功了……

2015-07-27T07:52:13.532020+00:00 heroku[web.1]: Starting process with command `gost -L=":35772" -ws`
2015-07-27T07:52:17.423223+00:00 heroku[web.1]: State changed from starting to up

写了个简要的步骤: https://code.google.com/p/goagent/issues/detail?id=22121

from gost.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.