yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #46317
[Bug 1545455] Re: devstack issue: OSError: [Errno 2] No such file or directory: '/opt/stack/horizon/openstack_dashboard/themes/webroot'
i got it fixed by myself by re-do everything. remove existing folders:
devstack , stack. then as following steps to re-do:
1. Download DevStack (i am using root user)
cd /opt
git clone https://git.openstack.org/openstack-dev/devstack
note: if error occurs, its better to remove the existing files and re-download.
2. Add stack user, even you already created stack user, you can run the command.
cd /opt/devstack/tools
./create-stack-user.sh
3. Change the ownership to stack.
cd /opt/
chown -R stack:stack /opt/devstack
4. switch to stack user (password is stack)
su stack
5. Additional changes, which block me for several days.
i have to edit /opt/devstack/stackrc file, change the line GIT_BASE=${GIT_BASE:-git://git.openstack.org} to GIT_BASE=${GIT_BASE:-https://git.openstack.org}, as the git:// is not available to me. (i am in China)
6. run stack.sh (remember now i am using stack user)
cd /opt/devstack
./stack.sh
Note: this will take a few hours to complete download. if error occurs, you can re-run ./stack.sh, as it will continue downloading the incomplete files, instead start from scratch.
7. once step 6 completed successfully, you will be able see log, saying
how long stack.sh completed
8. now you can goto browser to login the dashboard.
http://127.0.0.1:9080/dashboard
** Changed in: horizon
Status: New => Invalid
** Changed in: horizon
Assignee: (unassigned) => kaishen (kaishen-yang)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1545455
Title:
devstack issue: OSError: [Errno 2] No such file or directory:
'/opt/stack/horizon/openstack_dashboard/themes/webroot'
Status in OpenStack Dashboard (Horizon):
Invalid
Bug description:
hi Team,
i am new to Openstack, i am trying with Devstack. I am following the guide lines to setup devstack in one Virtual box machine (Ubuntu 14.04.3-server-amd64). when i run ./stack.sh, I always get error from console like following:
------------------------------------------------------
2016-02-14 13:41:15.957 | Starting Horizon
+ /opt/devstack/lib/horizon:init_horizon:L141: sudo rm -f '/var/log/apache2/horizon_*'
+ /opt/devstack/lib/horizon:init_horizon:L144: local django_admin
+ /opt/devstack/lib/horizon:init_horizon:L145: type -p django-admin
+ /opt/devstack/lib/horizon:init_horizon:L146: django_admin=django-admin
+ /opt/devstack/lib/horizon:init_horizon:L152: DJANGO_SETTINGS_MODULE=openstack_dashboard.settings
+ /opt/devstack/lib/horizon:init_horizon:L152: django-admin collectstatic --noinput
Traceback (most recent call last):
File "/usr/local/bin/django-admin", line 11, in <module>
sys.exit(execute_from_command_line())
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 168, in handle
collected = self.collect()
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 98, in collect
for path, storage in finder.list(self.ignore_patterns):
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/finders.py", line 112, in list
for path in utils.get_files(storage, ignore_patterns):
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/utils.py", line 28, in get_files
directories, files = storage.listdir(location)
File "/usr/local/lib/python2.7/dist-packages/django/core/files/storage.py", line 299, in listdir
for entry in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/opt/stack/horizon/openstack_dashboard/themes/webroot'
+ /opt/devstack/lib/horizon:init_horizon:L1: exit_trap
+ ./stack.sh:exit_trap:L474: local r=1
++ ./stack.sh:exit_trap:L475: jobs -p
+ ./stack.sh:exit_trap:L475: jobs=
+ ./stack.sh:exit_trap:L478: [[ -n '' ]]
+ ./stack.sh:exit_trap:L484: kill_spinner
+ ./stack.sh:kill_spinner:L370: '[' '!' -z '' ']'
+ ./stack.sh:exit_trap:L486: [[ 1 -ne 0 ]]
+ ./stack.sh:exit_trap:L487: echo 'Error on exit'
Error on exit
+ ./stack.sh:exit_trap:L488: generate-subunit 1455456924 353 fail
+ ./stack.sh:exit_trap:L489: [[ -z /opt/stack/logs ]]
+ ./stack.sh:exit_trap:L492: /opt/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2016-02-14-134118.txt for details
+ ./stack.sh:exit_trap:L498: exit 1
---------------------------------------------------------------------------------------------------------------------------------------------------------
Even this, I am trying to login the dashboard page, http://127.0.0.1:80/dashboard/auth/login/?next=/dashboard/, which always give error page like below:
----------------------------------------------------------------------------------
OfflineGenerationError at /auth/login/
You have offline compression enabled but key "6ce96d869b0874d9ca5eb30463383d77" is missing from offline manifest. You may need to run "python manage.py compress".
Request Method: GET
Request URL: http://127.0.0.1:9080/dashboard/auth/login/?next=/dashboard/
Django Version: 1.8.9
Exception Type: OfflineGenerationError
Exception Value:
You have offline compression enabled but key "6ce96d869b0874d9ca5eb30463383d77" is missing from offline manifest. You may need to run "python manage.py compress".
Exception Location: /usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py in render_offline, line 71
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/opt/stack/horizon/openstack_dashboard/wsgi/../..',
'/opt/stack/keystone',
'/opt/stack/glance',
'/opt/stack/cinder',
'/opt/stack/nova',
'/opt/stack/horizon',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/opt/stack/horizon/openstack_dashboard']
Server time: 星期日, 14 二月 2016 13:55:11 +0000
Error during template rendering
In template /opt/stack/horizon/openstack_dashboard/templates/_stylesheets.html, error at line 10
You have offline compression enabled but key "6ce96d869b0874d9ca5eb30463383d77" is missing from offline manifest. You may need to run "python manage.py compress".
--------------------------------------------------------------------------------------
Any help will be appreciated !
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1545455/+subscriptions
References