Comments (14)
I'd like to also point out that while we've achieved resolution in the context of which we are testing, I think this issue spans wider than just CWP (or the recipe of such at least), indicated in the fact that it also affected SSP - and while it works again now, it's because we're testing it in the context of a CWP recipe.
The fix:
https://github.com/silverstripe/cwp/blob/3ad235e1286939a5291a911c602ca42907b1746c/src/Extensions/MaintenanceProxyExtension.php#L29
Resides in cwp/cwp
(where this extension also addresses platform specific proxy issues, which is a good thing).
Meaning anyone not using CWP (at least the module, but in the broader sense the platform as a whole) will still be affected by this exception any time they attempt to retrieve the task list (or run the task itself) from a user that does not have these environment variables set.
However if I were betting inclined, I'd wager that this will affect any web server that runs as it's own user - typically a non-login user meaning an absence any profile setup files... and in many a case it's a system user (UID lower than 1000) which can also mean there is no $HOME
set either.
Exemplified in the virtual environment I was finally able to recreate this issue; there was nothing special about it's setup that I would consider unusual.
At this point I'd like to suggest moving this composer environment variable check (i.e. not the proxy ones from the same class) to that in which the exception manifests - bringyourownideas/silverstripe-composer-update-checker
.
from silverstripe-maintenance.
Sure, I'll do that
from silverstripe-maintenance.
Falsy, forgot to deploy the updated 1.9 CWP code 🤦♂️
from silverstripe-maintenance.
Give it a god, but not sure if this will work as this would rely on putenv()
to pass the variable to composer, which seems to fail intermittently.
from silverstripe-maintenance.
Is this issue relevant to SSP as well?
from silverstripe-maintenance.
Yep, just tested
from silverstripe-maintenance.
Environment::setEnv/putEnv
doesn't carry through, but putenv
works
from silverstripe-maintenance.
Ok, now hitting a blocker with the CWP proxy (related: silverstripe/silverstripe-cms#2168).
Will need to see if we can inject this config somehow
from silverstripe-maintenance.
Nice work!
from silverstripe-maintenance.
Need to backport change for the CWP 1.9 recipe too
from silverstripe-maintenance.
Ideal, all done! Thanks @robbieaverill
from silverstripe-maintenance.
I've merged all the branches up.
from silverstripe-maintenance.
Tested CWP 1.9 and 2.1 on CWP platform, all good!
from silverstripe-maintenance.
Whoops, the task doesn't run in 1.9 on CWP
from silverstripe-maintenance.
Related Issues (20)
- Add Transifex configuration for SS4 version HOT 4
- Add mouse-over descriptions for module version headings
- Module information in popover is constricted if no description for the module exists HOT 1
- A default top property is needed for .health_indicator HOT 2
- Add screenshots to README HOT 2
- Handle modules with without semver compliance HOT 1
- Errors occur trying to write composer caches HOT 6
- "More info" button is out of alignment with its icon HOT 2
- "Latest" shows as "dev-master" with "minimum-stability: dev" HOT 3
- "More info" should point to user docs HOT 3
- PHP 7.3 compatibility with 1.x branch HOT 5
- Cannot view report as a content author HOT 1
- Can't use module on SC platform HOT 21
- Multiple tooltips on maintainance report
- Remove references to security checker as it's now broken HOT 3
- Report not updating on CWP-2.8.0-rc1 HOT 2
- All packages are stored - not only allowed_types
- All package types have a link to addons.silverstripe.org and module rating in the report.
- Module doesn't work on Postgres HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silverstripe-maintenance.