scrapinghub / portia

Visual scraping for Scrapy
BSD 3-Clause "New" or "Revised" License
9.22k stars 1.41k forks source link

No Such Resource: File not found. #865

Closed ghost closed 5 years ago

ghost commented 5 years ago

I tried this command:

git clone https://github.com/scrapinghub/portia/
cd portia
docker-compose up

and after that, I opened http://localhost:9001 by chrome, but No Such Resources message occurred. What's the problem, and how to fix them?

This is the portia_app_1 logs:

Recreating portia_app_1 ... done
Attaching to portia_app_1
app_1  | + action=/app/docker/entry
app_1  | + shift
app_1  | + '[' -z /app/docker/entry ']'
app_1  | + case $action in
app_1  | + exec /app/docker/entry start-dev
app_1  | + action=start-dev
app_1  | + shift
app_1  | + '[' -z start-dev ']'
app_1  | + case $action in
app_1  | + _run
app_1  | + service nginx start
app_1  | + _set_env
app_1  | + path=/app/portia_server:/app/slyd:/app/slybot
app_1  | + export PYTHONPATH=/app/portia_server:/app/slyd:/app/slybot
app_1  | + PYTHONPATH=/app/portia_server:/app/slyd:/app/slybot
app_1  | + echo /app/portia_server:/app/slyd:/app/slybot
app_1  | /app/portia_server:/app/slyd:/app/slybot
app_1  | + /app/portia_server/manage.py runserver
app_1  | + /app/slyd/bin/slyd -p 9002 -r /app/portiaui/dist
app_1  | 2018-08-07 06:07:05+0000 [-] Log opened.
app_1  | 2018-08-07 06:07:05.051307 [-] Splash version: 3.2
app_1  | 2018-08-07 06:07:05.051612 [-] Qt 5.9.1, PyQt 5.9, WebKit 602.1, sip 4.19.3, Twisted 17.9.0, Lua 5.2
app_1  | 2018-08-07 06:07:05.051665 [-] Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609]
app_1  | 2018-08-07 06:07:05.051718 [-] Open files limit: 65536
app_1  | 2018-08-07 06:07:05.051759 [-] Can't bump open files limit
app_1  | 2018-08-07 06:07:05.153902 [-] Xvfb is started: ['Xvfb', ':1866928174', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']
app_1  | QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
app_1  | 2018-08-07 06:07:05.979383 [-] Site starting on 9002
app_1  | 2018-08-07 06:07:05.979500 [-] Starting factory <slyd.server.Site object at 0x7f3b42ae1c18>
app_1  | 2018-08-07 06:07:26.169396 [-] "127.0.0.1" - - [07/Aug/2018:06:07:25 +0000] "GET / HTTP/1.0" 404 145 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"
ghost commented 5 years ago

I gave up to use docker-compose, and instead, I executed this command:

$ docker pull scrapinghub/portia
$ docker run -i -t --rm -v portia_projects:/app/data/projects:rw -p 9001:9001 scrapinghub/portia

and it was succeed.

Alluuu commented 5 years ago

I'm getting the same issue with running it with docker compose, but don't just want to give up yet..

philtsip commented 5 years ago

+1 - looks like the same issue as: https://github.com/scrapinghub/portia/issues/876

Lu233 commented 4 years ago

same issue, anybody have updates?

fbndny commented 4 years ago

Had the same issue, but changing the compose file solved it for me:

version: '3'
services:
  portia:
    image: scrapinghub/portia:latest
    volumes:
      - ./data/projects:/app/data/projects:rw