Hi!
I haven’t been able to install it on my RPI3 with Home Assistant OS 6.6 and core-2021.12.7
It seems the device hangs and restarts after a while (2 hours, maybe). According to the Supervisor logs the ha-sip started building when instructed. For some reason the current supervisor logs don’t show information from that time.
All I can find in the home-assistant.log file is this:
[supervisor.misc.tasks] Watchdog found a problem with Home Assistant Docker!
and from the home-assistant.log.1 file:
Failed to to call /addons/c7744bff_ha-sip/start - Image c7744bff/aarch64-addon-ha-sip:1.3 does not exist for addon
-sip
Could it be that the RPi3 does not have enough memory to build what it is instructed to do on the Dockerfile?
I have tried several times to do this, but I haven’t been able to catch something else as the logs are overwritten. But I seem to recall from the other night something about the make command issuing an error, but I’m not sure about it.
Any help is appreciated.
Thank you
EDIT:
For some reason, now there is new info on the Supervisor log that seems related to the add-on.
mkdir -p /usr/local/include/
for d in pjlib pjlib-util pjnath pjmedia pjsip; do \
cp -RLf $d/include/* /usr/local/include/; \
done
mkdir -p /usr/local/lib/pkgconfig
sed -e "s!@PREFIX@!/usr/local!" libpjproject.pc.in | \
sed -e "s!@INCLUDEDIR@!/usr/local/include!" | \
sed -e "s!@LIBDIR@!/usr/local/lib!" | \
sed -e "s/@PJ_VERSION@/2.11-dev/" | \
sed -e "s!@PJ_INSTALL_LDFLAGS@!-L/usr/local/lib -lpjsua2 -lstdc++ -lpjsua -lpjsip-ua -lpjsip-simple -lpjsip -lpjmedia-codec -lpjmedia -lpjmedia-videodev -lpjmedia-audiodev -lpjmedia -lpjnath -lpjlib-util -lpj!" | \
sed -e "s!@PJ_INSTALL_LDFLAGS_PRIVATE@!-lsrtp -lresample -lgsmcodec -lspeex -lilbccodec -lg7221codec -lyuv -L/lib -lm -lrt -lpthread !" | \
sed -e "s!@PJ_INSTALL_CFLAGS@!-I/usr/local/include -DPJ_AUTOCONF=1 -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1!" > /usr/local/lib/pkgconfig/libpjproject.pc
+ cd pjsip-apps/src/swig
+ make python
make --no-print-directory -C python
swig -I../../../../pjlib/include -I../../../../pjlib-util/include -I../../../../pjmedia/include -I../../../../pjsip/include -I../../../../pjnath/include -c++ -w312 -python -o pjsua2_wrap.cpp ../pjsua2.i
python3 setup.py build
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.9
copying pjsua2.py -> build/lib.linux-aarch64-3.9
running build_ext
building '_pjsua2' extension
creating build/temp.linux-aarch64-3.9
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c pjsua2_wrap.cpp -o build/temp.linux-aarch64-3.9/pjsua2_wrap.o -g -O2 -DPJ_AUTOCONF=1 -I/include -O2 -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC -DPJMEDIA_USE_OLD_FFMPEG=1 -DPJMEDIA_USE_OLD_FFMPEG=1 -I/pjproject/pjlib/include -I/pjproject/pjlib-util/include -I/pjproject/pjnath/include -I/pjproject/pjmedia/include -I/pjproject/pjsip/include
aarch64-linux-gnu-gcc: fatal error: Killed signal terminated program cc1plus
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
make[1]: *** [Makefile:37: _pjsua2.so] Error 1
make: *** [Makefile:29: python] Error 2
Removing intermediate container e2e6b6420f31
22-01-04 12:20:55 ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-18240' coro=<AddonManager.install() done, defined at /usr/src/supervisor/supervisor/jobs/decorator.py:71> exception=AddonsError()>
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/docker/addon.py", line 522, in _build
image, log = self.sys_docker.images.build(
File "/usr/local/lib/python3.9/site-packages/docker/models/images.py", line 285, in build
raise BuildError(chunk['error'], result_stream)
docker.errors.BuildError: The command '/bin/bash -o pipefail -c set -xe && git clone https://github.com/pjsip/pjproject.git && cd pjproject && git reset --hard 4dc183bf373535a9cb37ed6f2cc6b510bdb3901b && ./configure --enable-shared --disable-libwebrtc && make && make dep && make install && cd pjsip-apps/src/swig && make python && make -C python install && ldconfig' returned a non-zero code: 2
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/addons/__init__.py", line 181, in install
await addon.instance.install(store.version, store.image)
File "/usr/src/supervisor/supervisor/utils/__init__.py", line 33, in wrap_api
return await method(api, *args, **kwargs)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/supervisor/supervisor/docker/addon.py", line 506, in _install
self._build(version)
File "/usr/src/supervisor/supervisor/docker/addon.py", line 542, in _build
raise DockerError() from err
supervisor.exceptions.DockerError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 108, in wrapper
raise err
File "/usr/src/supervisor/supervisor/jobs/decorator.py", line 106, in wrapper
return await self._method(*args, **kwargs)
File "/usr/src/supervisor/supervisor/addons/__init__.py", line 184, in install
raise AddonsError() from err
supervisor.exceptions.AddonsError