Skip to content
New issue

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

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

Already on GitHub? # to your account

Journalctl reporting errors on Ubuntu 20.04 #635

Closed
s1nglethr3ad opened this issue Dec 7, 2021 · 4 comments
Closed

Journalctl reporting errors on Ubuntu 20.04 #635

s1nglethr3ad opened this issue Dec 7, 2021 · 4 comments
Assignees
Labels

Comments

@s1nglethr3ad
Copy link

Expected behaviour

Followed, Installation and configuration via GitHub (automated) on a fresh Ubuntu 20.04 vm.

Run journalctl with no errors.

Actual behaviour

Followed Installation and configuration via GitHub (automated) on a fresh Ubuntu 20.04 vm.

journalctl reports:
Dec 07 06:20:37 ubuntu cairisd.py[1329]: File "/usr/local/lib/python3.8/dist-packages/flask_script/init.py", line 15, in
Dec 07 06:20:37 ubuntu cairisd.py[1329]: from flask._compat import text_type
Dec 07 06:20:37 ubuntu cairisd.py[1329]: ModuleNotFoundError: No module named 'flask._compat'
Dec 07 06:20:37 ubuntu systemd[1]: cairis.service: Main process exited, code=exited, status=1/FAILURE
Dec 07 06:20:37 ubuntu systemd[1]: cairis.service: Failed with result 'exit-code'.
Dec 07 06:20:37 ubuntu systemd[1]: cairis.service: Scheduled restart job, restart counter is at 5.
Dec 07 06:20:37 ubuntu systemd[1]: Stopped cairisd.
Dec 07 06:20:37 ubuntu systemd[1]: cairis.service: Start request repeated too quickly.
Dec 07 06:20:37 ubuntu systemd[1]: cairis.service: Failed with result 'exit-code'.
Dec 07 06:20:37 ubuntu systemd[1]: Failed to start cairisd.

Steps to reproduce the behaviour

Install new Ubuntu 20.04 vm in VMWare fusion on Macbook.
Follow "Installation and configuration via GitHub (automated)"
run "journalctl -u cairis.service -f"

Version of CAIRIS

Latest

Details of browser or, if applicable, details of the OS used to host CAIRIS

user@ubuntu:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

@failys failys self-assigned this Dec 7, 2021
@failys
Copy link
Collaborator

failys commented Dec 7, 2021

This looks like an issue with Flask that affects the development server. This will affect the standard automated build script you're using. I'll need to look into this.

In the meantime, things should work if CAIRIS is run via mod_wsgi-express (which is what the live demo uses on Docker). You should be able to run the automated script to create a server, pass in dummy parameters for things like the email server. Once everything is set-up, just follow the instructions here to create a new account.

The other alternative is to follow the instructions for manual installation here then follow the optional instructions to install and run via mod_wsgi-express.

@failys
Copy link
Collaborator

failys commented Dec 7, 2021

@s1nglethr3ad : this should be fixed now. When I run "sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt install curl -y && sudo apt install net-tools -y && curl -s https://cairis.org/quickInstall.sh | bash -s my-secret-pw" , everything looks ok in the logs, and all appears to be good when I login to CAIRIS using Chromium on the VM.

If you get any problems, please let me know and I'll re-open this issue.

@failys failys closed this as completed Dec 7, 2021
@s1nglethr3ad
Copy link
Author

@s1nglethr3ad : this should be fixed now. When I run "sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt install curl -y && sudo apt install net-tools -y && curl -s https://cairis.org/quickInstall.sh | bash -s my-secret-pw" , everything looks ok in the logs, and all appears to be good when I login to CAIRIS using Chromium on the VM.

If you get any problems, please let me know and I'll re-open this issue.

Thank for looking into this. I will test out today.

@s1nglethr3ad
Copy link
Author

@failys, Works! Thank you :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants