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

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: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\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: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 5615 6134 2025.06.30 13:24:58.635 2025.06.30 13:25:04.250 2025.06.30 12:24:08.917 2025.06.30 12:24:15.051
2 4.0.6.3184 2025.02.24 9388c P F 5681 2384 2025.02.25 11:06:41.805 2025.02.25 11:06:47.486 2025.02.25 10:03:18.206 2025.02.25 10:03:20.590
3 4.0.6.3183 2025.02.17 e4762 P P 5648 6171 2025.02.24 11:38:49.855 2025.02.24 11:38:55.503 2025.02.24 10:37:52.634 2025.02.24 10:37:58.805
4 4.0.6.3169 2024.12.13 42cc1 P P 5639 6166 2025.02.14 08:26:33.369 2025.02.14 08:26:39.008 2025.02.14 07:25:28.707 2025.02.14 07:25:34.873
5 4.0.6.3169 2024.12.08 50eb6 P P 5669 6158 2024.12.11 11:23:07.543 2024.12.11 11:23:13.212 2024.12.11 10:22:27.681 2024.12.11 10:22:33.839
6 4.0.6.3168 2024.12.07 98d69 P P 5659 6193 2024.12.08 04:06:42.515 2024.12.08 04:06:48.174 2024.12.08 03:04:12.675 2024.12.08 03:04:18.868
7 4.0.6.3168 2024.12.05 cee43 P P 5203 6184 2024.12.06 04:10:02.374 2024.12.06 04:10:07.577 2024.12.06 03:08:43.891 2024.12.06 03:08:50.075
8 4.0.6.3168 2024.11.28 48149 P P 6688 6182 2024.12.03 11:03:11.490 2024.12.03 11:03:18.178 2024.12.03 10:03:04.921 2024.12.03 10:03:11.103
9 4.0.6.3163 2024.10.30 832db P P 5660 6143 2024.11.28 11:01:46.270 2024.11.28 11:01:51.930 2024.11.28 10:02:03.468 2024.11.28 10:02:09.611
10 4.0.6.3163 2024.10.16 2bb10 P P 5711 6183 2024.10.30 11:10:50.963 2024.10.30 11:10:56.674 2024.10.30 10:10:53.596 2024.10.30 10:10:59.779
11 4.0.6.3147 2024.09.10 a4d11 P F 5661 2207 2024.10.16 04:18:23.879 2024.10.16 04:18:29.540 2024.10.16 03:15:16.483 2024.10.16 03:15:18.690
12 4.0.6.3147 2024.08.31 4655b P P 6099 6169 2024.09.10 11:16:37.787 2024.09.10 11:16:43.886 2024.09.10 10:12:11.849 2024.09.10 10:12:18.018
13 4.0.6.3140 2024.08.16 1dd8b P F 6624 2416 2024.09.01 11:39:04.646 2024.09.01 11:39:11.270 2024.09.01 10:32:54.463 2024.09.01 10:32:56.879
14 4.0.6.3140 2024.08.09 34747 P P 5751 6137 2024.08.16 11:19:29.369 2024.08.16 11:19:35.120 2024.08.16 10:15:24.873 2024.08.16 10:15:31.010
15 4.0.5.3110 2024.08.06 f851c P P 5704 6173 2024.08.09 10:58:15.745 2024.08.09 10:58:21.449 2024.08.09 09:55:01.096 2024.08.09 09:55:07.269
16 4.0.5.3110 2024.07.30 c6527 P P 6794 6216 2024.08.06 06:33:44.562 2024.08.06 06:33:51.356 2024.08.06 05:36:19.951 2024.08.06 05:36:26.167
17 4.0.5.3109 2024.06.11 6addf P P 5704 6149 2024.07.30 09:51:13.603 2024.07.30 09:51:19.307 2024.07.30 08:55:59.201 2024.07.30 08:56:05.350
18 4.0.5.3097 2024.05.09 27fa6 P P 7032 6251 2024.06.11 06:08:21.335 2024.06.11 06:08:28.367 2024.06.11 05:17:07.309 2024.06.11 05:17:13.560
19 4.0.5.3091 2024.04.29 bd0aa P P 5869 6251 2024.05.09 18:47:23.993 2024.05.09 18:47:29.862 2024.05.09 17:56:37.566 2024.05.09 17:56:43.817
20 4.0.5.3089 2024.04.20 9eb9b P P 6891 7251 2024.04.29 06:55:52.690 2024.04.29 06:55:59.581 2024.04.29 06:05:22.531 2024.04.29 06:05:29.782
21 4.0.5.3083 2024.04.06 300f9 P P 5907 6235 2024.04.20 07:19:16.519 2024.04.20 07:19:22.426 2024.04.20 06:28:29.499 2024.04.20 06:28:35.734
22 4.0.5.3052 2024.03.16 0f422 P P 6845 7204 2024.04.05 03:45:18.760 2024.04.05 03:45:25.605 2024.04.05 02:56:19.062 2024.04.05 02:56:26.266
23 4.0.5.3052 2024.03.16 ce273 P P 6484 7000 2024.03.29 15:10:24.586 2024.03.29 15:10:31.070 2024.03.29 14:24:12.689 2024.03.29 14:24:19.689
24 4.0.5.3052 2024.02.12 cd058 P P 6484 6015 2024.03.29 16:38:49.628 2024.03.29 16:38:56.112 2024.03.29 15:52:38.203 2024.03.29 15:52:44.218
25 4.0.5.3052 2024.02.07 be290 P P 6484 5999 2024.03.29 18:50:19.533 2024.03.29 18:50:26.017 2024.03.29 18:04:07.855 2024.03.29 18:04:13.854
26 4.0.5.3052 2024.02.07 6409b P P 5468 7016 2024.03.29 20:34:29.099 2024.03.29 20:34:34.567 2024.03.29 19:48:20.087 2024.03.29 19:48:27.103
27 4.0.5.3052 2024.02.02 bbc3f P P 5500 6016 2024.03.29 22:43:35.265 2024.03.29 22:43:40.765 2024.03.29 21:57:21.003 2024.03.29 21:57:27.019
28 4.0.5.3052 2024.01.26 48b7c P P 6484 5984 2024.03.30 00:10:47.807 2024.03.30 00:10:54.291 2024.03.29 23:24:33.320 2024.03.29 23:24:39.304
29 4.0.5.3052 2024.01.26 9a7b3 P P 6468 6031 2024.03.30 07:11:46.489 2024.03.30 07:11:52.957 2024.03.30 06:25:32.457 2024.03.30 06:25:38.488
30 4.0.5.3049 2024.01.25 f6b9d P P 5469 7016 2024.03.30 09:18:52.310 2024.03.30 09:18:57.779 2024.03.30 08:33:02.500 2024.03.30 08:33:09.516
31 4.0.5.3049 2024.01.08 b67ce P P 5953 6124 2024.03.30 11:06:55.641 2024.03.30 11:07:01.594 2024.03.30 10:11:38.246 2024.03.30 10:11:44.370
32 4.0.5.3049 2024.01.08 97577 P P 5874 6109 2024.03.30 16:11:44.055 2024.03.30 16:11:49.929 2024.03.30 15:16:50.328 2024.03.30 15:16:56.437
33 4.0.5.3049 2024.01.05 2d8b0 P P 5905 6109 2024.03.30 19:29:33.050 2024.03.30 19:29:38.955 2024.03.30 18:34:51.557 2024.03.30 18:34:57.666
34 4.0.5.3049 2024.01.04 431e5 P P 5468 6000 2024.03.30 21:07:45.435 2024.03.30 21:07:50.903 2024.03.30 20:22:05.433 2024.03.30 20:22:11.433
35 4.0.5.3049 2024.01.04 e33b4 P P 6468 7015 2024.03.30 23:19:38.342 2024.03.30 23:19:44.810 2024.03.30 22:33:52.458 2024.03.30 22:33:59.473
36 4.0.5.3049 2024.01.04 207ef P P 5468 6015 2024.03.31 01:03:09.791 2024.03.31 01:03:15.259 2024.03.31 00:17:20.533 2024.03.31 00:17:26.548
37 4.0.5.3034 2023.12.12 c05ff P P 5500 5984 2024.03.31 06:55:47.086 2024.03.31 06:55:52.586 2024.03.31 06:09:51.912 2024.03.31 06:09:57.896
38 4.0.5.3034 2023.12.12 3a40e P P 5469 6016 2024.03.31 15:30:30.428 2024.03.31 15:30:35.897 2024.03.31 14:44:37.342 2024.03.31 14:44:43.358
39 4.0.5.3034 2023.12.02 5934b P P 6468 6968 2024.03.31 10:03:29.793 2024.03.31 10:03:36.261 2024.03.31 09:17:37.826 2024.03.31 09:17:44.794
40 4.0.5.3034 2023.12.02 7ea5a P P 6468 6984 2024.03.31 17:54:49.781 2024.03.31 17:54:56.249 2024.03.31 17:08:56.993 2024.03.31 17:09:03.977
41 4.0.5.3034 2023.11.30 4fbc9 P P 6469 6015 2024.03.31 19:55:43.845 2024.03.31 19:55:50.314 2024.03.31 19:09:48.234 2024.03.31 19:09:54.249

Elapsed time, ms. Chart for last 41 runs:

Last commits information (all timestamps in UTC):