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

Unable to view logs in webpage #76

Open
crowllx opened this issue Sep 30, 2023 · 1 comment · May be fixed by #79
Open

Unable to view logs in webpage #76

crowllx opened this issue Sep 30, 2023 · 1 comment · May be fixed by #79
Labels
bug Something isn't working

Comments

@crowllx
Copy link
Contributor

crowllx commented Sep 30, 2023

When logged in as an admin/instructor no command history shows up for any of the users when trying to view them on the scenario dashboard.
Specifically when viewing as an admin and not an instructor, i see the log data show up in npm output. Sometimes only after stopping the web server.

[CELERY] worker: Warm shutdown (MainProcess)
[FLASK] [['#INPUT', 'uniqueID', 'class', 'time', 'uid', 'cwd', 'node:input', 'output (trunc)'], ['INPUT', 'devuser1-ulab-0', 'A7 ', '1696106957', 'devuser1', '/home/devuser1', 'NAT:l', '\neditme/  final-mission/  followMe/  i/  stuff/  textfiles/  toLearn/\ndevuser1@NAT'], ['INPUT', 'devuser1-ulab-1', 'M0 ', '1696106959', 'devuser1', '/home/devuser1', 'NAT:cd followMe/', '\ndevuser1@NAT'], ['INPUT', 'devuser1-ulab-2', 'A1 A0 A9 ', '1696106963', 'devuser1', '/home/devuser1/followMe', 'NAT:cd ..', '\ndevuser1@NAT']]
[FLASK] [['#INPUT', 'uniqueID', 'class', 'time', 'uid', 'cwd', 'node:input', 'output (trunc)'], ['INPUT', 'devuser1-ulab-0', 'A7 ', '1696106957', 'devuser1', '/home/devuser1', 'NAT:l', '\neditme/  final-mission/  followMe/  i/  stuff/  textfiles/  toLearn/\ndevuser1@NAT'], ['INPUT', 'devuser1-ulab-1', 'M0 ', '1696106959', 'devuser1', '/home/devuser1', 'NAT:cd followMe/', '\ndevuser1@NAT'], ['INPUT', 'devuser1-ulab-2', 'A1 A0 A9 ', '1696106963', 'devuser1', '/home/devuser1/followMe', 'NAT:cd ..', '\ndevuser1@NAT']]

I have not been able to see any log data in the scenario dashboard using a simple case as an example so i believe this is different from the issue with null bytes being kept in the logs. Also I did test and observe this on the master branch.

@crowllx crowllx added the bug Something isn't working label Sep 30, 2023
@cookjackc
Copy link
Member

I think I've observed this too - this issue only effects auto-generated accounts.

Basically, the front-end might be looking for "devuser1" but the log file records them as "dev-user1" (or maybe the other way around)
On either end that hyphen isn't being removed, and so it's not accessible in the front-end.

Logs for manually registered students are viewable, as far as I know.
I had a 3 or 4 line fix for this at one point, but scrapped it during other changes.

Let me know and I'd be happy to try and troubleshoot it with you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants