Comments (4)
服务器端gost版本是多少,
崩溃后的日志信息可否发上来
from gost.
@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.
从日志及你所描述的情况来看,应该是端口限制导致的,
gost的默认监听端口是8080,你可以查看或设置一下$PORT变量,再通过-L参数设置此端口试试。
from gost.
多谢 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)
- 负载均衡TCP转发模式BUG
- 使用服务器多网卡,用Interface绑定指定Ip时,报错connect: no route to host
- GOST的ICMP隧道使用
- gost build error by the latest golang HOT 1
- 使用yaml配置文件无法启动 HOT 3
- 客户端是 Linux 机器时应如何配置落地机器及客户端?
- FreeBSD port .. cannot use dns? HOT 1
- request a new release
- you can receive 111.1 strks HOT 1
- bypass问题
- gost 开启代理,报 bad version 错误 HOT 1
- 这个受中转服务器带宽限制吗?
- 我想问问gost是怎么加密传输
- 请问gost 有简单的demo 代码用于第三方开发的依赖?
- [Feature Request] Considering support vmess and trojan Protocol
- traffic compression function, udp/tcp.
- socks5 udp not foward properly
- 请问gost是否支持隧道代理,动态代理转发?
- gost 通过守护进程使用?
- cant build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gost.