Closed ibrasec closed 4 years ago
Here is the relevant error stacktrace:
File "/openedx/edx-platform/common/djangoapps/edxmako/template.py", line 59, in render
lms_1 | return self.mako_template.render_unicode(**context_dictionary)
lms_1 | File "/openedx/venv/local/lib/python2.7/site-packages/mako/template.py", line 454, in render_unicode
lms_1 | as_unicode=True)
lms_1 | File "/openedx/venv/local/lib/python2.7/site-packages/mako/runtime.py", line 829, in _render
lms_1 | **_kwargs_for_callable(callable_, data))
lms_1 | File "/openedx/venv/local/lib/python2.7/site-packages/mako/runtime.py", line 864, in _render_context
lms_1 | _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
lms_1 | File "/openedx/venv/local/lib/python2.7/site-packages/mako/runtime.py", line 890, in _exec_template
lms_1 | callable_(context, *args, **kwargs)
lms_1 | File "/tmp/mako_lms/1374d0592afbffeb77695b71321dcee0/main.html.py", line 220, in render_body
lms_1 | __M_writer(filters.decode.utf8(static.webpack(entry=u'commons')))
lms_1 | File "/tmp/mako_lms/1374d0592afbffeb77695b71321dcee0/static_content.html.py", line 288, in render_webpack
lms_1 | __M_writer(filters.html_escape(filters.decode.utf8(HTML(render_bundle(entry, extension=None, config='DEFAULT', attrs=attrs)))))
lms_1 | File "/openedx/venv/local/lib/python2.7/site-packages/webpack_loader/templatetags/webpack_loader.py", line 12, in render_bundle
lms_1 | tags = utils.get_as_tags(bundle_name, extension=extension, config=config, attrs=attrs)
lms_1 | File "/openedx/venv/local/lib/python2.7/site-packages/webpack_loader/utils.py", line 45, in get_as_tags
lms_1 | bundle = _get_bundle(bundle_name, extension, config)
lms_1 | File "/openedx/venv/local/lib/python2.7/site-packages/webpack_loader/utils.py", line 23, in _get_bundle
lms_1 | bundle = get_loader(config).get_bundle(bundle_name)
lms_1 | File "/openedx/venv/local/lib/python2.7/site-packages/webpack_loader/loader.py", line 100, in get_bundle
lms_1 | "The stats file does not contain valid data. Make sure "
lms_1 | WebpackLoaderBadStatsError: The stats file does not contain valid data. Make sure webpack-bundle-tracker plugin is enabled and try to run webpack again.
lms_1 | 172.18.0.13 - - [19/May/2020:04:03:46 +0000] "GET / HTTP/1.0" 500 - "-" "-"
tutor local quickstart
once again?Thanks for your feedback
Are you running Tutor with some enabled plugins? Which one(s)?
Nope, Nothing except tutor local quickstart
Did you attempt to run tutor local quickstart once again? No, Do i have to?, because it is not mentioned in the Documentation.
+1 here,
Hi guys,
i have actually the same behaviour with tutor local quickstart
,
All as all as Ibrasec mentiont already.
I deployed the platform on a clean ubunu 18.04 VM with 8 GB of RAM and 4 CPUs,
And get the same result with the same logs.
It appears there was an error in our CI pipeline and the openedx docker image pushed to docker.io did not contain the compiled static assets. I pushed a new image to docker.io. You can fix your installation by running:
tutor images pull openedx
tutor local quickstart
Thanks for reporting this issue! I'm closing this now. Please comment if the proposed solution does not work for you.
Thanks @regisb for your support Now i have the error below
$ tutor images pull openedx
Pulling image docker.io/overhangio/openedx:3.12.4
docker pull docker.io/overhangio/openedx:3.12.4
3.12.4: Pulling from overhangio/openedx
0a01a72a686c: Pull complete
cc899a5544da: Pull complete
19197c550755: Pull complete
716d454e56b6: Pull complete
a20336c7d2a5: Pull complete
91c961cd3cc7: Pull complete
6235ff451540: Pull complete
ec3dc229154a: Pull complete
9452ce71c31b: Pull complete
e278ac4a78fa: Pull complete
3e8059a3d084: Pull complete
df8e6ff89d00: Pull complete
bac8ba5ab394: Pull complete
b301ef8ddf15: Pull complete
e93c10e64206: Pull complete
d990f73319d0: Pull complete
525824e7a136: Pull complete
4a1a0f56faed: Pull complete
2b0e99fdeeb8: Pull complete
be6d27543b55: Pull complete
27a80b58b546: Pull complete
757e95323b6e: Pull complete
6370f730a821: Pull complete
0303046a915d: Pull complete
149dac13ada1: Pull complete
f756313c6c97: Pull complete
7773d1c88827: Pull complete
f8c55d13abc7: Pull complete
ca8e8e83431b: Pull complete
18a60abc4c5c: Pull complete
fbfb3f28be04: Pull complete
d4a037946509: Pull complete
11efda8d94c4: Pull complete
b400c63c905c: Pull complete
c98458a8e1e9: Pull complete
Digest: sha256:8221dc6f0d14c354ca0242361f99950f1f7506114356095c14e00d2bcc889f1c
Status: Downloaded newer image for overhangio/openedx:3.12.4
docker.io/overhangio/openedx:3.12.4
$ tutor local quickstart
==================================================
Interactive platform configuration
==================================================
Your website domain name for students (LMS) [www.myopenedx.com]
Your website domain name for teachers (CMS) [studio.www.myopenedx.com]
Your platform name/title [My Open edX]
Your public contact email address [contact@www.myopenedx.com]
The default language code for the platform [en]
Activate SSL/TLS certificates for HTTPS access? Important note: this will NOT work in a development environment. [y/N] N
Configuration saved to /home/ibrasec/.local/share/tutor/config.yml
================================================
Updating the current environment
================================================
Environment generated in /home/ibrasec/.local/share/tutor/env
==============================================
Stopping any existing platform
==============================================
docker-compose -f /home/ibrasec/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local rm --stop --force
Stopping tutor_local_lms-worker_1 ... done
Stopping tutor_local_nginx_1 ... done
Stopping tutor_local_cms-worker_1 ... done
Stopping tutor_local_lms_1 ... done
Stopping tutor_local_cms_1 ... done
Stopping tutor_local_forum_1 ... done
Stopping tutor_local_mongodb_1 ... done
Stopping tutor_local_elasticsearch_1 ... done
Stopping tutor_local_smtp_1 ... done
Stopping tutor_local_memcached_1 ... done
Stopping tutor_local_rabbitmq_1 ... done
Stopping tutor_local_mysql_1 ... done
Going to remove tutor_local_lms-worker_1, tutor_local_nginx_1, tutor_local_cms-worker_1, tutor_local_lms_1, tutor_local_cms_1, tutor_local_forum_1, tutor_local_mongodb_1, tutor_local_elasticsearch_1, tutor_local_openedx-assets_1, tutor_local_smtp_1, tutor_local_memcached_1, tutor_local_rabbitmq_1, tutor_local_mysql_1
Removing tutor_local_lms-worker_1 ... done
Removing tutor_local_nginx_1 ... done
Removing tutor_local_cms-worker_1 ... done
Removing tutor_local_lms_1 ... done
Removing tutor_local_cms_1 ... done
Removing tutor_local_forum_1 ... done
Removing tutor_local_mongodb_1 ... done
Removing tutor_local_elasticsearch_1 ... done
Removing tutor_local_openedx-assets_1 ... done
Removing tutor_local_smtp_1 ... done
Removing tutor_local_memcached_1 ... done
Removing tutor_local_rabbitmq_1 ... done
Removing tutor_local_mysql_1 ... done
=============================================
HTTPS certificates generation
=============================================
HTTPS is not activated: certificate generation skipped
======================================================
Starting the platform in detached mode
======================================================
docker-compose -f /home/ibrasec/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local up --remove-orphans -d
Creating tutor_local_mysql_1 ... done
Creating tutor_local_mongodb_1 ... done
Creating tutor_local_memcached_1 ... done
Creating tutor_local_smtp_1 ... done
Creating tutor_local_elasticsearch_1 ... done
Creating tutor_local_openedx-assets_1 ... done
Creating tutor_local_rabbitmq_1 ... done
Creating tutor_local_forum_1 ... done
Creating tutor_local_cms_1 ... done
Creating tutor_local_lms_1 ... done
Creating tutor_local_cms-worker_1 ... done
Creating tutor_local_nginx_1 ... done
Creating tutor_local_lms-worker_1 ... done
================================================
Database creation and migrations
================================================
Initialising all services...
docker-compose -f /home/ibrasec/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local -f /home/ibrasec/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm mysql-job sh -e -c echo "Initialising MySQL..."
mysql_connection_max_attempts=10
mysql_connection_attempt=0
until mysql -u root --password="ZHx7RaIK" --host "mysql" --port 3306 -e 'exit'
do
mysql_connection_attempt=$(expr $mysql_connection_attempt + 1)
echo " [$mysql_connection_attempt/$mysql_connection_max_attempts] Waiting for MySQL service (this may take a while)..."
if [ $mysql_connection_attempt -eq $mysql_connection_max_attempts ]
then
echo "MySQL initialisation error" 1>&2
exit 1
fi
sleep 10
done
echo "MySQL is up and running"
mysql -u root --password="ZHx7RaIK" --host "mysql" --port 3306 -e 'CREATE DATABASE IF NOT EXISTS openedx;'
mysql -u root --password="ZHx7RaIK" --host "mysql" --port 3306 -e 'GRANT ALL ON openedx.* TO "openedx"@"%" IDENTIFIED BY "CpvAEl3k";'
Initialising MySQL...
Warning: Using a password on the command line interface can be insecure.
MySQL is up and running
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Initialising lms...
docker-compose -f /home/ibrasec/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local -f /home/ibrasec/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
./manage.py lms migrate
./manage.py lms create_oauth2_client \
"http://androidapp.com" "http://androidapp.com/redirect" public \
--client_id android --client_secret yNV1ybNsYSqSpMfrcLnZQsVC \
--trusted
# Fix incorrect uploaded file path
if [ -d /openedx/data/uploads/ ]; then
if [ -n "$(ls -A /openedx/data/uploads/)" ]; then
echo "Migrating LMS uploaded files to shared directory"
mv /openedx/data/uploads/* /openedx/media/
rm -rf /openedx/data/uploads/
fi
fi
2020/05/21 02:24:51 Waiting for: tcp://mysql:3306
2020/05/21 02:24:51 Connected to tcp://mysql:3306
Loading settings lms.envs.tutor.production
Segmentation fault (core dumped)
Error: Command failed with status 139: docker-compose -f /home/ibrasec/.local/share/tutor/env/local/docker-compose.yml --project-name tutor_local -f /home/ibrasec/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c dockerize -wait tcp://mysql:3306 -timeout 20s
export DJANGO_SETTINGS_MODULE=$SERVICE_VARIANT.envs.$SETTINGS
echo "Loading settings $DJANGO_SETTINGS_MODULE"
./manage.py lms migrate
./manage.py lms create_oauth2_client \
"http://androidapp.com" "http://androidapp.com/redirect" public \
--client_id android --client_secret yNV1ybNsYSqSpMfrcLnZQsVC \
--trusted
# Fix incorrect uploaded file path
if [ -d /openedx/data/uploads/ ]; then
if [ -n "$(ls -A /openedx/data/uploads/)" ]; then
echo "Migrating LMS uploaded files to shared directory"
mv /openedx/data/uploads/* /openedx/media/
rm -rf /openedx/data/uploads/
fi
fi
This is most probably a case of https://docs.tutor.overhang.io/troubleshooting.html#running-migrations-killed-command-failed-with-status-137-docker-compose If the proposed solution does not work for you, please move this discussion to the forums: https://discuss.overhang.io
Yes thanks... Now i can browse to http://localhost The issue was solved simply by following the instructions you referred to Link
for simplicity i paste them below
tutor local stop
sudo rm -rf "$(tutor config printroot)/data/mysql"
tutor local quickstart
Bug description/followed the installation procedure i am a newbey to openedx,I have tried to follow the installation procedure mentioned in the quickstart guide, simply following the below commands
There is a message saying: Your Open edX platform is ready and can be accessed at the following urls: But once i try to browse http://localhost i ended up getting Internal Server Error except when i go to access the http://localhost/admin page where i got the django login page. i have tried to follow the Troubleshooting guide and searched for similar issues but no clues, Is there something i missed ?
Is this a bug in Tutor, or in Open edX? Not sure because i also got some WARNING messages after executing
tutor local quickstart
tutor local logs
How to reproduce
In case of a web error, include the URL of the page that is causing the error
Did you make any manual changes to the generated environment or config.yml files? No
Environment