Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: frontend: download extension logs #2962

Open
1 task done
ES-Alexander opened this issue Oct 16, 2024 · 3 comments · Fixed by #2963
Open
1 task done

core: frontend: download extension logs #2962

ES-Alexander opened this issue Oct 16, 2024 · 3 comments · Fixed by #2963
Assignees
Labels
core Issue related to BlueOS-core enhancement New feature or request triage Needs triage from developers ui User Interface feature

Comments

@ES-Alexander
Copy link
Collaborator

Current behaviour

Downloading system logs is typically only for BlueOS-core. When troubleshooting it can be relevant to have logs from other software running.

Expected or desired behaviour

Add an "include extension logs" checkbox to the System Log Files section, so the download button includes logs from the extensions directory (perhaps specifically any folder that's extensions/*/logs/).

Prerequisites

  • I have checked to make sure that a similar request has not already been filed or fixed.
@ES-Alexander ES-Alexander added enhancement New feature or request core Issue related to BlueOS-core ui User Interface feature triage Needs triage from developers labels Oct 16, 2024
@rotu
Copy link
Contributor

rotu commented Oct 17, 2024

I don't expect extensions to be able to log to file, especially if the extension fails to start unexpectedly. Maybe we should first add a way to download the existing docker logs with a link on the extensions manager page per #1611.

I had to resort to telling a user how to manually use the kraken API:

Navigate your web browser to http://blueos.local:9134/v2.0/list_containers and look for something that contains the words “sonarview” and the “name” field. It should be something like (maybe exactly) "/extension-nicknothomsonarview1100".

If that’s what it is, then go to the following URL (if the name is different, adjust this URL accordingly):

http://blueos-dan.local:9134/v2.0/log?container_name=/extension-nicknothomsonarview1100

@JoaoMario109
Copy link
Collaborator

JoaoMario109 commented Oct 17, 2024

Reopened it since the linked PR (#2963) only added downloading logs for individual extensions, not downloading all of them as an option when downloading the system logs.

@ES-Alexander
Copy link
Collaborator Author

I don't expect extensions to be able to log to file

Per #1640, extensions are expected to have file system access, and can put persistent logs there if they want to.

Maybe we should first add a way to download the existing docker logs with a link on the extensions manager page

That's what @JoaoMario109's PR just added :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issue related to BlueOS-core enhancement New feature or request triage Needs triage from developers ui User Interface feature
Projects
None yet
3 participants