Closed Bankaifan closed 2 years ago
Yes, had that before, not sure why you get it but:
Edit docker-compose.yml file located inside LMDS folder, find honeygain container definition and change value of "-device
I tried it, but didn’t work. Still get the same error.
Von: Mariusz Krezel @.> Gesendet: Wednesday, April 6, 2022 3:23:27 PM An: GreenFrogSB/LMDS @.> Cc: Bankaifan @.>; Author @.> Betreff: Re: [GreenFrogSB/LMDS] Honeygain Container not working (Issue #35)
Yes, had that before, not sure why you get it but: Edit docker-compose.yml file located inside LMDS folder, find honeygain container definition and change value of "-device " to something different, like "-device honeyproduction01", save the file and run: "docker-compose up -d --remove-orphans". Check if error is gone.
— Reply to this email directly, view it on GitHubhttps://github.com/GreenFrogSB/LMDS/issues/35#issuecomment-1090267140, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADUHGZLMDTZ2CUTX6K4TA3VDWF47ANCNFSM5SVSDRNQ. You are receiving this because you authored the thread.Message ID: @.***>
Ok, type "crontab -l" and check if you see something like this: "@reboot docker run --privileged --rm tonistiigi/binfmt --install x86_64" if not run: "crontab -e << @reboot docker run --privileged --rm tonistiigi/binfmt --install x86_64" and "sudo reboot" after reboot check if "crontab -l" gets the output we expect if yes check the container if the error is still there.
In my case this issue went away but cannot determine exactly why?
One thing I remember what might be the case - make sure your Raspbian is 64bit not 32bit - maybe that what it was when I was testing it - there was definitely something not working on 32bit one.
The crontab seems to be okay, but the error persists:
Von: Mariusz Krezel @.> Gesendet: Mittwoch, 6. April 2022 20:33 An: GreenFrogSB/LMDS @.> Cc: Bankaifan @.>; Author @.> Betreff: Re: [GreenFrogSB/LMDS] Honeygain Container not working (Issue #35)
Ok, type "crontab -l" and check if you see something like this: @.*** https://github.com/reboot docker run --privileged --rm tonistiigi/binfmt --install x86_64" if not run: "crontab -e << @reboot https://github.com/reboot docker run --privileged --rm tonistiigi/binfmt --install x86_64" and "sudo reboot" after reboot check if "crontab -l" gets the output we expect if yes check the container if the error is still there.
In my case this issue went away but cannot determine exactly why?
— Reply to this email directly, view it on GitHub https://github.com/GreenFrogSB/LMDS/issues/35#issuecomment-1090599010 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AADUHG6UL4G4IDKW4Q5EQ3DVDXKHNANCNFSM5SVSDRNQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AADUHG4JK7G6WHR4FQ26NJTVDXKHNA5CNFSM5SVSDRN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIEATQYQ.gif Message ID: @. @.> >
One more thing - as Honeygain is working using qemu amd64 emulation on ARM CPU - there is no other way to get it running on ARM chip, it will only work if underlined chip is 64bit capable.
I had the same issue as yours when I was testing all that on Raspberry Pi 3b running 32bit OS. Raspberry Pi 3b has BCM2710 chip (https://www.raspberrypi.com/news/raspberry-pi-os-64-bit/) which is 64bit capable but I was running Raspbian 32bit on it what caused the problem you are having.
I changed OS to Raspbian 64bit and all works ok.
As far I understand futex is related to qemu emulation what make me believe that if ARM chip is not 64bit it wont work or if it even is 64bit but you run 32bit OS on it will also fail runing container in emulation mode.
Not sure if I can come up with better reasoning.
I also try to run LMDS on Banana Pi that has 32bit ARM CPU and Honeygain container is not even starting on it. Error: TOU are accepted Error processing authorisation
An if qemu emulation is not started you get also this: _standard_initlinux.go:228: exec user process caused: exec format error
LMDS will deal with last issue but futex is more hardware limitations than software problem, but I might be wrong.
Thats the solution - I reinstalled with 64bit and Honeygain works fine now. Thank you!
Hi! I got an issue with the honeygain container, I have the following error, can you please help me?
Starting honeygain01test ...
ERROR: for honeygain01test a bytes-like object is required, not 'str'
ERROR: for honeygain01test a bytes-like object is required, not 'str' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/docker/api/client.py", line 261, in _raise_for_status response.raise_for_status() File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http+docker://localhost/v1.21/containers/0bc37e3cd407f600c9d5fec37bf11865dd76002f76403047f139739f0210cd12/start
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/compose/service.py", line 625, in start_container container.start() File "/usr/lib/python3/dist-packages/compose/container.py", line 241, in start return self.client.start(self.id, *options) File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 19, in wrapped return f(self, resource_id, args, **kwargs) File "/usr/lib/python3/dist-packages/docker/api/container.py", line 1095, in start self._raise_for_status(res) File "/usr/lib/python3/dist-packages/docker/api/client.py", line 263, in _raise_for_status raise create_api_error_from_http_exception(e) File "/usr/lib/python3/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception raise cls(e, response=response, explanation=explanation) docker.errors.APIError: 400 Client Error: Bad Request ("b'failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory: unknown'")
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in
Please update docker-compose and try again. You do have update option in the LMDS menu.
On Sun 26 Feb 2023, 09:06 Fives3Dprint, @.***> wrote:
Hi! I got an issue with the honeygain container, I got the following error, can you please help me?
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/local/lib/python3.9/dist-packages/docker/transport/unixconn.py", line 30, in connect sock.connect(self.unix_socket) FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 532, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise raise value.with_traceback(tb) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/local/lib/python3.9/dist-packages/docker/transport/unixconn.py", line 30, in connect sock.connect(self.unix_socket) urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version return self.version(api_version=False)["ApiVersion"] File "/usr/local/lib/python3.9/dist-packages/docker/api/daemon.py", line 181, in version return self._result(self._get(url), json=True) File "/usr/local/lib/python3.9/dist-packages/docker/utils/decorators.py", line 46, in inner return f(self, *args, kwargs) File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 237, in _get return self.get(url, self._set_request_timeout(kwargs)) File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 600, in get return self.request("GET", url, kwargs) File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 587, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 701, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 547, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/bin/docker-compose", line 8, in sys.exit(main()) File "/usr/local/lib/python3.9/dist-packages/compose/cli/main.py", line 81, in main command_func() File "/usr/local/lib/python3.9/dist-packages/compose/cli/main.py", line 200, in perform_command project = project_from_options('.', options) File "/usr/local/lib/python3.9/dist-packages/compose/cli/command.py", line 60, in project_from_options return get_project( File "/usr/local/lib/python3.9/dist-packages/compose/cli/command.py", line 152, in get_project client = get_client( File "/usr/local/lib/python3.9/dist-packages/compose/cli/docker_client.py", line 41, in get_client client = docker_client( File "/usr/local/lib/python3.9/dist-packages/compose/cli/docker_client.py", line 170, in docker_client client = APIClient(use_ssh_client=not use_paramiko_ssh, *kwargs) File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 197, in init* self._version = self._retrieve_server_version() File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version raise DockerException( docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
— Reply to this email directly, view it on GitHub https://github.com/GreenFrogSB/LMDS/issues/35#issuecomment-1445303957, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFVEPRBHS5UKU45CL6GQMDWZMMIBANCNFSM5SVSDRNQ . You are receiving this because you commented.Message ID: @.***>
Please update docker-compose and try again. You do have update option in the LMDS menu. … On Sun 26 Feb 2023, 09:06 Fives3Dprint, @.> wrote: Hi! I got an issue with the honeygain container, I got the following error, can you please help me? File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/local/lib/python3.9/dist-packages/docker/transport/unixconn.py", line 30, in connect sock.connect(self.unix_socket) FileNotFoundError: [Errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 489, in send resp = conn.urlopen( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 532, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/lib/python3/dist-packages/six.py", line 718, in reraise raise value.with_traceback(tb) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 394, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/local/lib/python3.9/dist-packages/docker/transport/unixconn.py", line 30, in connect sock.connect(self.unix_socket) urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 214, in _retrieve_server_version return self.version(api_version=False)["ApiVersion"] File "/usr/local/lib/python3.9/dist-packages/docker/api/daemon.py", line 181, in version return self._result(self._get(url), json=True) File "/usr/local/lib/python3.9/dist-packages/docker/utils/decorators.py", line 46, in inner return f(self, args, kwargs) File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 237, in _get return self.get(url, self._set_request_timeout(kwargs)) File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 600, in get return self.request("GET", url, kwargs) File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 587, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 701, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 547, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/docker-compose", line 8, in sys.exit(main()) File "/usr/local/lib/python3.9/dist-packages/compose/cli/main.py", line 81, in main command_func() File "/usr/local/lib/python3.9/dist-packages/compose/cli/main.py", line 200, in perform_command project = project_from_options('.', options) File "/usr/local/lib/python3.9/dist-packages/compose/cli/command.py", line 60, in project_from_options return get_project( File "/usr/local/lib/python3.9/dist-packages/compose/cli/command.py", line 152, in get_project client = get_client( File "/usr/local/lib/python3.9/dist-packages/compose/cli/docker_client.py", line 41, in get_client client = docker_client( File "/usr/local/lib/python3.9/dist-packages/compose/cli/docker_client.py", line 170, in docker_client client = APIClient(use_ssh_client=not use_paramiko_ssh, kwargs) File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 197, in init self._version = self._retrieve_server_version() File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version raise DockerException( docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) — Reply to this email directly, view it on GitHub <#35 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFVEPRBHS5UKU45CL6GQMDWZMMIBANCNFSM5SVSDRNQ . You are receiving this because you commented.Message ID: **@.***>
Now I have this error: docker-compose up -d Removing honeygain01test Recreating 0bc37e3cd407_honeygain01test ... error
ERROR: for 0bc37e3cd407_honeygain01test Cannot start service honeygain01test: f ailed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparm or profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exe c: no such file or directory: unknown
ERROR: for honeygain01test Cannot start service honeygain01test: failed to crea te shim task: OCI runtime create failed: runc create failed: unable to start con tainer process: error during container init: unable to apply apparmor profile: a pparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such fi le or directory: unknown ERROR: Encountered errors while bringing up the project.
Hi,
the container is up and running. But Honeygain does not work. docker-compose logs returns me this error honeygain01 | The futex facility returned an unexpected error code.
Any ideas?