Check firebird.log [no messages found for interval when this test was running]
Jump to: output_first_mismatch    outcomes_full_history    elapsed_time_chart
Show cross-report outcomes.

Annotation type Annotation details
2 @message
Network / firewall ?

failed on setup with "firebird.driver.types.DatabaseError: Unable to complete network request to host "localhost".
-Failed to establish a connection."
3 #text
request = <SubRequest 'tmp_dba' for <Function test_1>>

    @pytest.fixture
    def user_fixture(request: pytest.FixtureRequest) -> User:
>       with User(request.getfixturevalue(db_fixture_name), name=name, password=password,
                  plugin=plugin, charset=charset, active=active, tags=tags,
                  first_name=first_name, middle_name=middle_name, last_name=last_name,
                  admin=admin, do_not_create=do_not_create) as user:

src\firebird\qa\plugin.py:1242: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <firebird.qa.plugin.User pytest object at [hex]>

    def __enter__(self) -> User:
        if self.__create:
>           self.create()

src\firebird\qa\plugin.py:1067: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

database = 'db_main_alias'

    def connect(database: str, *, user: str=None, password: str=None, role: str=None,
                no_gc: bool=None, no_db_triggers: bool=None, dbkey_scope: DBKeyScope=None,
                crypt_callback: iCryptKeyCallbackImpl=None, charset: str=None,
                auth_plugin_list: str=None, session_time_zone: str=None) -> Connection:
        """Establishes a connection to the database.
    
        Arguments:
            database: DSN or Database configuration name.
            user: User name.
            password: User password.
            role: User role.
            no_gc: Do not perform garbage collection for this connection.
            no_db_triggers: Do not execute database triggers for this connection.
            dbkey_scope: DBKEY scope override for connection.
            crypt_callback: Callback that provides encryption key for the database.
            charset: Character set for connection.
            auth_plugin_list: List of authentication plugins override
            session_time_zone: Session time zone [Firebird 4]
    
        Hooks:
            Event `.ConnectionHook.ATTACH_REQUEST`: Executed after all parameters
            are preprocessed and before `Connection` is created. Hook
            must have signature::
    
                hook_func(dsn: str, dpb: bytes) -> Optional[Connection]
    
            Hook may return `Connection` instance or None.
            First instance returned by any hook will become the return value
            of this function and other hooks are not called.
    
            Event `.ConnectionHook.ATTACHED`: Executed before `Connection` instance is
            returned. Hook must have signature::
    
                hook_func(connection: Connection) -> None
    
            Any value returned by hook is ignored.
        """
        db_config = driver_config.get_database(database)
        if db_config is None:
            db_config = driver_config.db_defaults
        else:
            database = db_config.database.value
        if db_config.server.value is None:
            srv_config = driver_config.server_defaults
        else:
            srv_config = driver_config.get_server(db_config.server.value)
            if srv_config is None:
                raise ValueError(f"Configuration for server '{db_config.server.value}' not found")
        if user is None:
            user = db_config.user.value
            if user is None:
                user = srv_config.user.value
        if password is None:
            password = db_config.password.value
            if password is None:
                password = srv_config.password.value
        if role is None:
            role = db_config.role.value
        if charset is None:
            charset = db_config.charset.value
        if charset:
            charset = charset.upper()
        if auth_plugin_list is None:
            auth_plugin_list = db_config.auth_plugin_list.value
        if session_time_zone is None:
            session_time_zone = db_config.session_time_zone.value
        dsn = _connect_helper(db_config.dsn.value, srv_config.host.value, srv_config.port.value,
                              database, db_config.protocol.value)
        dpb = DPB(user=user, password=password, role=role, trusted_auth=db_config.trusted_auth.value,
                  sql_dialect=db_config.sql_dialect.value, timeout=db_config.timeout.value,
                  charset=charset, cache_size=db_config.cache_size.value,
                  no_linger=db_config.no_linger.value, utf8filename=db_config.utf8filename.value,
                  no_gc=no_gc, no_db_triggers=no_db_triggers, dbkey_scope=dbkey_scope,
                  dummy_packet_interval=db_config.dummy_packet_interval.value,
                  config=db_config.config.value, auth_plugin_list=auth_plugin_list,
                  session_time_zone=session_time_zone, set_bind=db_config.set_bind.value,
                  decfloat_round=db_config.decfloat_round.value,
                  decfloat_traps=db_config.decfloat_traps.value,
                  parallel_workers=db_config.parallel_workers.value)
>       return __make_connection(False, dsn, db_config.utf8filename.value, dpb.get_buffer(),
                                 db_config.sql_dialect.value, charset, crypt_callback)

C:\Python3x\Lib\site-packages\firebird\driver\core.py:2149: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

create = False, dsn = 'localhost/33337:db_main_alias', utf8filename = False
dpb = b'\x01\x1c\x06SYSDBA\x1d\tmasterkey?\x04\x03\x00\x00\x000\x04UTF8'
sql_dialect = 3, charset = 'UTF8', crypt_callback = None

    def __make_connection(create: bool, dsn: str, utf8filename: bool, dpb: bytes,
                          sql_dialect: int, charset: str,
                          crypt_callback: iCryptKeyCallbackImpl) -> Connection:
        with a.get_api().master.get_dispatcher() as provider:
            if crypt_callback is not None:
                provider.set_dbcrypt_callback(crypt_callback)
            if create:
                att = provider.create_database(dsn, dpb, 'utf-8' if utf8filename else FS_ENCODING)
                con = Connection(att, dsn, dpb, sql_dialect, charset)
            else:
                con = None
                for hook in get_callbacks(ConnectionHook.ATTACH_REQUEST, Connection):
                    try:
                        con = hook(dsn, dpb)
                    except Exception as e:
                        raise InterfaceError("Error in DATABASE_ATTACH_REQUEST hook.", *e.args) from e
                    if con is not None:
                        break
                if con is None:
>                   att = provider.attach_database(dsn, dpb, 'utf-8' if utf8filename else FS_ENCODING)

C:\Python3x\Lib\site-packages\firebird\driver\core.py:2064: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <firebird.driver.interfaces.iProvider pytest object at [hex]>
filename = 'localhost/33337:db_main_alias'
dpb = b'\x01\x1c\x06SYSDBA\x1d\tmasterkey?\x04\x03\x00\x00\x000\x04UTF8'
encoding = 'utf-8'

    def attach_database(self, filename: str, dpb: Optional[bytes] = None, encoding: str = 'ascii') -> iAttachment:
        "Replaces `isc_attach_database()`"
        result = self.vtable.attachDatabase(self, self.status, filename.encode(encoding),
                                            0 if dpb is None else len(dpb), dpb)
>       self._check()

C:\Python3x\Lib\site-packages\firebird\driver\interfaces.py:1295: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <firebird.driver.interfaces.iProvider pytest object at [hex]>

    def _check(self) -> None:
        state = self.status.get_state()
        if StateFlag.ERRORS in state:
>           raise self.__report(DatabaseError, self.status.get_errors())
E           firebird.driver.types.DatabaseError: Unable to complete network request to host "localhost".
E           -Failed to establish a connection.

C:\Python3x\Lib\site-packages\firebird\driver\interfaces.py:113: DatabaseError
Full history of outcomes and elapsed time, ms:
NN SNAP_INFO CS_outcome SS_outcome CS_run_time SS_run_time CS_run_beg CS_run_end SS_run_beg SS_run_end
1 4.0.6.3189 2025.02.25 1a1a5 P P 6928 16342 2025.06.27 13:27:16.305 2025.06.27 13:27:23.233 2025.06.27 12:26:13.214 2025.06.27 12:26:29.556
2 4.0.6.3184 2025.02.24 9388c P E 6880 2261 2025.02.25 11:08:29.261 2025.02.25 11:08:36.141 2025.02.25 10:03:32.165 2025.02.25 10:03:34.426
3 4.0.6.3183 2025.02.17 e4762 P P 6916 15281 2025.02.24 11:40:34.174 2025.02.24 11:40:41.090 2025.02.24 10:39:33.359 2025.02.24 10:39:48.640
4 4.0.6.3169 2024.12.13 42cc1 P P 7019 16295 2025.02.14 08:28:17.424 2025.02.14 08:28:24.443 2025.02.14 07:27:10.474 2025.02.14 07:27:26.769
5 4.0.6.3169 2024.12.08 50eb6 P P 6001 15330 2024.12.11 11:24:45.164 2024.12.11 11:24:51.165 2024.12.11 10:24:05.755 2024.12.11 10:24:21.085
6 4.0.6.3168 2024.12.07 98d69 P P 6001 15368 2024.12.08 04:07:33.679 2024.12.08 04:07:39.680 2024.12.08 03:04:57.634 2024.12.08 03:05:13.002
7 4.0.6.3168 2024.12.05 cee43 P P 6534 15322 2024.12.06 04:10:52.281 2024.12.06 04:10:58.815 2024.12.06 03:09:31.736 2024.12.06 03:09:47.058
8 4.0.6.3168 2024.11.28 48149 P P 6948 15304 2024.12.03 11:04:02.625 2024.12.03 11:04:09.573 2024.12.03 10:03:49.361 2024.12.03 10:04:04.665
9 4.0.6.3163 2024.10.30 832db P P 5952 15298 2024.11.28 11:02:37.020 2024.11.28 11:02:42.972 2024.11.28 10:02:51.657 2024.11.28 10:03:06.955
10 4.0.6.3163 2024.10.16 2bb10 P P 5969 15321 2024.10.30 11:11:41.708 2024.10.30 11:11:47.677 2024.10.30 10:11:38.292 2024.10.30 10:11:53.613
11 4.0.6.3147 2024.09.10 a4d11 P E 7035 2236 2024.10.16 04:19:14.052 2024.10.16 04:19:21.087 2024.10.16 03:15:25.689 2024.10.16 03:15:27.925
12 4.0.6.3147 2024.08.31 4655b P P 6937 15333 2024.09.10 11:17:28.482 2024.09.10 11:17:35.419 2024.09.10 10:12:56.714 2024.09.10 10:13:12.047
13 4.0.6.3140 2024.08.16 1dd8b P E 6940 2428 2024.09.01 11:39:55.426 2024.09.01 11:40:02.366 2024.09.01 10:33:03.669 2024.09.01 10:33:06.097
14 4.0.6.3140 2024.08.09 34747 P P 7081 16300 2024.08.16 11:20:19.238 2024.08.16 11:20:26.319 2024.08.16 10:16:09.297 2024.08.16 10:16:25.597
15 4.0.5.3110 2024.08.06 f851c P P 6125 15311 2024.08.09 10:59:06.312 2024.08.09 10:59:12.437 2024.08.09 09:55:49.854 2024.08.09 09:56:05.165
16 4.0.5.3110 2024.07.30 c6527 P P 6119 15302 2024.08.06 06:34:36.047 2024.08.06 06:34:42.166 2024.08.06 05:37:05.072 2024.08.06 05:37:20.374
17 4.0.5.3109 2024.06.11 6addf P P 6032 16302 2024.07.30 09:52:01.400 2024.07.30 09:52:07.432 2024.07.30 08:56:43.516 2024.07.30 08:56:59.818
18 4.0.5.3097 2024.05.09 27fa6 P P 6360 15377 2024.06.11 06:09:12.701 2024.06.11 06:09:19.061 2024.06.11 05:17:54.690 2024.06.11 05:18:10.067
19 4.0.5.3091 2024.04.29 bd0aa P P 6343 15377 2024.05.09 18:48:15.222 2024.05.09 18:48:21.565 2024.05.09 17:57:25.228 2024.05.09 17:57:40.605
20 4.0.5.3089 2024.04.20 9eb9b P P 7329 15705 2024.04.29 06:56:50.822 2024.04.29 06:56:58.151 2024.04.29 06:06:10.787 2024.04.29 06:06:26.492
21 4.0.5.3083 2024.04.06 300f9 P P 7345 15658 2024.04.20 07:20:06.915 2024.04.20 07:20:14.260 2024.04.20 06:29:17.614 2024.04.20 06:29:33.272
22 4.0.5.3052 2024.03.16 0f422 P P 7329 16267 2024.04.05 03:46:09.907 2024.04.05 03:46:17.236 2024.04.05 02:57:10.724 2024.04.05 02:57:26.991
23 4.0.5.3052 2024.03.16 ce273 P P 6875 15189 2024.03.29 15:11:11.966 2024.03.29 15:11:18.841 2024.03.29 14:25:00.476 2024.03.29 14:25:15.665
24 4.0.5.3052 2024.02.12 cd058 P P 6890 15188 2024.03.29 16:39:37.070 2024.03.29 16:39:43.960 2024.03.29 15:53:22.942 2024.03.29 15:53:38.130
25 4.0.5.3052 2024.02.07 be290 P P 5906 15148 2024.03.29 18:51:07.898 2024.03.29 18:51:13.804 2024.03.29 18:04:52.657 2024.03.29 18:05:07.805
26 4.0.5.3052 2024.02.07 6409b P P 5983 15188 2024.03.29 20:35:16.954 2024.03.29 20:35:22.937 2024.03.29 19:49:07.796 2024.03.29 19:49:22.984
27 4.0.5.3052 2024.02.02 bbc3f P P 6891 15345 2024.03.29 22:44:25.755 2024.03.29 22:44:32.646 2024.03.29 21:58:07.899 2024.03.29 21:58:23.244
28 4.0.5.3052 2024.01.26 48b7c P P 5906 15188 2024.03.30 00:11:36.203 2024.03.30 00:11:42.109 2024.03.29 23:25:20.997 2024.03.29 23:25:36.185
29 4.0.5.3052 2024.01.26 9a7b3 P P 5890 15188 2024.03.30 07:12:35.041 2024.03.30 07:12:40.931 2024.03.30 06:26:17.478 2024.03.30 06:26:32.666
30 4.0.5.3049 2024.01.25 f6b9d P P 6906 15188 2024.03.30 09:19:39.659 2024.03.30 09:19:46.565 2024.03.30 08:33:51.198 2024.03.30 08:34:06.386
31 4.0.5.3049 2024.01.08 b67ce P P 6453 15470 2024.03.30 11:07:44.115 2024.03.30 11:07:50.568 2024.03.30 10:12:25.688 2024.03.30 10:12:41.158
32 4.0.5.3049 2024.01.08 97577 P P 6484 14422 2024.03.30 16:12:35.341 2024.03.30 16:12:41.825 2024.03.30 15:17:38.506 2024.03.30 15:17:52.928
33 4.0.5.3049 2024.01.05 2d8b0 P P 6468 15395 2024.03.30 19:30:20.461 2024.03.30 19:30:26.929 2024.03.30 18:35:36.633 2024.03.30 18:35:52.028
34 4.0.5.3049 2024.01.04 431e5 P P 6891 15188 2024.03.30 21:08:32.674 2024.03.30 21:08:39.565 2024.03.30 20:22:50.176 2024.03.30 20:23:05.364
35 4.0.5.3049 2024.01.04 e33b4 P P 5827 15188 2024.03.30 23:20:26.660 2024.03.30 23:20:32.487 2024.03.30 22:34:40.229 2024.03.30 22:34:55.417
36 4.0.5.3049 2024.01.04 207ef P P 6875 15188 2024.03.31 01:03:57.077 2024.03.31 01:04:03.952 2024.03.31 00:18:08.272 2024.03.31 00:18:23.460
37 4.0.5.3034 2023.12.12 c05ff P P 5906 15172 2024.03.31 06:56:31.635 2024.03.31 06:56:37.541 2024.03.31 06:10:39.527 2024.03.31 06:10:54.699
38 4.0.5.3034 2023.12.12 3a40e P P 6906 15188 2024.03.31 15:31:17.840 2024.03.31 15:31:24.746 2024.03.31 14:45:22.207 2024.03.31 14:45:37.395
39 4.0.5.3034 2023.12.02 5934b P P 5890 15173 2024.03.31 10:04:15.189 2024.03.31 10:04:21.079 2024.03.31 09:18:26.440 2024.03.31 09:18:41.613
40 4.0.5.3034 2023.12.02 7ea5a P P 6890 15203 2024.03.31 17:55:37.208 2024.03.31 17:55:44.098 2024.03.31 17:09:45.639 2024.03.31 17:10:00.842
41 4.0.5.3034 2023.11.30 4fbc9 P P 5905 15219 2024.03.31 19:56:29.210 2024.03.31 19:56:35.115 2024.03.31 19:10:36.036 2024.03.31 19:10:51.255

Elapsed time, ms. Chart for last 41 runs:

Last commits information (all timestamps in UTC):