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

Cannot run the Docker app on macOS #29

Open
cklamra opened this issue Dec 13, 2021 · 0 comments
Open

Cannot run the Docker app on macOS #29

cklamra opened this issue Dec 13, 2021 · 0 comments

Comments

@cklamra
Copy link

cklamra commented Dec 13, 2021

I haven't been able to run the app on macOS 10.15. Running docker-compose build would result in following errors:

#75 86.97 c++: internal compiler error: Killed (program cc1plus)
#75 86.97 Please submit a full bug report,
#75 86.97 with preprocessed source if appropriate.
#75 86.97 See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
#75 87.26 libwccl/CMakeFiles/wccl.dir/build.make:2070: recipe for target 'libwccl/CMakeFiles/wccl.dir/variables.cpp.o' failed
#75 87.26 make[2]: *** [libwccl/CMakeFiles/wccl.dir/variables.cpp.o] Error 4

This was probably caused by running out of memory (Docker on Mac also runs a Linux VM). Assigning 16 GB of RAM to Docker wouldn't solve the problem; I have managed to build the app after changing make -j to make -j1 in the Dockerfile.

There was another problem - running python3 stuff/python/liner2rmq.py -t "Pani Ala Nowak mieszkw w Zielonej Górze" would result in:

[INFO] Temp route: route-XAYR69
[INFO] Temp input file: /var/folders/dz/7xrvhr2s43j71_k_f2zch2fw0000gn/T/hl833qwm
[INFO] Sent msg 'route-XAYR69 /var/folders/dz/7xrvhr2s43j71_k_f2zch2fw0000gn/T/hl833qwm' to liner2-input
[INFO] Temp output file: b'ERROR'

Logs on the server side:

liner2_1    |  INFO [pool-1-thread-4] (RabbitMqWorker.java:105) - Received path: '/var/folders/dz/7xrvhr2s43j71_k_f2zch2fw0000gn/T/c5tl6vhc'
liner2_1    | ERROR [pool-1-thread-4] (RabbitMqWorker.java:81) - An exception occured
liner2_1    | java.io.FileNotFoundException: /var/folders/dz/7xrvhr2s43j71_k_f2zch2fw0000gn/T/c5tl6vhc (No such file or directory)

stuff/python/liner2rmq.py uses the OS default temp dir, which in case of macOS is not /tmp. In my case running echo $TMPDIR yields
/var/folders/dz/7xrvhr2s43j71_k_f2zch2fw0000gn/T/.

I have changed tempfile._get_default_tempdir() in liner2rmq.py (line 37) to '\tmp', which solved the problem.
Mounting the default temp directory to a volume also worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant