[ixpmanager] Upgrade to 4.8.0

Mike Hammett ixp-manager at ics-il.net
Thu Aug 16 10:21:41 IST 2018


It seems I'm still nose-first into that corner. 


root at ixpm:/srv/ixpmanager# cd $IXPROOT 
root at ixpm:/srv/ixpmanager# 
root at 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 


sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar selfupdate" 


# XXX careful here - want to delete everything in IXP Manager's vendor directory: 
rm -rf ${IXPROOT}/vendor/* 


sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar install --no-dev --prefer-dist"root at ixpm:/srv/ixpmanager# 
root at ixpm:/srv/ixpmanager# chmod -R u+rwX $IXPROOT/public/bower_components ${IXPROOT}/bower.json ${IXPROOT}/storage $IXPROOT/vendor $IXPROOT/var $IXPROOT/bootstrap/cache 
root at ixpm:/srv/ixpmanager# 
root at ixpm:/srv/ixpmanager# sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar selfupdate" 
Updating to version 1.7.1 (stable channel). 
Downloading (100%) 




[ErrorException] 
rename(/srv/ixpmanager/storage/.composer/cache/composer-temp.phar,/srv/ixpmanager/composer.phar): Permission denied 




self-update [-r|--rollback] [--clean-backups] [--no-progress] [--update-keys] [--stable] [--preview] [--snapshot] [--set-channel-only] [--] [<version>] 


root at ixpm:/srv/ixpmanager# 
root at ixpm:/srv/ixpmanager# # XXX careful here - want to delete everything in IXP Manager's vendor directory: 
root at ixpm:/srv/ixpmanager# rm -rf ${IXPROOT}/vendor/* 
root at ixpm:/srv/ixpmanager# 
root at ixpm:/srv/ixpmanager# sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar install --no-dev --prefer-dist" 
Loading composer repositories with package information 
Installing dependencies from lock file 
Package operations: 80 installs, 0 updates, 0 removals 
[trimmed] 

Package zendframework/zendframework1 is abandoned, you should avoid using it. Use zendframework/zendframework instead. 
Generating autoload files 
> Illuminate\Foundation\ComposerScripts::postAutoloadDump 
> @php artisan package:discover 


In ProviderRepository.php line 208: 


Class 'Barryvdh\Debugbar\ServiceProvider' not found 




Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1 





----- 
Mike Hammett 
Intelligent Computing Solutions 

Midwest Internet Exchange 

The Brothers WISP 

----- Original Message -----

From: "Barry O'Donovan" <barry.odonovan at inex.ie> 
To: "INEX IXP Manager Users Mailing List" <ixpmanager at inex.ie>, "Mike Hammett" <ixp-manager at ics-il.net> 
Sent: Thursday, August 16, 2018 12:58:45 AM 
Subject: Re: [ixpmanager] Upgrade to 4.8.0 

The below is most likely because you've either run 'composer update' or 
'composer install' without '--no-dev'. update is bad by the way, use 
install. i.e. the correct composer command is: 

composer.phar install --no-dev --prefer-dist 

You later try to run selfupdate - which is fine but has nothing to do 
with IXP Manager and you're trying to run it with IXP Manager sudo 
settings which assume www-data ownership but you've previously ran 
composer as root / other user and so have a permissions issue. Assuming 
you have set $MY_WWW_USER and $IXPROOT, try: 

cd $IXPROOT 

chown -R $MY_WWW_USER: $IXPROOT/composer.phar 
$IXPROOT/public/bower_components ${IXPROOT}/bower.json 
${IXPROOT}/storage $IXPROOT/vendor $IXPROOT/var $IXPROOT/bootstrap/cache 

chmod -R u+rwX $IXPROOT/public/bower_components ${IXPROOT}/bower.json 
${IXPROOT}/storage $IXPROOT/vendor $IXPROOT/var $IXPROOT/bootstrap/cache 

sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} 
&& php ./composer.phar selfupdate" 

# XXX careful here - want to delete everything in IXP Manager's vendor 
directory: 
rm -rf ${IXPROOT}/vendor/* 

sudo -u $MY_WWW_USER bash -c "HOME=${IXPROOT}/storage && cd ${IXPROOT} 
&& php ./composer.phar install --no-dev --prefer-dist" 


Hopefully this will back yourself out of the corner you've found 
yourself in. 

All of these sudo's and permissions are awkward to my mind but the 
documentation has evolved from IXP Manager user input to include these 
explicitly rather than relying on user knowledge of permissions and 
ownership. 

- Barry 


Mike Hammett wrote on 15/08/2018 23:42: 
> I ran the stuff in the composer section down below and now I get a new 
> error: 
> 
> 
> Generating autoload files 
>> Illuminate\Foundation\ComposerScripts::postAutoloadDump 
>> @php artisan package:discover 
> 
> In DuskServiceProvider.php line 43: 
> 
> It is unsafe to run Dusk in production. 
> 
> 
> Script @php artisan package:discover handling the post-autoload-dump 
> event returned with error code 1 
> 
> 
> 
> 
> ----- 
> Mike Hammett 
> Intelligent Computing Solutions <http://www.ics-il.com/> 
> <https://www.facebook.com/ICSIL><https://plus.google.com/+IntelligentComputingSolutionsDeKalb><https://www.linkedin.com/company/intelligent-computing-solutions><https://twitter.com/ICSIL> 
> Midwest Internet Exchange <http://www.midwest-ix.com/> 
> <https://www.facebook.com/mdwestix><https://www.linkedin.com/company/midwest-internet-exchange><https://twitter.com/mdwestix> 
> The Brothers WISP <http://www.thebrotherswisp.com/> 
> <https://www.facebook.com/thebrotherswisp><https://www.youtube.com/channel/UCXSdfxQv7SpoRQYNyLwntZg> 
> ------------------------------------------------------------------------ 
> *From: *"Mike Hammett" <ixp-manager at ics-il.net> 
> *To: *"INEX IXP Manager Mailing List" <ixpmanager at inex.ie> 
> *Sent: *Wednesday, August 15, 2018 5:34:12 PM 
> *Subject: *[ixpmanager] Upgrade to 4.8.0 
> 
> It seems I've broken something. 
> 
> 
> root at ixpm:/srv/ixpmanager# sudo -u $MY_WWW_USER bash -c 
> "HOME=${IXPROOT}/storage && cd ${IXPROOT} && php ./composer.phar install 
> --no-dev --prefer-dist" 
> Loading composer repositories with package information 
> Installing dependencies from lock file 
> Nothing to install or update 
> Generating autoload files 
>> Illuminate\Foundation\ComposerScripts::postAutoloadDump 
>> @php artisan package:discover 
> 
> In ProviderRepository.php line 208: 
> 
> Class 'Barryvdh\Debugbar\ServiceProvider' not found 
> 
> 
> Script @php artisan package:discover handling the post-autoload-dump 
> event returned with error code 1 
> 
> 
> 
> 
> ----- 
> Mike Hammett 
> Intelligent Computing Solutions <http://www.ics-il.com/> 
> <https://www.facebook.com/ICSIL><https://plus.google.com/+IntelligentComputingSolutionsDeKalb><https://www.linkedin.com/company/intelligent-computing-solutions><https://twitter.com/ICSIL> 
> Midwest Internet Exchange <http://www.midwest-ix.com/> 
> <https://www.facebook.com/mdwestix><https://www.linkedin.com/company/midwest-internet-exchange><https://twitter.com/mdwestix> 
> The Brothers WISP <http://www.thebrotherswisp.com/> 
> <https://www.facebook.com/thebrotherswisp><https://www.youtube.com/channel/UCXSdfxQv7SpoRQYNyLwntZg> 
> 
> _______________________________________________ 
> INEX IXP Manager mailing list 
> ixpmanager at inex.ie 
> Unsubscribe or change options here: 
> https://www.inex.ie/mailman/listinfo/ixpmanager 
> 
> _______________________________________________ 
> INEX IXP Manager mailing list 
> ixpmanager at inex.ie 
> Unsubscribe or change options here: https://www.inex.ie/mailman/listinfo/ixpmanager 
> 


-- 

Kind regards, 
Barry O'Donovan 
INEX Operations 

https://www.inex.ie/support/ 
+353 1 531 3339 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20180816/e95ae8c1/attachment-0001.html>


More information about the ixpmanager mailing list