Installation behind Proxy fails #3372

Closed
opened 2026-02-05 06:31:19 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Ibso on GitHub (Nov 30, 2022).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

When using the installation script for Ubuntu 22.04 behind the corporate proxy, it fails to finish.
The Script stops at
[5/9] Installing PHP dependencies using composer...

I've created a fresh VM, installed Ubuntu Server 22.04, set the global Proxy using:
export http_proxy=http://proxy_host:proxy_port and export https_proxy=http://proxy_host:proxy_port
and set the git proxy using git config --global http.proxy http://proxy.server.com:8080

wget, curl and git commands work without a problem outside the script

Exact BookStack Version

22.11

Log Content

[3/9] Downloading BookStack to /var/www/bookstack...
Cloning into 'bookstack'...
fatal: unable to access 'https://github.com/BookStackApp/BookStack.git/': Could not resolve host: github.com
[4/9] Installing Composer (PHP dependency manager)...
PHP Warning: copy(): php_network_getaddresses: getaddrinfo for composer.github.io failed: Name or service not known in Command line code on line 1
PHP Warning: copy(https://composer.github.io/installer.sig): Failed to open stream: php_network_getaddresses: getaddrinfo for composer.github.io failed: Name or service not known in Command line code on line 1
PHP Warning: copy(): php_network_getaddresses: getaddrinfo for getcomposer.org failed: Name or service not known in Command line code on line 1
PHP Warning: copy(https://getcomposer.org/installer): Failed to open stream: php_network_getaddresses: getaddrinfo for getcomposer.org failed: Name or service not known in Command line code on line 1
PHP Warning: hash_file(composer-setup.php): Failed to open stream: No such file or directory in Command line code on line 1 Could not open input file: composer-setup.php
rm: cannot remove 'composer-setup.php': No such file or directory
mv: cannot stat 'composer.phar': No such file or directory
[5/9] Installing PHP dependencies using composer...
./installation-ubuntu-22.04.sh: line 122: cd: /var/www/bookstack: No such file or directory

PHP Version

No response

Hosting Environment

Ubuntu 22.04 on a Hyper-V VM using the official script

Originally created by @Ibso on GitHub (Nov 30, 2022). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario When using the installation script for Ubuntu 22.04 behind the corporate proxy, it fails to finish. The Script stops at [5/9] Installing PHP dependencies using composer... I've created a fresh VM, installed Ubuntu Server 22.04, set the global Proxy using: `export http_proxy=http://proxy_host:proxy_port` and `export https_proxy=http://proxy_host:proxy_port` and set the git proxy using `git config --global http.proxy http://proxy.server.com:8080` wget, curl and git commands work without a problem outside the script ### Exact BookStack Version 22.11 ### Log Content `[3/9] Downloading BookStack to /var/www/bookstack...` `Cloning into 'bookstack'...` `fatal: unable to access 'https://github.com/BookStackApp/BookStack.git/': Could not resolve host: github.com` `[4/9] Installing Composer (PHP dependency manager)...` `PHP Warning: copy(): php_network_getaddresses: getaddrinfo for composer.github.io failed: Name or service not known in Command line code on line 1` `PHP Warning: copy(https://composer.github.io/installer.sig): Failed to open stream: php_network_getaddresses: getaddrinfo for composer.github.io failed: Name or service not known in Command line code on line 1` `PHP Warning: copy(): php_network_getaddresses: getaddrinfo for getcomposer.org failed: Name or service not known in Command line code on line 1` `PHP Warning: copy(https://getcomposer.org/installer): Failed to open stream: php_network_getaddresses: getaddrinfo for getcomposer.org failed: Name or service not known in Command line code on line 1` `PHP Warning: hash_file(composer-setup.php): Failed to open stream: No such file or directory in Command line code on line 1 Could not open input file: composer-setup.php` `rm: cannot remove 'composer-setup.php': No such file or directory` `mv: cannot stat 'composer.phar': No such file or directory` `[5/9] Installing PHP dependencies using composer...` `./installation-ubuntu-22.04.sh: line 122: cd: /var/www/bookstack: No such file or directory` ### PHP Version _No response_ ### Hosting Environment Ubuntu 22.04 on a Hyper-V VM using the official script
OVERLORD added the 🐕 Support label 2026-02-05 06:31:19 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 30, 2022):

Yeah, the script hasn't really been designed to work with proxies. You'd need to not use a proxy, or work around parts that don't support proxies by either altering the script or manually running the script commands instead, using workarounds for failing elements.

@ssddanbrown commented on GitHub (Nov 30, 2022): Yeah, the script hasn't really been designed to work with proxies. You'd need to not use a proxy, or work around parts that don't support proxies by either altering the script or manually running the script commands instead, using workarounds for failing elements.
Author
Owner

@Ibso commented on GitHub (Nov 30, 2022):

Thanks for the fast response, Dan. I'll try to work with the individual commands from the script and hope to get this thing to work.
would you consider modifying the scripts for future releases? since i am pretty sure others with similar setups will have the exact same issue.

@Ibso commented on GitHub (Nov 30, 2022): Thanks for the fast response, Dan. I'll try to work with the individual commands from the script and hope to get this thing to work. would you consider modifying the scripts for future releases? since i am pretty sure others with similar setups will have the exact same issue.
Author
Owner

@ssddanbrown commented on GitHub (Nov 30, 2022):

would you consider modifying the scripts for future releases?

Depends on how far we'd need to stray from official/documented methods for actions. Even then would probably not assure proxy support either since it's an extra pain to test when creating/updating these scripts.

@ssddanbrown commented on GitHub (Nov 30, 2022): > would you consider modifying the scripts for future releases? Depends on how far we'd need to stray from official/documented methods for actions. Even then would probably not assure proxy support either since it's an extra pain to test when creating/updating these scripts.
Author
Owner

@Ibso commented on GitHub (Nov 30, 2022):

Understandable. Thanks dude!

@Ibso commented on GitHub (Nov 30, 2022): Understandable. Thanks dude!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3372