New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot connect to webui. #309

Closed
crushglass opened this Issue Oct 28, 2015 · 11 comments

Comments

Projects
None yet
4 participants
@crushglass

crushglass commented Oct 28, 2015

Windows环境下,在命令行启动pyspider,然后访问http://localhost:25555/ ,页面空白,只有一个提示method not allowed!

用pyspider或pyspider all启动都不行,Google后发现有人提到改host的解决方式,改后问题依旧。

@binux

This comment has been minimized.

Owner

binux commented Oct 28, 2015

why do you visit localhost:25555, which is a port for xmlrpc.

@crushglass

This comment has been minimized.

crushglass commented Oct 29, 2015

谢谢你的回复。
我按照Read me上安装了pyspider,并使用http://localhost:5000/ 访问,Firefox下显示 “Unable to connect”,无法访问。控制台提示“Web server running on port 25555”,并没有其他错误提示,所以才会访问http://localhost:25555/

@binux

This comment has been minimized.

Owner

binux commented Oct 29, 2015

where show the unable to connect message?

On Thu, Oct 29, 2015 at 4:33 AM crushglass notifications@github.com wrote:

谢谢你的回复。
我按照Read me上安装了pyspider,并使用http://localhost:5000/ 访问,Firefox下显示 “Unable to
connect”,无法访问。控制台提示“Web server running on port 25555”,并没有其他错误提示,所以才会访问
http://localhost:25555/


Reply to this email directly or view it on GitHub
#309 (comment).

@crushglass

This comment has been minimized.

crushglass commented Oct 30, 2015

Firefox中显示Unable to connect。
使用curl访问http://localhost:5000/ 提示curl: (7) Failed to connect to localhost port 5000: Connection refused
Pyspider的控制台中一直显示
[… scheduler:395] in 5m: new:0,success:0,retry:0,failed:0

@binux

This comment has been minimized.

Owner

binux commented Oct 30, 2015

Are there any logs like:
[I 151030 10:22:12 app:65] webui running on http://0.0.0.0:5000/
from console.

@crushglass

This comment has been minimized.

crushglass commented Oct 30, 2015

No,there aren't

@binux

This comment has been minimized.

Owner

binux commented Oct 30, 2015

what platform you are using? windows, osx, linux
try run pyspider webui, any error/logs and can you visit localhost:5000.

@binux binux changed the title from 访问localhost出现错误 to cannot connect to webui. Oct 30, 2015

@Rajan

This comment has been minimized.

Rajan commented Nov 2, 2015

I'm facing the same issue.. basically pyspider doesn't work with phantomjs.

pyspider phantomjs
ERR_CONNECTION_REFUSED is what I see when I visit localhost:5000.
When I visit localhost:25555
It says... method not allowed!

@crushglass

This comment has been minimized.

crushglass commented Nov 3, 2015

I ran pyspider on windows.

When I ran "pyspider webui", I got a error message "DLL load failed". It's seems like there are some problems with official pycurl package. So I used unofficial package from
http://www.lfd.uci.edu/~gohlke/pythonlibs/ to instead.

Then I got a new error "AttributeError: 'NoneType' object has no attribute 'loader'".
The problem is a issue of python 3.4.1, the same as #74
So I updated python to 3.4.3 and ran pyspider.

Dang dang dang dang...! http://localhost:5000/ appearance!

It's really hard to run pyspider on windows, and really hard to express my mind in English. T^T

@crushglass crushglass closed this Nov 3, 2015

@dhcn

This comment has been minimized.

dhcn commented Nov 6, 2015

解决这个问题的真正办法,同时启动phantomjs和webui的方法不是官方的那个

pyspider  -c config.json phantomjs

而是:

pyspider --phantomjs-proxy="localhost:25555" -c config.json
@binux

This comment has been minimized.

Owner

binux commented Nov 7, 2015

@dhcn
The command pyspider phantomjs is to start phantomjs component alone.
and --phantomjs-proxy="localhost:25555" can been set in config.json.
and if you are running pyspider with all mode (by command pyspider or pyspider all) and phantomjs is started successfully, the argument phantomjs-proxy will be set automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment