Closed alevikpes closed 2 years ago
To make apt work you need to add at least one source in your recipe. Otherwise it will not know where to get the packages from. It's recommended to use the same sources that are configured in the host system.
apt:
arch: amd64
allow_unauthenticated: true
sources: []
Thanks for the tip. I would actually expect, this would be filled in automatically, since it is the required argument. Where is this part in the code? Is it possible to make reading the list
file from /etc/apt/
automatically?
After fixing the sources issue, I got the following docker error:
WARNING:root:Unable to locate the application desktop entry: org.alevikpes.media-player.desktop
INFO:main:Running deploy record generation
INFO:root:Writing deploy record to: .bundle.yml
INFO:main:Running AppDir tests
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.8-py3.8.egg/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.8-py3.8.egg/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/local/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/local/lib/python3.8/site-packages/docker-5.0.3-py3.8.egg/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.8/site-packages/requests-2.27.1-py3.8.egg/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.8-py3.8.egg/urllib3/connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.8-py3.8.egg/urllib3/util/retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.8-py3.8.egg/urllib3/packages/six.py", line 769, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.8-py3.8.egg/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.8-py3.8.egg/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/local/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/usr/local/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/usr/local/lib/python3.8/site-packages/docker-5.0.3-py3.8.egg/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.8/site-packages/docker-5.0.3-py3.8.egg/docker/api/client.py", line 214, in _retrieve_server_version
return self.version(api_version=False)["ApiVersion"]
File "/usr/local/lib/python3.8/site-packages/docker-5.0.3-py3.8.egg/docker/api/daemon.py", line 181, in version
return self._result(self._get(url), json=True)
File "/usr/local/lib/python3.8/site-packages/docker-5.0.3-py3.8.egg/docker/utils/decorators.py", line 46, in inner
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/docker-5.0.3-py3.8.egg/docker/api/client.py", line 237, in _get
return self.get(url, **self._set_request_timeout(kwargs))
File "/usr/local/lib/python3.8/site-packages/requests-2.27.1-py3.8.egg/requests/sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests-2.27.1-py3.8.egg/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests-2.27.1-py3.8.egg/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests-2.27.1-py3.8.egg/requests/adapters.py", line 501, 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/local/bin/appimage-builder", line 33, in <module>
sys.exit(load_entry_point('appimage-builder==0.9.2', 'console_scripts', 'appimage-builder')())
File "/usr/local/lib/python3.8/site-packages/appimage_builder-0.9.2-py3.8.egg/appimagebuilder/__main__.py", line 58, in __main__
invoker.execute(commands)
File "/usr/local/lib/python3.8/site-packages/appimage_builder-0.9.2-py3.8.egg/appimagebuilder/invoker.py", line 41, in execute
command()
File "/usr/local/lib/python3.8/site-packages/appimage_builder-0.9.2-py3.8.egg/appimagebuilder/commands/run_test.py", line 31, in __call__
test_cases = self._load_tests(self.tests_settings())
File "/usr/local/lib/python3.8/site-packages/appimage_builder-0.9.2-py3.8.egg/appimagebuilder/commands/run_test.py", line 50, in _load_tests
test = ExecutionTest(
File "/usr/local/lib/python3.8/site-packages/appimage_builder-0.9.2-py3.8.egg/appimagebuilder/modules/test/execution_test.py", line 37, in __init__
self.client = docker.from_env()
File "/usr/local/lib/python3.8/site-packages/docker-5.0.3-py3.8.egg/docker/client.py", line 96, in from_env
return cls(
File "/usr/local/lib/python3.8/site-packages/docker-5.0.3-py3.8.egg/docker/client.py", line 45, in __init__
self.api = APIClient(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/docker-5.0.3-py3.8.egg/docker/api/client.py", line 197, in __init__
self._version = self._retrieve_server_version()
File "/usr/local/lib/python3.8/site-packages/docker-5.0.3-py3.8.egg/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'))
Tests doesn't work inside Docker as they require a docker container to run the test. Try running it using --skip-test
Closing this as solved. Please feel free to reopen if required
Hi! I am trying to setup a docker image for running
appimage-builder
for my app. I use the Dockerfile from theappimage-builder
repo and add there my own stuff, because I was not able to make the original working.So, the building docker image works fine, but when I try running it I get error. Here is the last part of the log:
I do not understand this error and can't find any useful information about it.
It fails on the script execution of my recipe:
And here is the Dockerfile I am using: