We are facing error while after executing sandbox.sh

after running below command we are facing some issue.

wget https://raw.githubusercontent.com/edx/configuration/$OPENEDX_RELEASE/util/install/sandbox.sh -O - | bash

TASK [mysql : Look for mysql 5.6] **********************************************
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “dpkg -s mysql-server”, “delta”: “0:00:00.054173”, “end”: “2021-01-12 20:23:49.285860”, “failed”: true, “rc”: 1, “start”: “2021-01-12 20:23:49.231687”, “stderr”: “dpkg-query: package ‘mysql-server’ is not installed and no information is available\nUse dpkg --info (= dpkg-deb --info) to examine archive files,\nand dpkg --contents (= dpkg-deb --contents) to list their contents.”, “stdout”: “”, “stdout_lines”: , “warnings”: }

TASK [mongo : Add the mongodb repo to the sources list] ************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt.cache.FetchFailedException: E:Failed to fetch http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/InRelease Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?), E:Some index files failed to download. They have been ignored, or old ones used instead.
fatal: [localhost]: FAILED! => {“changed”: false, “failed”: true, “module_stderr”: “Traceback (most recent call last):\n File “/tmp/ansible_95Ouyw/ansible_module_apt_repository.py”, line 538, in \n main()\n File “/tmp/ansible_95Ouyw/ansible_module_apt_repository.py”, line 527, in main\n cache.update()\n File “/usr/lib/python2.7/dist-packages/apt/cache.py”, line 522, in update\n raise FetchFailedException(e)\napt.cache.FetchFailedException: E:Failed to fetch http://downloads-distro.mongodb.org/repo/ubuntu-upstart/dists/dist/InRelease Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?), E:Some index files failed to download. They have been ignored, or old ones used instead.\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE”}
to retry, use: --limit @/var/tmp/configuration/playbooks/edx_sandbox.retry

PLAY RECAP *********************************************************************
localhost : ok=91 changed=48 unreachable=0 failed=1

Hi lavkush, welcome to the forum!

This is usually an indication that the machine running apt (in this case, the machine you’re running sandbox.sh on) is behind an HTTP proxy. Is that the case?

If so, is it possible for you to try this from somewhere without a proxy? If not, you can try configuring /etc/apt.conf in the machine in question before running the script. See this askubuntu answer for tips.

1 Like