-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow upgrades when HOME is read-only #195
Comments
Short term "fix"... https://civicrm.stackexchange.com/a/49110/2946 |
FWIW, https://specifications.freedesktop.org/basedir-spec/latest/ is a common specification for where applications should put files like this. It would seem like a tidy fix to put (That doesn't guarantee that every system with read-only -- Edit: To clarify, with an env-var like export XDG_STATE_HOME=/home/myuser/writablefolder
export XDG_STATE_HOME=/tmp/my-user-data
export XDG_STATE_HOME=/var/tmp/my-user-date Then |
I am experiencing the same issue. It is on a CiviHosting environment and the export of |
I have submitted a PR fixing this issue. |
I originally asked this as a question at Stack Overflow: https://civicrm.stackexchange.com/questions/48137/upgrade-5-66-0-5-66-2-fails-with-permission-error .
I'm using CiviCRM with Wordpress 6.5.3 and MySQL 5.7.44.
I'm attempting to upgrade my CiviCRM from 5.66.0 to 5.66.2. When I get to the DB upgrade stage, when I hit
/wp-admin/admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1
->Upgrade Now
->OK
, I just see an empty progress bar and the message[Executed: undefined]
.If I switch to the command-line
cv
(versionv0.3.48
), and turn on maximum debugging output, I see this:I'm assuming this is because I don't have permission to create directories in
$HOME
(the site's hosting provider doesn't allow it):Can I specify a different temporary directory for it to perform its work somehow? Trying
HOME=$HOME/private/tmp cv upgrade:db
didn't work, it still tried to create.cv/upgrade
in the original non-writeable location. This seems to be because PHP in general doesn't allow overriding HOME:CGI binaries will let me override
HOME
, butcv
refuses to run from a CGI binary:I'm also wondering if there's some place I can find the DB update steps and just run them manually, is that an option? How can I find those SQL statements?
The text was updated successfully, but these errors were encountered: