Skip to content
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

error building image #136

Open
RME-Systems opened this issue Jan 22, 2023 · 4 comments
Open

error building image #136

RME-Systems opened this issue Jan 22, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@RME-Systems
Copy link

Before reporting a bug, please see our FAQ in FAQ.md!

Description

when I give the command:
docker build proxy/ -t whatsapp_proxy:1.0
I get the following error:

Sending build context to Docker daemon 18.43kB
Step 1/27 : FROM haproxy:lts-alpine
---> cf4bb5e21f49
Step 2/27 : USER root
---> Using cache
---> 5e6f31115683
Step 3/27 : RUN apk --no-cache add curl openssl jq bash
---> Running in 30daa02b354f
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/community: temporary error (try again later)
ERROR: unable to select packages:
bash (no such package):
required by: world[bash]
curl (no such package):
required by: world[curl]
jq (no such package):
required by: world[jq]
openssl (no such package):
required by: world[openssl]
The command '/bin/sh -c apk --no-cache add curl openssl jq bash' returned a non-zero code: 4
also try with:
docker build --no-cache proxy/ -t whatsapp-proxy:1.0
and i get the same error

Failed Step

  1. Build the proxy host container

More Details

operating system: ubuntu 22.4 x64
docker version: Docker version 20.10.17, build 100c70180f

@slawlor
Copy link
Contributor

slawlor commented Jan 23, 2023

We've seen reports of this issue but have been unable to reproduce it locally. For now as a workaround, it'd be best to use the pre-built image hosted at https://hub.docker.com/r/facebook/whatsapp_proxy

This can be retrieved with

docker pull facebook/whatsapp_proxy

@slawlor slawlor added the bug Something isn't working label Jan 23, 2023
@RME-Systems
Copy link
Author

Hello, I think the problem is because I installed docker with the snap install docker command.
I also tried it with the prebuilt image, but it gave me another error.
I deleted everything and followed the steps of:
https://docs.docker.com/engine/install/ubuntu/
and it worked for me. I don't know if snap doesn't install some component or something I'm very confused

@jp259
Copy link

jp259 commented Jan 24, 2023

Before reporting a bug, please see our FAQ in FAQ.md!

Description

when I give the command: docker build proxy/ -t whatsapp_proxy:1.0 I get the following error:

Sending build context to Docker daemon 18.43kB Step 1/27 : FROM haproxy:lts-alpine ---> cf4bb5e21f49 Step 2/27 : USER root ---> Using cache ---> 5e6f31115683 Step 3/27 : RUN apk --no-cache add curl openssl jq bash ---> Running in 30daa02b354f fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/main: temporary error (try again later) WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.17/community: temporary error (try again later) ERROR: unable to select packages: bash (no such package): required by: world[bash] curl (no such package): required by: world[curl] jq (no such package): required by: world[jq] openssl (no such package): required by: world[openssl] The command '/bin/sh -c apk --no-cache add curl openssl jq bash' returned a non-zero code: 4 also try with: docker build --no-cache proxy/ -t whatsapp-proxy:1.0 and i get the same error

Failed Step

  1. Build the proxy host container

More Details

operating system: ubuntu 22.4 x64 docker version: Docker version 20.10.17, build 100c70180f

fix isus

@kingofnull
Copy link

Hello, I think the problem is because I installed docker with the snap install docker command. I also tried it with the prebuilt image, but it gave me another error. I deleted everything and followed the steps of: https://docs.docker.com/engine/install/ubuntu/ and it worked for me. I don't know if snap doesn't install some component or something I'm very confused

Get rid of the docker just install Haproxy directly on your server. it's very straightforward. Like it : https://github.com/kingofnull/whatsapp-proxy-behind-forward-proxy

Personally I believe WhatsApp proxy is a piece of junk. They just copied their load balancing proxy config and introduce it as a feature.
Which proxy needs 6 ports to run? Why it doesn't support ordinary Socks5 and HTTP? Why it doesn't support authentication?
And finally it doesn't hide it's footprints , so your server will be blocked in a blink!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@slawlor @kingofnull @RME-Systems @jp259 and others