Re: git install help
Simon B <[email protected]> Wed, 1 Jan 2020 15:54:22 +0100
| Newsgroups | gmane.comp.horde.user |
|---|---|
| Message-ID | <CAOmHMuHF2mOtLmqW9ejZEk6-Gin5-D96f5dbo7KF9JemdMqstA@mail.gmail.com> |
On Tue, 31 Dec 2019 at 20:46, Michael J Rubinsky <[email protected]> wrote: > > > Quoting Simon B <[email protected]>: > > > On Fri, 27 Dec 2019 at 16:14, Simon B <[email protected]> wrote: > >> > >> On Fri, 27 Dec 2019 at 13:12, Arjen de Korte > >> <[email protected]> wrote: > >> > > >> > Citeren Simon B <[email protected]>: > >> > > >> > > Hi > >> > > > >> > > It's been nearly 2 years, since the git repository was split, and I am > >> > > finally getting to trying to update my configuration... > >> > > > >> > > Following these instructions... > >> > > > >> > > https://github.com/horde/git-tools > >> > > > >> > > I did this: > >> > > cp config/conf.php.dist config/conf.php > >> > > > >> > > I did this: > >> > > 10 // Target directory for git checkouts. > >> > > 11 $conf['git_base'] = '/my/current/5.2/git/clone/'; > >> > > 12 > >> > > 13 // Target directory for installation, i.e. the webroot . > >> > > 14 $conf['web_base'] = '/my/current/git/webroot'; > >> > > 15 > >> > > 16 // Group name to use for the static directory. Should be the web > >> > > server's > >> > > 17 // group. > >> > > 18 $conf['static_group'] = 'www-data'; > >> > > > >> > > I tried to do this: > >> > > horde-git-tools --help > >> > > > >> > > but I got this: > >> > > root@mail:/ /my/current/5.2/git/clone/horde-git-tools# > >> bin/horde-git-tools > >> > > --help > >> > > You need to run "composer install" first. > >> > > For more information on composer see https://getcomposer.org/. > >> > > > >> > > So, then I did this: > >> > > php -r "copy('https://getcomposer.org/installer', > >> 'composer-setup.php');" > >> > > php -r "if (hash_file('sha384', 'composer-setup.php') === > >> > > > >> 'baf1608c33254d00611ac1705c1d9958c817a1a33bce370c0595974b342601bd80b92a3f46067da89e3b06bff421f182') > >> > > { echo 'Installer verified'; } else { echo 'Installer corrupt'; > >> > > unlink('composer-setup.php'); } echo PHP_EOL;" php > >> composer-setup.php php > >> > > -r "unlink('composer-setup.php');" > >> > > > >> > > But I still get this: > >> > > root@mail:/ /my/current/5.2/git/clone/horde-git-tools# > >> bin/horde-git-tools > >> > > --help > >> > > You need to run "composer install" first. > >> > > For more information on composer see https://getcomposer.org/. > >> > > > >> > > Is there a more step-by-step tutorial? > >> > > >> > If you need a step-by-step tutorial, I'd recommend to stick with the > >> > versions from the pear.horde.org repository. > >> > > >> > I have one of those - as you answered in the other thread. And > >> I don't intend to decommission it - but there are reasons it is not > >> working for me. > >> > >> I actually managed to make some progress - for the archives, I had to... > >> add some directories and chown them to the webserver user (chown > >> www-data:www-data /var/www/.composer/cache/) > >> run the command as: "php composer.phar install" instead of just > >> "composer.phar install" using the www-data user > >> upgrade PHP to > 5.5.0 > >> > >> However, now I have this error... > >> $ php composer.phar install > >> Loading composer repositories with package information > >> Installing dependencies (including require-dev) from lock file > >> Package operations: 66 installs, 0 updates, 0 removals > >> > >> > >> [RuntimeException] > >> /my/current/5.2/git/clone/horde-git-tools/vendor does not exist and > >> could not be created. > >> > >> Apparently, this is because www-data needs rw access to > >> horde-git-tools/ - so... > >> chmod -R 774 /usr/share/git-horde5/horde-git-tools/ > >> > >> at least for now... > >> > >> That directory is filling up with 66 packages, but what the next steps > >> are, I have no idea. > >> > >> > >> Overall, I think more people using the git clone is better for the > >> project, because it gives the developers more information and better > >> support. The previous way of cloning the git repository - AND > >> updating it! - was relatively simple. The added complexity seems to > >> be caused by assumed competence in other tools (composer) - which can > >> be avoided by better documentation, rather any other cause. > > > > I restarted and things were going to going better until this error... > > > > root@mail:/usr/share/2020-git-horde/horde-git-tools# > > bin/horde-git-tools git clone > > [ INFO ] Listing repositories from https://api.github.com/orgs/horde/repos > > PHP Fatal error: Uncaught exception 'Horde_Http_Exception' with > > message 'name lookup timed out' in > > This sounds like a DNS lookup timeout. Hi Michael, I thought that too - but... root@mail:~# nslookup api.github.com Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: api.github.com Address: 140.82.118.5 root@mail:~# nslookup github.com Server: 8.8.8.8 Address: 8.8.8.8#53 Non-authoritative answer: Name: github.com Address: 140.82.118.3 > FWIW I just ran through a new install of git-tools without and issues > following the instructions at https://github.com/horde/git-tools Should I be doing this as root/su? Or should I be doing it as the web-server user? Thanks. Simon > > /usr/share/2020-git-horde/horde-git-tools/vendor/pear-pear.horde.org/Horde_Http/Horde/Http/Request/Curl.php:124 > > Stack trace: > > #0 > > /usr/share/2020-git-horde/horde-git-tools/vendor/pear-pear.horde.org/Horde_Http/Horde/Http/Client.php(237): > > Horde_Http_Request_Curl->send() > > #1 > > /usr/share/2020-git-horde/horde-git-tools/vendor/pear-pear.horde.org/Horde_Http/Horde/Http/Client.php(126): > > Horde_Http_Client->request('GET', 'https://api.git...', NULL, Array) > > #2 /usr/share/2020-git-horde/horde-git-tools/lib/Repositories/Http.php(54): > > Horde_Http_Client->get('https://api.git...') > > #3 > > /usr/share/2020-git-horde/horde-git-tools/lib/Action/Git/ListRemote.php(83): > > Horde\GitTools\Repositories\Http->load(Array) > > #4 > > /usr/share/2020-git-horde/horde-git-tools/lib/Action/Git/ListRemote.php(47): > > Horde\GitTools\Action\Git\ListRemote->_getRepositories() > > #5 /usr/share/2020-git-horde/horde-git-tools/lib/Module/Git.php(100): > > Horde\GitTools\Action\Git\ListRemote->ru in > > /usr/share/2020-git-horde/horde-git-tools/vendor/pear-pear.horde.org/Horde_Http/Horde/Http/Request/Curl.php > > on line 124 > > > > Quite what to do now is not clear. > > > > Any help will be appreciated. > > > > Simon -- Horde mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]