Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
15e92f15
Commit
15e92f15
authored
Jul 21, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some commands that need to be run before the upgrade.
Deal with the upgrade of celery and permissions in the rbenv.
parent
49677d2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
util/vagrant/migrate.sh
+27
-0
No files found.
util/vagrant/migrate.sh
View file @
15e92f15
...
@@ -70,6 +70,33 @@ EOM
...
@@ -70,6 +70,33 @@ EOM
fi
fi
fi
fi
if
[[
$TARGET
==
*
cypress
*
&&
$INTERACTIVE
==
true
]]
;
then
cat
<<
"EOM"
WARNING WARNING WARNING WARNING WARNING
The Cypress release of Open edX upgraded the version of Celery used
by edx-platform workers. This change was introduced to fix the fact
that or restart the celery worker sometimes blocks indefinitely and
does not get shutdon. In order to reduce the risks during the upgrade
we will pre-emptively
kill
all celery workers on this machine.
Birch also introduced a change that breaks the newer version of
ansible when it tries to update the forums rbenv repository. In order
to fix the issue, uncommited modifications made to the /edx/app/forum/.rbenv
repo will be reverted.
Do you wish to proceed?
EOM
read
input
if
[
"
$input
"
!=
"yes"
-a
"
$input
"
!=
"y"
]
;
then
echo
"Quitting"
exit
1
else
echo
"Killing all celery worker processes."
sudo
pgrep
-lf
celery |
grep
worker | awk
'{ print $1}'
|
sudo
xargs
-I
{}
kill
-9
{}
sudo
-u
forum git
-C
/edx/app/forum/.rbenv reset
--hard
fi
fi
if
[
-f
/edx/app/edx_ansible/server-vars.yml
]
;
then
if
[
-f
/edx/app/edx_ansible/server-vars.yml
]
;
then
SERVER_VARS
=
"--extra-vars=
\"
@/edx/app/edx_ansible/server-vars.yml
\"
"
SERVER_VARS
=
"--extra-vars=
\"
@/edx/app/edx_ansible/server-vars.yml
\"
"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment