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 ?

firebird.driver.types.DatabaseError: Unable to complete network request to host "localhost".
-Failed to establish a connection.
3 #text
act_db_main = <firebird.qa.plugin.Action pytest object at [hex]>
act_db_repl = <firebird.qa.plugin.Action pytest object at [hex]>
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>

    @pytest.mark.replication
    @pytest.mark.version('>=4.0.1')
    def test_1(act_db_main: Action,  act_db_repl: Action, capsys):
    
    
        out_prep, out_main, out_drop = '', '', ''
        # Obtain full path + filename for DB_MAIN and DB_REPL aliases.
        # NOTE: we must NOT use 'a.db.db_path' for ALIASED databases!
        # It will return '.' rather than full path+filename.
        # Use only con.info.name for that!
        #
        db_info = {}
        for a in (act_db_main, act_db_repl):
>           with a.db.connect(no_db_triggers = True) as con:

tests\functional\replication\test_failed_DDL_commands_can_be_replicated.py:383: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

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:2159: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

create = False, dsn = 'localhost/33337:db_main_alias', utf8filename = False
dpb = b'\x01\x1c\x06SYSDBA\x1d\tmasterkey?\x04\x03\x00\x00\x00H\x04\x01\x00\x00\x00'
sql_dialect = 3, charset = None, 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:2074: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

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\x00H\x04\x01\x00\x00\x00'
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:1300: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

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 5.0.3.1674 2025.06.27 3ee5c P P 6694 6115 2025.06.29 11:16:03.330 2025.06.29 11:16:10.024 2025.06.29 10:12:21.370 2025.06.29 10:12:27.485
2 5.0.3.1657 2025.06.26 dcb8a P P 5568 6106 2025.06.27 11:16:41.402 2025.06.27 11:16:46.970 2025.06.27 10:13:04.920 2025.06.27 10:13:11.026
3 5.0.3.1657 2025.06.20 8b4d2 P P 6590 6110 2025.06.26 11:31:06.524 2025.06.26 11:31:13.114 2025.06.26 10:27:16.970 2025.06.26 10:27:23.080
4 5.0.3.1657 2025.06.19 4bd4c P P 6589 6116 2025.06.20 05:35:16.087 2025.06.20 05:35:22.676 2025.06.20 04:31:29.911 2025.06.20 04:31:36.027
5 5.0.3.1657 2025.06.11 dae6f P P 5638 6124 2025.06.19 11:06:46.621 2025.06.19 11:06:52.259 2025.06.19 10:02:57.314 2025.06.19 10:03:03.438
6 5.0.3.1657 2025.06.10 dbc92 P P 5689 6096 2025.06.11 08:52:59.220 2025.06.11 08:53:04.909 2025.06.11 07:48:57.399 2025.06.11 07:49:03.495
7 5.0.3.1656 2025.06.05 00512 P P 5616 6163 2025.06.10 10:08:17.770 2025.06.10 10:08:23.386 2025.06.10 09:03:59.646 2025.06.10 09:04:05.809
8 5.0.3.1656 2025.05.20 c4b11 P P 5598 6126 2025.06.03 09:55:02.310 2025.06.03 09:55:07.908 2025.06.03 08:51:58.232 2025.06.03 08:52:04.358
9 5.0.3.1652 2025.05.13 f51c6 P P 5577 5110 2025.05.21 06:36:01.228 2025.05.21 06:36:06.805 2025.05.21 05:33:14.699 2025.05.21 05:33:19.809
10 5.0.3.1651 2025.05.08 ee9d2 P F 6661 2196 2025.05.13 06:48:40.665 2025.05.13 06:48:47.326 2025.05.13 05:43:57.796 2025.05.13 05:43:59.992
11 5.0.3.1651 2025.05.04 3d914 P F 5580 2209 2025.05.09 04:37:44.659 2025.05.09 04:37:50.239 2025.05.09 03:32:55.803 2025.05.09 03:32:58.012
12 5.0.3.1651 2025.04.30 141ef P F 6631 2199 2025.05.02 04:45:16.465 2025.05.02 04:45:23.096 2025.05.02 03:40:48.597 2025.05.02 03:40:50.796
13 5.0.3.1650 2025.04.30 6253f P F 6594 2195 2025.05.01 04:44:22.091 2025.05.01 04:44:28.685 2025.05.01 03:39:45.146 2025.05.01 03:39:47.341
14 5.0.3.1650 2025.04.28 4cbff P F 6589 2390 2025.04.30 04:43:21.107 2025.04.30 04:43:27.696 2025.04.30 03:38:58.229 2025.04.30 03:39:00.619
15 5.0.3.1649 2025.04.21 5b2d0 P F 5614 2206 2025.04.26 10:17:24.853 2025.04.26 10:17:30.467 2025.04.26 09:12:00.459 2025.04.26 09:12:02.665
16 5.0.3.1648 2025.04.18 2f4c5 P P 5590 6130 2025.04.20 04:28:41.550 2025.04.20 04:28:47.140 2025.04.20 03:24:51.013 2025.04.20 03:24:57.143
17 5.0.3.1635 2025.04.03 f6bd1 P F 5602 2392 2025.04.18 06:56:22.840 2025.04.18 06:56:28.442 2025.04.18 05:51:09.893 2025.04.18 05:51:12.285
18 5.0.3.1635 2025.03.31 22ec6 P F 6601 2389 2025.04.03 10:02:08.454 2025.04.03 10:02:15.055 2025.04.03 08:56:34.060 2025.04.03 08:56:36.449
19 5.0.3.1633 2025.03.28 3123a P F 5615 2204 2025.03.31 10:00:35.605 2025.03.31 10:00:41.220 2025.03.31 08:55:03.337 2025.03.31 08:55:05.541
20 5.0.3.1633 2025.03.27 e0fb8 P F 5717 2193 2025.03.28 10:32:34.264 2025.03.28 10:32:39.981 2025.03.28 09:23:03.350 2025.03.28 09:23:05.543
21 5.0.3.1631 2025.03.25 bda65 P P 6192 6462 2025.03.27 10:13:07.135 2025.03.27 10:13:13.327 2025.03.27 09:05:28.132 2025.03.27 09:05:34.594
22 5.0.3.1631 2025.03.21 1925b P P 5726 6164 2025.03.25 06:47:09.230 2025.03.25 06:47:14.956 2025.03.25 05:39:26.527 2025.03.25 05:39:32.691
23 5.0.3.1629 2025.03.18 506d7 P P 5594 6147 2025.03.20 09:47:07.761 2025.03.20 09:47:13.355 2025.03.20 08:39:27.525 2025.03.20 08:39:33.672
24 5.0.3.1628 2025.03.14 16d05 P P 5586 5260 2025.03.18 09:41:13.245 2025.03.18 09:41:18.831 2025.03.18 08:35:00.617 2025.03.18 08:35:05.877
25 5.0.3.1627 2025.02.26 4e218 P P 6669 6523 2025.03.13 10:00:55.733 2025.03.13 10:01:02.402 2025.03.13 08:52:47.003 2025.03.13 08:52:53.526
26 5.0.3.1624 2025.02.25 dc3b2 P P 6312 6196 2025.02.26 15:33:02.489 2025.02.26 15:33:08.801 2025.02.26 14:25:36.908 2025.02.26 14:25:43.104
27 5.0.2.1615 2025.02.20 4a726 P F 5639 2407 2025.02.25 08:46:54.269 2025.02.25 08:46:59.908 2025.02.25 07:39:17.723 2025.02.25 07:39:20.130
28 5.0.2.1615 2025.02.14 9cb76 P P 6606 6132 2025.02.15 04:14:26.347 2025.02.15 04:14:32.953 2025.02.15 03:09:14.184 2025.02.15 03:09:20.316
29 5.0.2.1577 2025.02.07 f50a2 P P 5618 6136 2025.02.14 06:27:07.960 2025.02.14 06:27:13.578 2025.02.14 05:23:04.326 2025.02.14 05:23:10.462
30 5.0.2.1577 2024.12.24 3c80e P P 6636 6130 2025.02.06 09:40:38.685 2025.02.06 09:40:45.321 2025.02.06 08:36:39.466 2025.02.06 08:36:45.596
31 5.0.2.1576 2024.12.17 646b0 P P 5620 6129 2024.12.24 09:23:45.106 2024.12.24 09:23:50.726 2024.12.24 08:19:50.303 2024.12.24 08:19:56.432
32 5.0.2.1575 2024.12.09 9af52 P P 6589 6172 2024.12.16 09:20:28.781 2024.12.16 09:20:35.370 2024.12.16 08:16:43.604 2024.12.16 08:16:49.776
33 5.0.2.1575 2024.12.08 63d39 P P 5499 6017 2024.12.09 15:09:48.910 2024.12.09 15:09:54.409 2024.12.09 14:11:02.007 2024.12.09 14:11:08.024
34 5.0.2.1571 2024.12.08 8d11a P P 6438 6013 2024.12.09 06:23:25.871 2024.12.09 06:23:32.309 2024.12.09 05:22:41.149 2024.12.09 05:22:47.162
35 5.0.2.1567 2024.12.07 b01a2 P P 6582 7301 2024.12.08 02:02:01.152 2024.12.08 02:02:07.734 2024.12.08 00:59:31.398 2024.12.08 00:59:38.699
36 5.0.2.1567 2024.12.02 6ae74 P P 6543 6029 2024.12.04 09:05:16.956 2024.12.04 09:05:23.499 2024.12.04 08:06:34.957 2024.12.04 08:06:40.986
37 5.0.2.1567 2024.11.26 56e63 P P 6622 6137 2024.11.30 09:11:27.960 2024.11.30 09:11:34.582 2024.11.30 08:08:17.077 2024.11.30 08:08:23.214
38 5.0.2.1567 2024.11.21 96f61 P P 6622 6149 2024.11.27 09:08:13.184 2024.11.27 09:08:19.806 2024.11.27 08:05:40.002 2024.11.27 08:05:46.151
39 5.0.2.1567 2024.11.18 e1289 P F 5611 2203 2024.11.21 09:26:36.511 2024.11.21 09:26:42.122 2024.11.21 08:21:41.668 2024.11.21 08:21:43.871
40 5.0.2.1533 2024.10.23 0ec43 P P 6602 6137 2024.11.18 09:02:28.664 2024.11.18 09:02:35.266 2024.11.18 07:59:08.712 2024.11.18 07:59:14.849
41 5.0.2.1533 2024.10.22 8af7a P P 6600 6211 2024.10.23 09:09:39.685 2024.10.23 09:09:46.285 2024.10.23 08:07:00.788 2024.10.23 08:07:06.999
42 5.0.2.1532 2024.10.15 36dc0 P P 6660 6150 2024.10.22 15:11:49.055 2024.10.22 15:11:55.715 2024.10.22 14:09:09.587 2024.10.22 14:09:15.737
43 5.0.2.1518 2024.10.04 259ba P P 5618 6116 2024.10.15 09:05:49.950 2024.10.15 09:05:55.568 2024.10.15 08:03:25.603 2024.10.15 08:03:31.719
44 5.0.2.1518 2024.09.26 703cd P P 5605 6125 2024.10.03 09:10:42.444 2024.10.03 09:10:48.049 2024.10.03 08:07:55.451 2024.10.03 08:08:01.576
45 5.0.2.1489 2024.08.31 994a6 P F 5386 2197 2024.09.26 09:29:49.310 2024.09.26 09:29:54.696 2024.09.26 08:24:17.031 2024.09.26 08:24:19.228
46 5.0.2.1476 2024.08.09 843ea P F 5630 2193 2024.09.01 09:18:47.527 2024.09.01 09:18:53.157 2024.09.01 08:11:20.308 2024.09.01 08:11:22.501
47 5.0.1.1454 2024.08.08 30f9f P P 6747 6149 2024.08.09 08:59:45.068 2024.08.09 08:59:51.815 2024.08.09 07:56:58.853 2024.08.09 07:57:05.002
48 5.0.1.1453 2024.08.07 ebbc3 P P 5695 6148 2024.08.08 20:14:06.853 2024.08.08 20:14:12.548 2024.08.08 19:10:49.124 2024.08.08 19:10:55.272
49 5.0.1.1453 2024.08.06 1b9d0 P P 5797 7125 2024.08.07 08:27:51.891 2024.08.07 08:27:57.688 2024.08.07 07:30:11.639 2024.08.07 07:30:18.764
50 5.0.1.1453 2024.07.30 48044 P P 5728 6128 2024.08.03 08:25:46.844 2024.08.03 08:25:52.572 2024.08.03 07:28:04.184 2024.08.03 07:28:10.312
51 5.0.1.1453 2024.07.28 8d956 P P 6674 6125 2024.07.30 08:06:32.632 2024.07.30 08:06:39.306 2024.07.30 07:10:27.425 2024.07.30 07:10:33.550
52 5.0.1.1429 2024.07.19 8ee90 P P 5616 6116 2024.07.27 08:05:10.353 2024.07.27 08:05:15.969 2024.07.27 07:09:34.446 2024.07.27 07:09:40.562
53 5.0.1.1428 2024.07.15 00392 P P 5640 6115 2024.07.19 08:00:37.524 2024.07.19 08:00:43.164 2024.07.19 07:05:04.696 2024.07.19 07:05:10.811
54 5.0.1.1428 2024.06.30 67a31 P P 5640 6207 2024.07.15 08:12:08.639 2024.07.15 08:12:14.279 2024.07.15 07:15:21.207 2024.07.15 07:15:27.414
55 5.0.1.1415 2024.06.12 f8731 P P 5747 6131 2024.06.22 05:10:31.396 2024.06.22 05:10:37.143 2024.06.22 04:15:30.890 2024.06.22 04:15:37.021
56 5.0.1.1415 2024.06.11 31d74 P P 5875 6172 2024.06.11 23:40:27.359 2024.06.11 23:40:33.234 2024.06.11 22:48:43.182 2024.06.11 22:48:49.354
57 5.0.1.1401 2024.06.05 f9b76 P P 5892 6204 2024.06.11 04:31:21.459 2024.06.11 04:31:27.351 2024.06.11 03:39:26.016 2024.06.11 03:39:32.220
58 5.0.1.1398 2024.05.10 5e3ce P P 6876 6204 2024.05.25 05:26:05.228 2024.05.25 05:26:12.104 2024.05.25 04:34:34.646 2024.05.25 04:34:40.850
59 5.0.1.1397 2024.05.09 ee2ef P P 6861 7204 2024.05.10 05:22:02.433 2024.05.10 05:22:09.294 2024.05.10 04:31:03.315 2024.05.10 04:31:10.519
60 5.0.1.1392 2024.04.29 7dbc2 P P 6861 6204 2024.05.09 17:11:45.959 2024.05.09 17:11:52.820 2024.05.09 16:20:35.253 2024.05.09 16:20:41.457
61 5.0.1.1386 2024.04.25 c0328 P P 6876 6173 2024.04.29 05:21:04.126 2024.04.29 05:21:11.002 2024.04.29 04:30:07.763 2024.04.29 04:30:13.936
62 5.0.1.1386 2024.04.20 80571 P P 6783 6220 2024.04.25 05:23:36.094 2024.04.25 05:23:42.877 2024.04.25 04:31:55.766 2024.04.25 04:32:01.986
63 5.0.1.1378 2024.04.07 5292b P F 6891 2328 2024.04.20 05:43:23.970 2024.04.20 05:43:30.861 2024.04.20 04:47:41.841 2024.04.20 04:47:44.169
64 5.0.1.1346 2024.03.16 fe320 P P 6469 5986 2024.04.07 03:41:47.653 2024.04.07 03:41:54.122 2024.04.07 02:55:13.717 2024.04.07 02:55:19.703
65 5.0.1.1346 2024.03.02 da408 P P 6469 5968 2024.03.25 22:29:25.123 2024.03.25 22:29:31.592 2024.03.25 21:42:57.492 2024.03.25 21:43:03.460
66 5.0.1.1340 2024.02.17 08a71 P P 6453 5984 2024.03.25 23:59:08.430 2024.03.25 23:59:14.883 2024.03.25 23:12:41.704 2024.03.25 23:12:47.688
67 5.0.1.1325 2024.02.06 c98fb P F 5484 2296 2024.03.26 02:30:35.849 2024.03.26 02:30:41.333 2024.03.26 01:40:32.360 2024.03.26 01:40:34.656
68 5.0.1.1325 2024.02.02 1d438 P F 6546 2312 2024.03.26 07:47:59.974 2024.03.26 07:48:06.520 2024.03.26 06:57:03.065 2024.03.26 06:57:05.377
69 5.0.1.1325 2024.01.26 cffb6 P F 6468 2311 2024.03.26 10:13:46.352 2024.03.26 10:13:52.820 2024.03.26 09:23:43.767 2024.03.26 09:23:46.078
70 5.0.1.1325 2024.01.26 d3810 P F 6452 2187 2024.03.26 12:05:28.149 2024.03.26 12:05:34.601 2024.03.26 11:15:33.260 2024.03.26 11:15:35.447
71 5.0.1.1318 2024.01.21 a7ca3 P P 6468 5968 2024.03.26 13:34:29.753 2024.03.26 13:34:36.221 2024.03.26 12:48:08.758 2024.03.26 12:48:14.726
72 5.0.1.1318 2024.01.21 d429d P P 5437 5969 2024.03.26 15:16:06.184 2024.03.26 15:16:11.621 2024.03.26 14:29:48.368 2024.03.26 14:29:54.337
73 5.0.1.1318 2024.01.21 f1ab5 P P 6453 5953 2024.03.26 17:32:05.560 2024.03.26 17:32:12.013 2024.03.26 16:45:44.329 2024.03.26 16:45:50.282
74 5.0.1.1318 2024.01.20 46722 P P 6453 5938 2024.03.26 18:59:03.233 2024.03.26 18:59:09.686 2024.03.26 18:12:49.673 2024.03.26 18:12:55.611

Elapsed time, ms. Chart for last 74 runs:

Last commits information (all timestamps in UTC):