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

Fatal Ingestion Error when uploading an .epub file #35

Open
davidwinterstein opened this issue Jun 27, 2022 · 0 comments
Open

Fatal Ingestion Error when uploading an .epub file #35

davidwinterstein opened this issue Jun 27, 2022 · 0 comments

Comments

@davidwinterstein
Copy link

Hi, we are currently testing this docker setup and encountered an error when trying to upload an .epub file in the Backend (Admin Mode) section on the "Texts" subpage in a project.

After clicking + Add a new text and selecting the file, the log on the right reads "Connecting to Manifold websocket..." for a couple of seconds:
Screenshot from 2022-06-27 13-06-00_anon

Before changing the whole side bar to the following error message:
Screenshot from 2022-06-27 13-02-25_anon

The network log in the browser's dev tools shows two seperate 404 errors when trying to connect to /cable, which also show in the docker logs of the proxy container.
Trying to connect to the socket via curl from the proxy container also yields a 404 error:

root@92b1d544421f:/# curl --verbose --unix-socket /manifold_sockets/manifold-cable http://manifold.xxxxx/cable
* Expire in 0 ms for 6 (transfer 0x5560efd1dfb0)
*   Trying /manifold_sockets/manifold-cable...
* Expire in 200 ms for 4 (transfer 0x5560efd1dfb0)
* Connected to manifold.xxxxx (/manifold_sockets/manifold-cable) port 80 (#0)
> GET /cable HTTP/1.1
> Host: manifold.xxxxx
> User-Agent: curl/7.64.0
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< Content-Type: text/plain
< Content-Length: 14
< 
* Connection #0 to host manifold.xxxxx left intact
Page not found

Here are the complete docker logs from just before clicking ✓ Continue after selecting the file to receiving the error:

api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.731562 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]   User Load (0.5ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", "02ff7c87-6dc9-4798-8a13-6ee4e41af467"], ["LIMIT", 1]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.733133 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]   HABTM_Roles Load (0.2ms)  SELECT "users_roles".* FROM "users_roles" WHERE "users_roles"."user_id" = $1  [["user_id", "02ff7c87-6dc9-4798-8a13-6ee4e41af467"]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.734164 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]   Role Load (0.3ms)  SELECT "roles".* FROM "roles" WHERE "roles"."id" = $1  [["id", "afe9f45a-c8fe-4326-9065-f4a882a20fc7"]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.735239 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]   Favorite Load (0.3ms)  SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = $1  [["user_id", "02ff7c87-6dc9-4798-8a13-6ee4e41af467"]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.736788 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]   Project Load (0.5ms)  SELECT "projects".* FROM "projects" WHERE "projects"."slug" = $1 LIMIT $2  [["slug", "e800fa37-04f8-4c1a-b673-dccd5c38d479"], ["LIMIT", 1]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.738285 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]   Project Load (0.5ms)  SELECT "projects".* FROM "projects" WHERE "projects"."id" = $1 LIMIT $2  [["id", "e800fa37-04f8-4c1a-b673-dccd5c38d479"], ["LIMIT", 1]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.744034 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]    (0.3ms)  BEGIN
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.746058 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]   Ingestion Create (1.7ms)  INSERT INTO "ingestions" ("state", "log", "creator_id", "project_id", "created_at", "updated_at", "source_data") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["state", "sleeping"], ["log", "{}"], ["creator_id", "02ff7c87-6dc9-4798-8a13-6ee4e41af467"], ["project_id", "e800fa37-04f8-4c1a-b673-dccd5c38d479"], ["created_at", "2022-06-27 11:19:55.743194"], ["updated_at", "2022-06-27 11:19:55.743194"], ["source_data", "{\"id\":\"770595fbc0880ea92c732f53a37231e3\",\"storage\":\"cache\",\"metadata\":{\"filename\":\"xxxxx.epub\",\"size\":1163438,\"mime_type\":\"application/epub+zip\"}}"]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.746873 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]    (0.4ms)  COMMIT
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.750704 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]    (0.3ms)  BEGIN
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.751577 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]   Ingestion Update (0.6ms)  UPDATE "ingestions" SET "updated_at" = $1, "source_data" = $2 WHERE "ingestions"."id" = $3  [["updated_at", "2022-06-27 11:19:55.749772"], ["source_data", "{\"id\":\"ingestion/a/3/9/a39a6d8a-0483-499f-b479-7e4a2a56a6f3/source/34cfb6d19f962f9509a7df4150beaffd.epub\",\"storage\":\"store\",\"metadata\":{\"filename\":\"xxxxx.epub\",\"size\":1163438,\"mime_type\":\"application/epub+zip\"}}"], ["id", "a39a6d8a-0483-499f-b479-7e4a2a56a6f3"]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.752172 #44] DEBUG -- : [4c00d962-7751-4698-997f-895080401fcb]    (0.3ms)  COMMIT
api_rails_1_c4d8012550f0 | I, [2022-06-27T11:19:55.754502 #44]  INFO -- : [4c00d962-7751-4698-997f-895080401fcb] method=POST path=/api/v1/projects/e800fa37-04f8-4c1a-b673-dccd5c38d479/relationships/ingestions format=*/* controller=API::V1::IngestionsController action=create status=201 duration=24.75 view=1.36 db=5.95 request_time=2022-06-27 11:19:55 UTC
proxy_1_81c3f2c7af2c | 192.168.0.1 - - [27/Jun/2022:11:19:55 +0000] "POST /api/v1/projects/e800fa37-04f8-4c1a-b673-dccd5c38d479/relationships/ingestions? HTTP/1.1" 201 966 "https://manifold.xxxxx/backend/projects/e800fa37-04f8-4c1a-b673-dccd5c38d479/texts/ingestions/new" "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" "87.122.188.72"
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.878785 #44] DEBUG -- : [4b7feea6-72b1-4f10-970d-f344e8b291d7]   User Load (0.7ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", "02ff7c87-6dc9-4798-8a13-6ee4e41af467"], ["LIMIT", 1]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.880937 #44] DEBUG -- : [4b7feea6-72b1-4f10-970d-f344e8b291d7]   HABTM_Roles Load (0.4ms)  SELECT "users_roles".* FROM "users_roles" WHERE "users_roles"."user_id" = $1  [["user_id", "02ff7c87-6dc9-4798-8a13-6ee4e41af467"]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.882301 #44] DEBUG -- : [4b7feea6-72b1-4f10-970d-f344e8b291d7]   Role Load (0.4ms)  SELECT "roles".* FROM "roles" WHERE "roles"."id" = $1  [["id", "afe9f45a-c8fe-4326-9065-f4a882a20fc7"]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.883669 #44] DEBUG -- : [4b7feea6-72b1-4f10-970d-f344e8b291d7]   Favorite Load (0.3ms)  SELECT "favorites".* FROM "favorites" WHERE "favorites"."user_id" = $1  [["user_id", "02ff7c87-6dc9-4798-8a13-6ee4e41af467"]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.885430 #44] DEBUG -- : [4b7feea6-72b1-4f10-970d-f344e8b291d7]   Ingestion Load (0.4ms)  SELECT "ingestions".* FROM "ingestions" WHERE "ingestions"."id" = $1 LIMIT $2  [["id", "a39a6d8a-0483-499f-b479-7e4a2a56a6f3"], ["LIMIT", 1]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.887531 #44] DEBUG -- : [4b7feea6-72b1-4f10-970d-f344e8b291d7]   Project Load (0.8ms)  SELECT "projects".* FROM "projects" WHERE "projects"."id" = $1 LIMIT $2  [["id", "e800fa37-04f8-4c1a-b673-dccd5c38d479"], ["LIMIT", 1]]
api_rails_1_c4d8012550f0 | D, [2022-06-27T11:19:55.892212 #44] DEBUG -- : [4b7feea6-72b1-4f10-970d-f344e8b291d7]   CACHE User Load (0.0ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", "02ff7c87-6dc9-4798-8a13-6ee4e41af467"], ["LIMIT", 1]]
api_rails_1_c4d8012550f0 | I, [2022-06-27T11:19:55.894183 #44]  INFO -- : [4b7feea6-72b1-4f10-970d-f344e8b291d7] method=GET path=/api/v1/ingestions/a39a6d8a-0483-499f-b479-7e4a2a56a6f3 format=*/* controller=API::V1::IngestionsController action=show status=200 duration=17.68 view=3.08 db=3.07 request_time=2022-06-27 11:19:55 UTC
proxy_1_81c3f2c7af2c | 192.168.0.1 - - [27/Jun/2022:11:19:55 +0000] "GET /api/v1/ingestions/a39a6d8a-0483-499f-b479-7e4a2a56a6f3? HTTP/1.1" 200 966 "https://manifold.xxxxx/backend/projects/e800fa37-04f8-4c1a-b673-dccd5c38d479/texts/ingestion/a39a6d8a-0483-499f-b479-7e4a2a56a6f3/ingest" "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" "87.122.188.72"
proxy_1_81c3f2c7af2c | 192.168.0.1 - - [27/Jun/2022:11:19:55 +0000] "GET /cable HTTP/1.1" 404 14 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" "87.122.188.72"
proxy_1_81c3f2c7af2c | 192.168.0.1 - - [27/Jun/2022:11:19:56 +0000] "GET /build/assets/Aleo-Regular-590f2b00b056cc30c70a5d7f05005f61.woff HTTP/1.1" 304 0 "https://manifold.xxxxx/build/manifold-client-browser-626774e8f77df0df1b09.css" "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" "87.122.188.72"
client_1_915782fa6a9d | - - - [27/Jun/2022:11:19:56 +0000] "GET /build/assets/Aleo-Regular-590f2b00b056cc30c70a5d7f05005f61.woff HTTP/1.0" 304 - "https://manifold.xxxxx/build/manifold-client-browser-626774e8f77df0df1b09.css" "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0"
proxy_1_81c3f2c7af2c | 192.168.0.1 - - [27/Jun/2022:11:20:04 +0000] "GET /cable HTTP/1.1" 404 14 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" "87.122.188.72"
client_1_915782fa6a9d | - - - [27/Jun/2022:11:20:06 +0000] "GET /build/assets/TruenoRgIt-9d12e045a4b3c3b0ceeb7502aa28c306.woff HTTP/1.0" 304 - "https://manifold.xxxxx/build/manifold-client-browser-626774e8f77df0df1b09.css" "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0"
proxy_1_81c3f2c7af2c | 192.168.0.1 - - [27/Jun/2022:11:20:06 +0000] "GET /build/assets/TruenoRgIt-9d12e045a4b3c3b0ceeb7502aa28c306.woff HTTP/1.1" 304 0 "https://manifold.xxxxx/build/manifold-client-browser-626774e8f77df0df1b09.css" "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0" "87.122.188.72"

Any help would be greatly appreciated since we would love to go live with this project within a week.

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