Ask Your Question
0

[ERROR] /opt/devstack/functions-common:1077 Failed to update apt repos, we're dead now

asked 2017-01-01 07:59:36 -0500

anonymous user

Anonymous

Hi

i am getting the error while running ./stack.sh. i have given full permission to "stack" user for ~/devstack directory and installed pythen also.

stack@ubuntu:~/devstack$ ./stack.sh + unset GREP_OPTIONS + unset LANG + unset LANGUAGE + LC_ALL=C + export LC_ALL + umask 022 + PATH=/home/stack/bin:/home/stack/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/sbin:/sbin +++ dirname ./stack.sh ++ cd . ++ pwd + TOP_DIR=/home/stack/devstack + NOUNSET= + [[ -n '' ]] ++ date +%s + DEVSTACK_START_TIME=1483277831 + [[ -r /home/stack/devstack/.stackenv ]] + FILES=/home/stack/devstack/files + '[' '!' -d /home/stack/devstack/files ']' + '[' '!' -d /home/stack/devstack/inc ']' + '[' '!' -d /home/stack/devstack/lib ']' + [[ '' == \y ]] + [[ 1000 -eq 0 ]] + [[ -n '' ]] + [[ -e /home/stack/.no-devstack ]] + LAST_SPINNER_PID= + source /home/stack/devstack/functions ++ [[ -z '' ]] ++ declare -r _DEVSTACK_FUNCTIONS=1 ++++ dirname /home/stack/devstack/functions +++ cd /home/stack/devstack +++ pwd ++ FUNC_DIR=/home/stack/devstack ++ source /home/stack/devstack/functions-common ++++ grep xtrace ++++ set +o +++ _XTRACE_FUNCTIONS_COMMON='set -o xtrace' +++ set +o xtrace ++ source /home/stack/devstack/inc/ini-config ++++ grep xtrace ++++ set +o +++ INC_CONF_TRACE='set -o xtrace' +++ set +o xtrace ++ source /home/stack/devstack/inc/python ++++ grep xtrace ++++ set +o +++ INC_PY_TRACE='set -o xtrace' +++ set +o xtrace ++ source /home/stack/devstack/inc/rootwrap ++++ grep xtrace ++++ set +o +++ INC_ROOT_TRACE='set -o xtrace' +++ set +o xtrace +++ grep xtrace +++ set +o ++ _XTRACE_FUNCTIONS='set -o xtrace' ++ set +o xtrace + source /home/stack/devstack/inc/meta-config +++ grep xtrace +++ set +o ++ _XTRACE_INC_META='set -o xtrace' ++ set +o xtrace + source /home/stack/devstack/lib/stack + GetDistro + GetOSVersion + _ensure_lsb_release ++ command -v lsb_release + [[ -x /usr/bin/lsb_release ]] + return ++ lsb_release -r -s + os_RELEASE=16.04 ++ lsb_release -c -s + os_CODENAME=xenial ++ lsb_release -i -s + os_VENDOR=Ubuntu + [[ Ubuntu =~ (Debian|Ubuntu|LinuxMint) ]] + os_PACKAGE=deb + typeset -xr os_VENDOR + typeset -xr os_RELEASE + typeset -xr os_PACKAGE + typeset -xr os_CODENAME + [[ Ubuntu =~ (Ubuntu) ]] + DISTRO=xenial + typeset -xr DISTRO + rm -f /home/stack/devstack/.localrc.auto + extract_localrc_section /home/stack/devstack/local.conf /home/stack/devstack/localrc /home/stack/devstack/.localrc.auto + local configfile=/home/stack/devstack/local.conf + local localrcfile=/home/stack/devstack/localrc + local localautofile=/home/stack/devstack/.localrc.auto + [[ -r /home/stack/devstack/local.conf ]] + [[ ! -r /home/stack/devstack/stackrc ]] + source /home/stack/devstack/stackrc ++ [[ -z '' ]] ++ declare -r _DEVSTACK_STACKRC=1 ++++ dirname /home/stack/devstack/stackrc +++ cd /home/stack/devstack +++ pwd ++ RC_DIR=/home/stack/devstack ++ source /home/stack/devstack/functions +++ [[ -z 1 ]] +++ return 0 ++ DEST=/opt/stack ++ DATA_DIR=/opt/stack/data ++ SERVICE_DIR=/opt/stack/status ++ SUBUNIT_OUTPUT=/opt/stack/devstack.subunit ++ [[ 1000 -eq 0 ]] +++ whoami ++ STACK_USER=stack ++ REGION_NAME=RegionOne ++ KEYSTONE_REGION_NAME=RegionOne ++ isset ENABLED_SERVICES ++ [[ -v ENABLED_SERVICES ]] ++ ENABLED_SERVICES=key ++ ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch,n-novnc,n-cauth ++ ENABLED_SERVICES+=,g-api,g-reg ++ ENABLED_SERVICES+=,c-sch,c-api,c-vol ++ ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt,q-l3 ++ ENABLED_SERVICES+=,horizon ++ ENABLED_SERVICES+=,rabbit,tempest,mysql,dstat ++ ENABLE_HTTPD_MOD_WSGI_SERVICES=True ++ NOVA_ENABLED_APIS=osapi_compute,metadata ++ HORIZON_APACHE_ROOT=/dashboard +++ trueorfalse True USE_SCREEN +++ local xtrace ++++ grep xtrace ++++ set +o +++ xtrace='set -o xtrace' +++ set +o xtrace ++ USE_SCREEN=True +++ trueorfalse True SCREEN_IS_LOGGING +++ local xtrace ++++ set +o ++++ grep xtrace +++ xtrace='set -o xtrace' +++ set +o xtrace ++ SCREEN_IS_LOGGING=True ++ [[ -r /home/stack/devstack/.localrc.password ]] ++ export USE_PYTHON3=False ++ USE_PYTHON3 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-01-02 04:15:23 -0500

When you check the code in functions-common, you will see that this error happens when apt-get update fails. Try to run the command manually; perhaps your apt configuration is wrong.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-01-01 07:59:36 -0500

Seen: 2,071 times

Last updated: Jan 02 '17