Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

trap invalid opcode - causing dimension docker container not to start #468

Open
webgps opened this issue Jan 29, 2022 · 3 comments
Open

Comments

@webgps
Copy link

webgps commented Jan 29, 2022

Hello there!

Recently tried to install dimension in synapse running in docker https://github.com/spantaleev/matrix-docker-ansible-deploy

Getting the errors about _node_modules/sharp/vendor/8.11.3/linuxmusl-x64/lib/libvips-cpp.so.42 causing trap invalid opcode

Full log about the error after starting the docker container:

Jan 29 09:37:01 synapse1 matrix-dimension[77020]: Starting matrix-dimension
Jan 29 09:37:03 synapse1 matrix-dimension[77020]: Sat, 29 Jan 2022 14:37:03 GMT [INFO] [index] Starting dimension v1.0.0
Jan 29 09:37:03 synapse1 matrix-dimension[77020]: Sat, 29 Jan 2022 14:37:03 GMT [INFO] [DimensionStore] Updating schema...
Jan 29 09:37:03 synapse1 matrix-dimension[77020]: Sat, 29 Jan 2022 14:37:03 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): CREATE TABLE IF NOT EXISTS "SequelizeMeta" ("name" VARCHAR(255) NOT NULL UNIQUE , PRIMARY KEY ("name"));
Jan 29 09:37:03 synapse1 matrix-dimension[77020]: Sat, 29 Jan 2022 14:37:03 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT i.relname AS name, ix.indisprimary AS primary, ix.indisunique AS unique, ix.indkey AS indkey, array_agg(a.attnum) as column_indexes, array_agg(a.attname) AS column_names, pg_get_indexdef(ix.indexrelid) AS definition FROM pg_class t, pg_class i, pg_index ix, pg_attribute a WHERE t.oid = ix.indrelid AND i.oid = ix.indexrelid AND a.attrelid = t.oid AND t.relkind = 'r' and t.relname = 'SequelizeMeta' GROUP BY i.relname, ix.indexrelid, ix.indisprimary, ix.indisunique, ix.indkey ORDER BY i.relname;
Jan 29 09:37:03 synapse1 matrix-dimension[77020]: Sat, 29 Jan 2022 14:37:03 GMT [DEBUG] [DimensionStore [SQL]] Executing (default): SELECT "name" FROM "SequelizeMeta" AS "SequelizeMeta" ORDER BY "SequelizeMeta"."name" ASC;
Jan 29 09:37:03 synapse1 matrix-dimension[77020]: Sat, 29 Jan 2022 14:37:03 GMT [INFO] [DimensionStore] Applied schemas:  []
Jan 29 09:37:03 synapse1 kernel: traps: node[77089] trap invalid opcode ip:7fa1c022acfd sp:7ffddf350ce0 error:0 in libvips-cpp.so.42[7fa1bff09000+afe000]
Jan 29 09:37:03 synapse1 systemd[1]: Started Process Core Dump (PID 77160/UID 0).
Jan 29 09:37:05 synapse1 systemd-coredump[77161]: Process 77089 (node) of user 1000 dumped core.#012#012Stack trace of thread 1:#012#0  0x00007fa1c022acfd n/a (/home/node/matrix-dimension/node_modules/sharp/vendor/8.11.3/linuxmusl-x64/lib/libvips-cpp.so.42)
Jan 29 09:37:05 synapse1 systemd[1]: systemd-coredump@6-77160-0.service: Succeeded.
Jan 29 09:37:05 synapse1 containerd[885]: time="2022-01-29T09:37:05.604332473-05:00" level=info msg="shim disconnected" id=80251753a1e657aa42d42cfbeb45e93833553344302ca1280757eb5e98ecce91
Jan 29 09:37:05 synapse1 containerd[885]: time="2022-01-29T09:37:05.604481545-05:00" level=error msg="copy shim log" error="read /proc/self/fd/51: file already closed"
Jan 29 09:37:05 synapse1 dockerd[1122]: time="2022-01-29T09:37:05.604928935-05:00" level=info msg="ignoring event" container=80251753a1e657aa42d42cfbeb45e93833553344302ca1280757eb5e98ecce91 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Jan 29 09:37:05 synapse1 kernel: vethedd7c9d: renamed from eth0
Jan 29 09:37:05 synapse1 kernel: br-b84b7adda646: port 11(veth5c14f73) entered disabled state
Jan 29 09:37:05 synapse1 systemd-udevd[77181]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Jan 29 09:37:05 synapse1 NetworkManager[859]: <info>  [1643467025.7166] manager: (vethedd7c9d): new Veth device (/org/freedesktop/NetworkManager/Devices/142)
Jan 29 09:37:05 synapse1 kernel: br-b84b7adda646: port 11(veth5c14f73) entered disabled state
Jan 29 09:37:05 synapse1 kernel: device veth5c14f73 left promiscuous mode
Jan 29 09:37:05 synapse1 kernel: br-b84b7adda646: port 11(veth5c14f73) entered disabled state
Jan 29 09:37:05 synapse1 NetworkManager[859]: <info>  [1643467025.7414] device (veth5c14f73): released from master device br-b84b7adda646
Jan 29 09:37:05 synapse1 systemd[1]: run-docker-netns-39622a536fe0.mount: Succeeded.
Jan 29 09:37:05 synapse1 systemd[1]: var-lib-docker-overlay2-1bc58f5b14ee686b9a9f20cf7a6d2255ce3c2c0eb54ebb3fa73c74413de9b0a4-merged.mount: Succeeded.
Jan 29 09:37:05 synapse1 systemd[1]: matrix-dimension.service: Main process exited, code=exited, status=132/n/a
Jan 29 09:37:05 synapse1 systemd[1]: matrix-dimension.service: Failed with result 'exit-code'

Can somebody give some advice how to workaround this, on a RockyLinux8 (Centos8) Virtualmachine running on ESXi 5.5

Thank you in advance!

@webgps
Copy link
Author

webgps commented Jan 30, 2022

tried on ubuntu 20.04.3 LTS, the same error occurs
Jan 30 13:35:49 wgsynapse1 kernel: traps: node[13568] trap invalid opcode ip:7febe23accfd sp:7ffdf73466e0 error:0 in libvips-cpp.so.42[7febe208b000+afe000]

@webgps
Copy link
Author

webgps commented Jan 30, 2022

Okay.. Ithink I need SSE4.2 (becouse of libvips...) instruction set in my CPU... but I don't have it...( AMD Opteron 6176 SE)
Can I workaround this instead of buying new CPU-s ?

@tomowad
Copy link

tomowad commented Feb 9, 2022

Interested to hear if you find a workaround for this.

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

No branches or pull requests

2 participants