Project

General

Profile

Actions

Bug #39486

closed

debian package from source - mgr module enable dashboard: Frontend assets not found

Added by Tobias Fischer about 5 years ago. Updated about 2 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
Category:
Build
Target version:
-
% Done:

0%

Source:
Tags:
mgr dashboard build source nautilus debian
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi,
I build Debian Buster (Testing) Packages for Nautilus (14.2.0) according to offcial guide (http://docs.ceph.com/docs/master/install/build-ceph/):
./install-deps.sh
sudo dpkg-buildpackage

Worked perfectly fine. But after installing all packages via dpkg -i and trying to enable mgr dashboard i get following error:

ceph mgr module enable dashboard
Error ENOENT: module 'dashboard' reports that it cannot run on the active manager daemon: Frontend assets not found: incomplete build? (pass --force to force enablement)

Did I miss something during creating the .deb packages or do i need to follow additional steps before enabling dashboard (although not mentioned in documentation)?

Best,
Tobi

Actions #1

Updated by Greg Farnum about 5 years ago

  • Project changed from Ceph to mgr
  • Category changed from build to Build
Actions #2

Updated by Tobias Fischer about 5 years ago

update: build new debian packages using "make-debs.sh" which is included in source. these packages include all frontend assets and thus i could enable dasboard. so the documentation should be updated.

Actions #3

Updated by Lenz Grimmer almost 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Lenz Grimmer
Actions #4

Updated by Lenz Grimmer almost 5 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 27997

I now submitted https://github.com/ceph/ceph/pull/27997 to improve the documentation - please review. Thank you!

Actions #5

Updated by Lenz Grimmer almost 5 years ago

  • Target version deleted (v14.2.0)
  • Backport set to nautilus
  • Affected Versions v14.0.0, v14.2.1, v15.0.0 added
Actions #6

Updated by Lenz Grimmer almost 5 years ago

  • Status changed from Fix Under Review to Need More Info
  • Pull request ID deleted (27997)

Looks like there is more conversation required - I removed the docs changes from PR#27997 until the open questions that have been raised there have been resolved.

Actions #7

Updated by Lenz Grimmer over 3 years ago

  • Status changed from Need More Info to Can't reproduce

Resolving as "can't reproduce" - I assume this issue has been resolved in the meanwhile.

Actions #8

Updated by Tim Small almost 3 years ago

FWIW, I'm apparently seeing this issue building 16.2 on Debian 11.

Actions #9

Updated by Sunil Angadi about 2 years ago

even i hit this issue in ceph version 17.0.0-11429-gbd85f2c1 (bd85f2c1c5bd4073566c8806788da7c4e9501a0c) quincy (dev)

http://pastebin.test.redhat.com/1042070

Enabling the dashboard module...
Non-zero exit code 2 from /usr/bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=quay.ceph.io/ceph-ci/ceph:master -e NODE_NAME=magna081 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/99ab9108-b401-11ec-9b06-002590fc2536:/var/log/ceph:z -v /tmp/ceph-tmp2k2csviw:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmprltlsvro:/etc/ceph/ceph.conf:z quay.ceph.io/ceph-ci/ceph:master mgr module enable dashboard
/usr/bin/ceph: stderr Error ENOENT: module 'dashboard' reports that it cannot run on the active manager daemon: Frontend assets not found at '/usr/build/src/pybind/mgr/dashboard/frontend/dist': incomplete build? (pass --force to force enablement)
Traceback (most recent call last):
File "./cephadm", line 8751, in <module>
main()
File "./cephadm", line 8739, in main
r = ctx.func(ctx)
File "./cephadm", line 1978, in _default_image
return func(ctx)
File "./cephadm", line 5216, in command_bootstrap
prepare_dashboard(ctx, uid, gid, cli, wait_for_mgr_restart)
File "./cephadm", line 4813, in prepare_dashboard
cli(['mgr', 'module', 'enable', 'dashboard'])
File "./cephadm", line 5147, in cli
).run(timeout=timeout)
File "./cephadm", line 3741, in run
desc=self.entrypoint, timeout=timeout)
File "./cephadm", line 1645, in call_throws
raise RuntimeError(f'Failed command: {" ".join(command)}: {s}')
RuntimeError: Failed command: /usr/bin/podman run --rm --ipc=host --stop-signal=SIGTERM --net=host --entrypoint /usr/bin/ceph --init -e CONTAINER_IMAGE=quay.ceph.io/ceph-ci/ceph:master -e NODE_NAME=magna081 -e CEPH_USE_RANDOM_NONCE=1 -v /var/log/ceph/99ab9108-b401-11ec-9b06-002590fc2536:/var/log/ceph:z -v /tmp/ceph-tmp2k2csviw:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmprltlsvro:/etc/ceph/ceph.conf:z quay.ceph.io/ceph-ci/ceph:master mgr module enable dashboard: Error ENOENT: module 'dashboard' reports that it cannot run on the active manager daemon: Frontend assets not found at '/usr/build/src/pybind/mgr/dashboard/frontend/dist': incomplete build? (pass --force to force enablement)

when I try to pass with --force as suggested.

[root@magna081 bin]# ./cephadm bootstrap --mon-ip 10.8.128.81 --initial-dashboard-password p@ssw0rd --dashboard-password-noupdate --shared_ceph_folder /root/ceph --allow-fqdn-hostname --force
usage: cephadm [-h] [--image IMAGE] [--docker] [--data-dir DATA_DIR]
[--log-dir LOG_DIR] [--logrotate-dir LOGROTATE_DIR]
[--sysctl-dir SYSCTL_DIR] [--unit-dir UNIT_DIR] [--verbose]
[--timeout TIMEOUT] [--retry RETRY] [--env ENV]
[--no-container-init] {version,pull,inspect-image,ls,list-networks,adopt,rm-daemon,rm-cluster,run,shell,enter,ceph-volume,zap-osds,unit,logs,bootstrap,deploy,check-host,prepare-host,add-repo,rm-repo,install,registry-login,gather-facts,host-maintenance,agent}
...
cephadm: error: unrecognized arguments: --force

Actions

Also available in: Atom PDF