Skip to content

Error in Torrust Index container when running CI E2E tests  #363

@mario-nt

Description

@mario-nt

When running the E2E tests for the GUI in the CI checks, we have the same error that happened last time, the Index container is not running and the tests fail:

torrust-index-1        | + exec /bin/su-exec torrust /usr/bin/torrust-index
torrust-index-1        | Loading configuration from env var TORRUST_INDEX_CONFIG ...
torrust-index-1        | thread 'main' panicked at src/bootstrap/config.rs:50:32:
torrust-index-1        | called `Result::unwrap()` on an `Err` value: ConfigError { source: LocatedError { source: missing field `port`, location: Location { file: "src/config.rs", line: 462, col: 46 } } }
torrust-index-1        | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
torrust-index-1 exited with code 101
torrust-idx-fron-1     | 
Container torrust-mysql-1 is healthy
CONTAINER ID   IMAGE                       COMMAND                  CREATED          STATUS                    PORTS                                                                                                                             NAMES
d42a6485a6ee   torrust-idx-fron            "docker-entrypoint.s…"   31 seconds ago   Up 29 seconds             0.0.0.0:3000->3000/tcp, :::3000->3000/tcp, 0.0.0.0:24678->24678/tcp, :::24678->24678/tcp                                          torrust-idx-fron-1
901434eed650   torrust/tracker:develop     "/usr/local/bin/entr…"   31 seconds ago   Up 29 seconds             0.0.0.0:1212->1212/tcp, :::1212->1212/tcp, 0.0.0.0:7070->7070/tcp, :::7070->7070/tcp, 0.0.0.0:6969->6969/udp, :::6969->6969/udp   torrust-tracker-1
477b2c8c536f   dockage/mailcatcher:0.8.2   "entrypoint mailcatc…"   31 seconds ago   Up 30 seconds             0.0.0.0:1025->1025/tcp, :::1025->1025/tcp, 0.0.0.0:1080->1080/tcp, :::1080->1080/tcp                                              torrust-mailcatcher-1
1ee4d2960dc5   mysql:8.0                   "docker-entrypoint.s…"   31 seconds ago   Up 30 seconds (healthy)   0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp                                                                              torrust-mysql-1

> cypress:run
> cypress run 
       Spec                                              Tests  Passing  Failing  Pending  Skipped  
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✖  category/specs/add.cy.ts                 00:13        3        1        2        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  category/specs/delete.cy.ts              00:12        3        1        2        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  torrent/specs/download.cy.ts             00:12        2        -        2        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  torrent/specs/upload.cy.ts               00:07        2        1        1        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  user/specs/authentication.cy.ts          00:11        2        -        2        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  user/specs/registration.cy.ts            00:05        1        -        1        -        - │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  torrent/specs/details/magnet_link.c      00:06        1        -        1        -        - │
  │    y.ts                                                                                        │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  torrent/specs/list/magnet_link.cy.t      00:06        2        -        1        -        1 │
  │    s                                                                                           │
  ├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✖  torrent/specs/list/no_torrents_to_d      218ms        1        -        1        -        - │
  │    isplay.cy.ts                                                                                │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✖  9 of 9 failed (100%)                     01:17       17        3       13        -      

It seems like the port for the [tracker_statistics_importer] in the index config file is missing.

[tracker_statistics_importer]
torrent_info_update_interval = 3600
_port = 3002 <- Missing field_

@josecelano @da2ce7

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions