<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">It seems I'm still nose-first into that corner.<br><br><br>root@ixpm:/srv/ixpmanager# cd $IXPROOT</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager#</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager# chown -R $MY_WWW_USER: $IXPROOT/composer.phar $IXPROOT/public/bower_components ${IXPROOT}/bower.json ${IXPROOT}/storage $IXPROOT/vendor $IXPROOT/var $IXPROOT/bootstrap/cache</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar selfupdate"</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"># XXX careful here - want to delete everything in IXP Manager's vendor directory:</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">rm -rf ${IXPROOT}/vendor/*</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar install --no-dev --prefer-dist"root@ixpm:/srv/ixpmanager#</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager# chmod -R u+rwX $IXPROOT/public/bower_components ${IXPROOT}/bower.json ${IXPROOT}/storage $IXPROOT/vendor $IXPROOT/var $IXPROOT/bootstrap/cache</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager#</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager# sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar selfupdate"</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">Updating to version 1.7.1 (stable channel).</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">   Downloading (100%)</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">  [ErrorException]</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">  rename(/srv/ixpmanager/storage/.composer/cache/composer-temp.phar,/srv/ixpmanager/composer.phar): Permission denied</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>]</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager#</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager# # XXX careful here - want to delete everything in IXP Manager's vendor directory:</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager# rm -rf ${IXPROOT}/vendor/*</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager#</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">root@ixpm:/srv/ixpmanager# sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar install --no-dev --prefer-dist"</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">Loading composer repositories with package information</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">Installing dependencies from lock file</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">Package operations: 80 installs, 0 updates, 0 removals</span></font></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt;">[trimmed]</div><div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">Package zendframework/zendframework1 is abandoned, you should avoid using it. Use zendframework/zendframework instead.</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">Generating autoload files</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">> Illuminate\Foundation\ComposerScripts::postAutoloadDump</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">> @php artisan package:discover</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">In ProviderRepository.php line 208:</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">  Class 'Barryvdh\Debugbar\ServiceProvider' not found</span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;"><br></span></font></div><div><font face="arial, helvetica, sans-serif"><span style="font-size: 13.3333px;">Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1</span></font></div><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt;"><br></div></div><br><div style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt;"><span name="x"></span><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; display: inline ! important; float: none;">-----</span><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; display: inline ! important; float: none;">Mike Hammett</span><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="http://www.ics-il.com/" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">Intelligent Computing Solutions</a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="https://www.facebook.com/ICSIL" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/fbicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/fbicon.png"></a><a href="https://plus.google.com/+IntelligentComputingSolutionsDeKalb" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/googleicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/googleicon.png"></a><a href="https://www.linkedin.com/company/intelligent-computing-solutions" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/linkedinicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/linkedinicon.png"></a><a href="https://twitter.com/ICSIL" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/twittericon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/twittericon.png"></a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="http://www.midwest-ix.com/" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">Midwest Internet Exchange</a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="https://www.facebook.com/mdwestix" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/fbicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/fbicon.png"></a><a href="https://www.linkedin.com/company/midwest-internet-exchange" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/linkedinicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/linkedinicon.png"></a><a href="https://twitter.com/mdwestix" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/twittericon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/twittericon.png"></a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="http://www.thebrotherswisp.com/" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">The Brothers WISP</a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="https://www.facebook.com/thebrotherswisp" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/fbicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/fbicon.png"></a><a href="https://www.youtube.com/channel/UCXSdfxQv7SpoRQYNyLwntZg" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/youtubeicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/youtubeicon.png"></a><span name="x"></span><br></div><hr id="zwchr" style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 10pt;"><div style="color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-size: 12pt; font-weight: normal; font-style: normal; text-decoration: none;"><b>From: </b>"Barry O'Donovan" <barry.odonovan@inex.ie><br><b>To: </b>"INEX IXP Manager Users Mailing List" <ixpmanager@inex.ie>, "Mike Hammett" <ixp-manager@ics-il.net><br><b>Sent: </b>Thursday, August 16, 2018 12:58:45 AM<br><b>Subject: </b>Re: [ixpmanager] Upgrade to 4.8.0<br><br>The below is most likely because you've either run 'composer update' or <br>'composer install' without '--no-dev'. update is bad by the way, use <br>install. i.e. the correct composer command is:<br><br>composer.phar install --no-dev --prefer-dist<br><br>You later try to run selfupdate - which is fine but has nothing to do <br>with IXP Manager and you're trying to run it with IXP Manager sudo <br>settings which assume www-data ownership but you've previously ran <br>composer as root / other user and so have a permissions issue. Assuming <br>you have set $MY_WWW_USER and $IXPROOT, try:<br><br>cd $IXPROOT<br><br>chown -R $MY_WWW_USER: $IXPROOT/composer.phar <br>$IXPROOT/public/bower_components ${IXPROOT}/bower.json <br>${IXPROOT}/storage $IXPROOT/vendor $IXPROOT/var $IXPROOT/bootstrap/cache<br><br>chmod -R u+rwX $IXPROOT/public/bower_components ${IXPROOT}/bower.json <br>${IXPROOT}/storage $IXPROOT/vendor $IXPROOT/var $IXPROOT/bootstrap/cache<br><br>sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} <br>&& php ./composer.phar selfupdate"<br><br># XXX careful here - want to delete everything in IXP Manager's vendor <br>directory:<br>rm -rf ${IXPROOT}/vendor/*<br><br>sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} <br>&& php ./composer.phar install --no-dev --prefer-dist"<br><br><br>Hopefully this will back yourself out of the corner you've found <br>yourself in.<br><br>All of these sudo's and permissions are awkward to my mind but the <br>documentation has evolved from IXP Manager user input to include these <br>explicitly rather than relying on user knowledge of permissions and <br>ownership.<br><br>  - Barry<br><br><br>Mike Hammett wrote on 15/08/2018 23:42:<br>> I ran the stuff in the composer section down below and now I get a new <br>> error:<br>> <br>> <br>> Generating autoload files<br>>> Illuminate\Foundation\ComposerScripts::postAutoloadDump<br>>> @php artisan package:discover<br>> <br>> In DuskServiceProvider.php line 43:<br>> <br>>    It is unsafe to run Dusk in production.<br>> <br>> <br>> Script @php artisan package:discover handling the post-autoload-dump <br>> event returned with error code 1<br>> <br>> <br>> <br>> <br>> -----<br>> Mike Hammett<br>> Intelligent Computing Solutions <http://www.ics-il.com/><br>> <https://www.facebook.com/ICSIL><https://plus.google.com/+IntelligentComputingSolutionsDeKalb><https://www.linkedin.com/company/intelligent-computing-solutions><https://twitter.com/ICSIL><br>> Midwest Internet Exchange <http://www.midwest-ix.com/><br>> <https://www.facebook.com/mdwestix><https://www.linkedin.com/company/midwest-internet-exchange><https://twitter.com/mdwestix><br>> The Brothers WISP <http://www.thebrotherswisp.com/><br>> <https://www.facebook.com/thebrotherswisp><https://www.youtube.com/channel/UCXSdfxQv7SpoRQYNyLwntZg><br>> ------------------------------------------------------------------------<br>> *From: *"Mike Hammett" <ixp-manager@ics-il.net><br>> *To: *"INEX IXP Manager Mailing List" <ixpmanager@inex.ie><br>> *Sent: *Wednesday, August 15, 2018 5:34:12 PM<br>> *Subject: *[ixpmanager] Upgrade to 4.8.0<br>> <br>> It seems I've broken something.<br>> <br>> <br>> root@ixpm:/srv/ixpmanager# sudo -u $MY_WWW_USER bash -c <br>> "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar install <br>> --no-dev --prefer-dist"<br>> Loading composer repositories with package information<br>> Installing dependencies from lock file<br>> Nothing to install or update<br>> Generating autoload files<br>>> Illuminate\Foundation\ComposerScripts::postAutoloadDump<br>>> @php artisan package:discover<br>> <br>> In ProviderRepository.php line 208:<br>> <br>>    Class 'Barryvdh\Debugbar\ServiceProvider' not found<br>> <br>> <br>> Script @php artisan package:discover handling the post-autoload-dump <br>> event returned with error code 1<br>> <br>> <br>> <br>> <br>> -----<br>> Mike Hammett<br>> Intelligent Computing Solutions <http://www.ics-il.com/><br>> <https://www.facebook.com/ICSIL><https://plus.google.com/+IntelligentComputingSolutionsDeKalb><https://www.linkedin.com/company/intelligent-computing-solutions><https://twitter.com/ICSIL><br>> Midwest Internet Exchange <http://www.midwest-ix.com/><br>> <https://www.facebook.com/mdwestix><https://www.linkedin.com/company/midwest-internet-exchange><https://twitter.com/mdwestix><br>> The Brothers WISP <http://www.thebrotherswisp.com/><br>> <https://www.facebook.com/thebrotherswisp><https://www.youtube.com/channel/UCXSdfxQv7SpoRQYNyLwntZg><br>> <br>> _______________________________________________<br>> INEX IXP Manager mailing list<br>> ixpmanager@inex.ie<br>> Unsubscribe or change options here: <br>> https://www.inex.ie/mailman/listinfo/ixpmanager<br>> <br>> _______________________________________________<br>> INEX IXP Manager mailing list<br>> ixpmanager@inex.ie<br>> Unsubscribe or change options here: https://www.inex.ie/mailman/listinfo/ixpmanager<br>> <br><br><br>-- <br><br>Kind regards,<br>Barry O'Donovan<br>INEX Operations<br><br>https://www.inex.ie/support/<br>+353 1 531 3339<br><br><br></div><br></div></body></html>