-
Notifications
You must be signed in to change notification settings - Fork 916
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
Docker. Squid is already running #19
Comments
It seems that you have just sent requests with squid successfully.If you can send requests with squid, just leave the messages alone.They are logs of squid. |
The problem is that when error "Squid is already running! " appears I can not sent request anymore...
I have to make docker stop and docker rm to delete container and up it again to make it work. |
I'm sorry that i can't reproduce this problem, may be this answer is useful to you.You can try to deploy haipproxy without docker, and see whether this problem will happen BTW, if you are familiar with python, you can use |
Fix issue SpiderClub#19 Docker. Squid is already running SpiderClub#19
This information may be useful to you: I was encountered the same error message, because I set the port for Redis on host to 6380, due to conflict with another existing Redis on 6379. The haipproxy container does not immediately fail, instead had been running normally for several hours, and after a computer sleep-wake cycle, completely refuse to restart. The problem docker-compose: version: '2.0'
services:
redis:
image: redis
ports:
- '6380:6379' # I fixed 6380 to 6379 later
command: >
--requirepass 123456
splash:
image: scrapinghub/splash
ports:
- '8050:8050'
haipproxy:
build: .
command: sh run.sh
volumes:
- .:/haipproxy
ports:
- '3128:3128'
links:
- redis
- splash I also modified the dockerfile: ( because the original one cannot build properly the time I was using ) FROM ubuntu:18.04
MAINTAINER ResolveWang <resolvewang@foxmail.com>
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
RUN apt update
RUN apt install squid -yq
RUN sed -i 's/http_access deny all/http_access allow all/g' /etc/squid/squid.conf
RUN cp /etc/squid/squid.conf /etc/squid/squid.conf.backup
RUN apt install python3 python3-pip -yq
RUN which python3|xargs -i ln -s {} /usr/bin/python
RUN which pip3|xargs -i ln -s {} /usr/bin/pip
COPY . /haipproxy
WORKDIR /haipproxy
RUN python -m pip install --upgrade pip
RUN pip install -i https://pypi.douban.com/simple/ -r requirements.txt
CMD ['python', 'crawler_booter.py', '--usage', 'crawler', 'common'] |
I was wrong, the haipproxy container still refuse to start due to And I tried the solution in answer:
The |
Hi.
I am trying to use haipproxy with docker:
on Ubuntu 16.04.3 LTS
And I am constantly getting error:
I added to docker-compose:
but without too much success:
Is it normal? Or maybe I should change some other settings?
The text was updated successfully, but these errors were encountered: