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

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

Closed
Tracked by #349
mario-nt opened this issue Nov 24, 2023 · 1 comment · Fixed by #367
Closed
Tracked by #349

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

mario-nt opened this issue Nov 24, 2023 · 1 comment · Fixed by #367
Assignees
Labels
Continuous Integration Workflows and Automation

Comments

@mario-nt
Copy link
Contributor

mario-nt commented Nov 24, 2023

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

@mario-nt mario-nt added the Continuous Integration Workflows and Automation label Nov 24, 2023
@josecelano josecelano self-assigned this Nov 27, 2023
@josecelano
Copy link
Member

josecelano added a commit to josecelano/torrust-index-gui that referenced this issue Nov 27, 2023
following latest cahgnes in the Tracker and Index.
@josecelano josecelano linked a pull request Nov 27, 2023 that will close this issue
josecelano added a commit to josecelano/torrust-index-gui that referenced this issue Nov 27, 2023
following latest cahgnes in the Tracker and Index.
josecelano added a commit to josecelano/torrust-index-gui that referenced this issue Nov 27, 2023
following latest cahgnes in the Tracker and Index.
josecelano added a commit to josecelano/torrust-index-gui that referenced this issue Nov 27, 2023
following latest cahgnes in the Tracker and Index.
josecelano added a commit that referenced this issue Nov 27, 2023
db968d5 ci: [#363] fix container configuration (Jose Celano)

Pull request description:

  Following latest cahgnes in the Tracker and Index.

ACKs for top commit:
  josecelano:
    ACK db968d5

Tree-SHA512: 4cc437e9216aa42415fea6f3e6760f2dfcbf6227cbd7717083cf8f1e73106f4e6205b56378da586e8e02514366a64fb1d075621942e4b89e361bd2f60cb1db67
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Continuous Integration Workflows and Automation
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants