block in <main>' api-1 | /dolos/db/schema.rb:13:in
dolos
DEFAULT CHARACTER SET utf8mb4
api-1 | Created database 'dolos'
api-1 | D, [2024-02-26T11:20:57.695774 #8] DEBUG -- : (31.8ms) DROP TABLE IF EXISTS active_storage_attachments
CASCADE
api-1 | D, [2024-02-26T11:20:57.696509 #8] DEBUG -- : (0.3ms) CREATE TABLE active_storage_attachments
(id
bigint NOT NULL AUTO_INCREMENT PRIMARY KEY, name
varchar(255) NOT NULL, record_type
varchar(255) NOT NULL, record_id
bigint NOT NULL, blob_id
bigint NOT NULL, created_at
datetime(6) NOT NULL, INDEX index_active_storage_attachments_on_blob_id
(blob_id
), UNIQUE INDEX index_active_storage_attachments_uniqueness
(record_type
, record_id
, name
, blob_id
)) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
api-1 exited with code 1
Describe the bug Hello! I am trying to host the Dolos api server locally on my machine for testing but I am having some issues with docker-compose and I am not quite sure if these issues are due to a configuration fault with my machine or with Dolos itself so I am making this issue to try to resolve this.
I am unable to run the api using docker-compose due to an error. Additionally the build fails using docker-compose unless i specify for it only to build the api.
To Reproduce Steps to reproduce the behavior:
When trying to build all of the docker images using docker-compose in the /dolos/ folder the build fails on the web step with error "failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory". I noticed that there is indeed no Dockerfile in the /web/ directory, so that is probably the issue there.
Additionally if I try to simply build the api by itself using docker-compose build api it succeeds as expected but when I try to run it using docker-compose up api, I get the following error:
Attaching to api-1 api-1 | /usr/local/bundle/gems/concurrent-ruby-1.2.3/lib/concurrent-ruby/concurrent/atomic/lock_local_var.rb:14: [BUG] Segmentation fault at 0x0065ffffa87b06c0 api-1 | ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [aarch64-linux] api-1 | api-1 | -- Control frame information ----------------------------------------------- .... And this error message continues for a while with lots of additional information ....
Your environment (please complete the following information):
Please run
dolos --version
and paste the result: