You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/10 14:31:54 UTC

[GitHub] [airflow] potiuk commented on issue #15312: Docker image 2.0.1 is broken (docker-compose up airflow-init fails)

potiuk commented on issue #15312:
URL: https://github.com/apache/airflow/issues/15312#issuecomment-817145669


   I cannot reproduce it Everything works fine for me. 
   
   For me it looks like if you have - most likely - very very old host machine (I understand this is macmini is really old and has no AVX instructions supported. If your mac mini was released in 2006/2007 it has Core Solo processor, that has no AVX support I am afraid and it is old enough for us to not worry about it.
   
   Here is the root cause:
   
   ```
   airflow-init_1       | /entrypoint: line 192:    12 Illegal instruction     (core dumped) airflow db upgrade
   ```
   
   and a
   ```
   irflow-init_1       | /entrypoint: line 129:    21 Illegal instruction     (core dumped) airflow users create --username 
   ```
   
   This looks very similarly to this error:
   
   https://tech.amikelive.com/node-887/how-to-resolve-error-illegal-instruction-core-dumped-when-running-import-tensorflow-in-a-python-program/
   
   You can follow this is and run the command `more /proc/cpuinfo | grep flags` in any docker container and compare it with mine. For example: `docker run -it --entrypoint /bin/bash apache/airflow:2.0.1 -c 'more /proc/cpuinfo | grep flags'`. 
   
   Mine:
   ```
   flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities
   ```
   
   The root cause of the problem is likely that one of Airflow dependencies (I guess pandas or numpy) switched to support newer version of instructions which your old mac mini does not support.
   
   If this is the case, I am afraid we will not be able to do much if that's the case, you can try to build your own version of the image where you downgrade pandas/numpy but 
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org