View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000579 | bareos-core | webui | public | 2015-12-06 12:41 | 2021-12-21 13:56 |
Reporter | tuxmaster | Assigned To | frank | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | x86_64 | OS | Fedora | OS Version | 22 |
Summary | 0000579: Unable to connect to the director from webui via ipv6 | ||||
Description | The web ui and the director are running on the same system. After enter the password the error message "Error: , director seems to be down or blocking our request." will presented. | ||||
Steps To Reproduce | Open the website enter the credentials and try to log in. | ||||
Additional Information | getsebool httpd_can_network_connect httpd_can_network_connect --> on Error from the apache log file: [Sun Dec 06 12:37:32.658104 2015] [:error] [pid 2642] [client ABC] PHP Warning: stream_socket_client(): unable to connect to tcp://[XXX]:9101 (Unknown error) in /usr/share/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php on line 521, referer: http://CDE/bareos-webui/ XXX=ip6addr of the director. connect(from the web server) via telnet ip6addr 9101 will work. bconsole will also work. | ||||
Tags | No tags attached. | ||||
Note: When specifying a numerical IPv6 address (e.g. fe80::1), you must enclose the IP in square brackets—for example, tcp://[fe80::1]:80. http://php.net/manual/en/function.stream-socket-client.php You could try setting your IPv6 address in your directors.ini into square brackets until we provide a fix, that might already work. |
|
I have try to set it to: diraddress = "[XXX]" XXX are the ipv6 address But the error are the same. |
|
Same on Fedora 24 using php 7.0 | |
This is still present in version 20 of the Bareos WebUI, on all RHEL variants I tested (CentOS 8, AlmaLinux 8). It results from a totally unnecessary "bindto" configuration in line 473 of /usr/share/bareos-webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php: $opts = array( 'socket' => array( 'bindto' => '0:0', ), ); This unnecessarily limits PHP socket binding to IPv4 interfaces as documented in https://www.php.net/manual/en/context.socket.php. The simplest solution is to just comment out the "bindto" line: $opts = array( 'socket' => array( // 'bindto' => '0:0', ), ); Restart php-fpm and now IPv6 works perfectly |
|
Fix committed to bareos bareos-19.2 branch with changesetid 15043. | |
bareos: master b2e8e740 2021-06-28 17:45 Ported: N/A Details Diff |
webui: remove default stream socket context options Do not enforce a specific bindto (ipv4/ipv6) by stream context options. See: https://www.php.net/manual/en/context.socket.php https://www.php.net/manual/de/function.stream-context-create.php Fixes 0000579: Unable to connect to the director from webui via ipv6 |
Affected Issues 0000579 |
|
mod - webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php | Diff File | ||
bareos: bareos-18.2 18330c03 2021-06-28 17:45 Ported: N/A Details Diff |
webui: remove default stream socket context options Do not enforce a specific bindto (ipv4/ipv6) by stream context options. See: https://www.php.net/manual/en/context.socket.php https://www.php.net/manual/de/function.stream-context-create.php Fixes 0000579: Unable to connect to the director from webui via ipv6 (cherry picked from commit b2e8e7406704f95dc8dbf6289347a7e81e0ddc2e) |
Affected Issues 0000579 |
|
mod - webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php | Diff File | ||
bareos: bareos-19.2 da30d4b8 2021-06-28 17:45 Ported: N/A Details Diff |
webui: remove default stream socket context options Do not enforce a specific bindto (ipv4/ipv6) by stream context options. See: https://www.php.net/manual/en/context.socket.php https://www.php.net/manual/de/function.stream-context-create.php Fixes 0000579: Unable to connect to the director from webui via ipv6 (cherry picked from commit b2e8e7406704f95dc8dbf6289347a7e81e0ddc2e) |
Affected Issues 0000579 |
|
mod - webui/vendor/Bareos/library/Bareos/BSock/BareosBSock.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-12-06 12:41 | tuxmaster | New Issue | |
2015-12-06 12:41 | tuxmaster | Status | new => assigned |
2015-12-06 12:41 | tuxmaster | Assigned To | => frank |
2015-12-18 12:23 | frank | Status | assigned => confirmed |
2016-07-15 16:07 | frank | Note Added: 0002323 | |
2016-07-15 17:04 | tuxmaster | Note Added: 0002324 | |
2016-11-06 12:09 | tuxmaster | Note Added: 0002439 | |
2021-06-23 12:41 | pete | Note Added: 0004159 | |
2021-06-23 12:45 | pete | Note Edited: 0004159 | |
2021-06-23 12:55 | pete | Note Edited: 0004159 | |
2021-06-28 15:51 | frank | Summary | Unable to connect to the director via ipv6 => Unable to connect to the director from webui via ipv6 |
2021-06-29 17:22 | frank | Changeset attached | => bareos master b2e8e740 |
2021-06-29 17:22 | frank | Changeset attached | => bareos bareos-18.2 18330c03 |
2021-06-29 17:22 | frank | Changeset attached | => bareos bareos-19.2 da30d4b8 |
2021-06-29 17:22 | frank | Note Added: 0004167 | |
2021-06-29 17:22 | frank | Status | confirmed => resolved |
2021-06-29 17:22 | frank | Resolution | open => fixed |
2021-09-13 10:37 | arogge | Relationship added | related to 0001383 |
2021-09-14 10:54 | arogge_adm | Relationship added | related to 0001384 |
2021-09-14 12:18 | arogge_adm | Relationship added | related to 0001361 |
2021-12-21 13:56 | arogge | Relationship added | related to 0001289 |