Need urgent help - self managed open edx failed in installation - rbenv : install ruby 2.4.1

log

TASK [rbenv : if ruby-build exists, which versions we can install] *************
skipping: [localhost]

TASK [rbenv : create temporary directory] **************************************
changed: [localhost]

TASK [rbenv : clone ruby-build repo] *******************************************
changed: [localhost]

TASK [rbenv : install ruby-build] **********************************************
changed: [localhost]

TASK [rbenv : remove temporary directory] **************************************
changed: [localhost]

TASK [rbenv : check ruby 2.4.1 installed] **************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “rbenv versions | grep 2.4.1”, “delta”: “0:00:00.036398”, “end”: “2020-10-06 23:55:46.640726”, “failed”: true, “rc”: 1, “start”: “2020-10-06 23:55:46.604328”, “stderr”: “Warning: no Ruby detected on the system”, “stderr_lines”: [“Warning: no Ruby detected on the system”], “stdout”: “”, “stdout_lines”: }
…ignoring

TASK [rbenv : install ruby 2.4.1] **********************************************
fatal: [localhost]: FAILED! => {“changed”: true, “cmd”: “rbenv install 2.4.1”, “delta”: “0:01:33.601968”, “end”: “2020-10-06 23:57:20.414149”, “failed”: true, “rc”: 1, “start”: “2020-10-06 23:55:46.812181”, “stderr”: “Downloading ruby-2.4.1.tar.bz2…\n-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.bz2\nInstalling ruby-2.4.1…\n\nWARNING: ruby-2.4.1 is past its end of life and is now unsupported.\nIt no longer receives bug fixes or critical security updates.\n\n\nBUILD FAILED (Ubuntu 16.04 using ruby-build 20201005)\n\nInspect or clean up the working tree at /tmp/ruby-build.20201006235546.5088.uCfNLg\nResults logged to /tmp/ruby-build.20201006235546.5088.log\n\nLast 10 log lines:\n/tmp/ccuZUWCa.s: Fatal error: can’t write 3923 bytes to section .debug_str of enc_associate.o because: ‘No space left on device’\n/tmp/ccuZUWCa.s: Fatal error: can’t close enc_associate.o: No space left on device\nMakefile:246: recipe for target ‘enc_associate.o’ failed\nmake[2]: *** [enc_associate.o] Error 1\nmake[2]: Leaving directory ‘/tmp/ruby-build.20201006235546.5088.uCfNLg/ruby-2.4.1/ext/-test-/string’\nexts.mk:162: recipe for target ‘ext/-test-/string/all’ failed\nmake[1]: *** [ext/-test-/string/all] Error 2\nmake[1]: Leaving directory ‘/tmp/ruby-build.20201006235546.5088.uCfNLg/ruby-2.4.1’\nuncommon.mk:220: recipe for target ‘build-ext’ failed\nmake: *** [build-ext] Error 2”, “stderr_lines”: [“Downloading ruby-2.4.1.tar.bz2…”, “-> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.bz2”, “Installing ruby-2.4.1…”, “”, “WARNING: ruby-2.4.1 is past its end of life and is now unsupported.”, “It no longer receives bug fixes or critical security updates.”, “”, “”, “BUILD FAILED (Ubuntu 16.04 using ruby-build 20201005)”, “”, “Inspect or clean up the working tree at /tmp/ruby-build.20201006235546.5088.uCfNLg”, “Results logged to /tmp/ruby-build.20201006235546.5088.log”, “”, “Last 10 log lines:”, “/tmp/ccuZUWCa.s: Fatal error: can’t write 3923 bytes to section .debug_str of enc_associate.o because: ‘No space left on device’”, “/tmp/ccuZUWCa.s: Fatal error: can’t close enc_associate.o: No space left on device”, “Makefile:246: recipe for target ‘enc_associate.o’ failed”, “make[2]: *** [enc_associate.o] Error 1”, “make[2]: Leaving directory ‘/tmp/ruby-build.20201006235546.5088.uCfNLg/ruby-2.4.1/ext/-test-/string’”, “exts.mk:162: recipe for target ‘ext/-test-/string/all’ failed”, “make[1]: *** [ext/-test-/string/all] Error 2”, “make[1]: Leaving directory ‘/tmp/ruby-build.20201006235546.5088.uCfNLg/ruby-2.4.1’”, “uncommon.mk:220: recipe for target ‘build-ext’ failed”, “make: *** [build-ext] Error 2”], “stdout”: “”, “stdout_lines”: }

RUNNING HANDLER [nginx : reload nginx] *****************************************
to retry, use: --limit @/var/tmp/configuration/playbooks/openedx_native.retry

PLAY RECAP *********************************************************************
localhost : ok=424 changed=216 unreachable=0 failed=1

========================================
Ansible failed!

If you need help, see https://open.edx.org/getting-help .
When asking for help, please provide as much information as you can.
These might be helpful:
Your log file is at logs/install-20201006-230755.log
Your environment:
VTE_VERSION=4205
OPENEDX_RELEASE=open-release/ironwood.master

Installation finished at 2020-10-06 23:57:20

You have the error message: “No space left on device”
You need to check you have enough disk storage.

1 Like

Thank you. its working now.

Now while trying to change the password by the following command
sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings production changepassword user

I got the following error.
bright@ubuntu:/edx/app/edxapp/edx-platform$ sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings production changepassword user
Traceback (most recent call last):
File “/edx/app/edxapp/edx-platform/lms/envs/production.py”, line 43, in get_env_setting
return os.environ[setting]
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/os.py”, line 725, in getitem
raise KeyError(key) from None
KeyError: ‘LMS_CFG’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “./manage.py”, line 119, in
startup = importlib.import_module(edx_args.startup)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 673, in _load_unlocked
File “”, line 665, in exec_module
File “”, line 222, in _call_with_frames_removed
File “/edx/app/edxapp/edx-platform/lms/startup.py”, line 10, in
settings.INSTALLED_APPS # pylint: disable=pointless-statement
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/conf/init.py”, line 79, in getattr
self._setup(name)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/conf/init.py”, line 66, in _setup
self._wrapped = Settings(settings_module)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages/django/conf/init.py”, line 157, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File “/edx/app/edxapp/venvs/edxapp/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 673, in _load_unlocked
File “”, line 665, in exec_module
File “”, line 222, in _call_with_frames_removed
File “/edx/app/edxapp/edx-platform/lms/envs/production.py”, line 65, in
CONFIG_FILE = get_env_setting(‘LMS_CFG’)
File “/edx/app/edxapp/edx-platform/lms/envs/production.py”, line 46, in get_env_setting
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured: Set the LMS_CFG env variable
bright@ubuntu:/edx/app/edxapp/edx-platform$