cairis-platform / cairis

Computer Aided Integration of Requirements and Information Security - Server
https://cairis.org
Apache License 2.0
148 stars 57 forks source link

server dies while installation. #657

Closed mehrdadasadiut closed 1 year ago

mehrdadasadiut commented 1 year ago

Expected behaviour

CAIRIS install successfully

Actual behaviour

server dies before installation (see picture)

Steps to reproduce the behaviour

install cairis using "Installation and configuration of server with account registration via GitHub (automated)"

Version of CAIRIS

latest

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

LINUX ubuntu 20 , 16 gb ram 16 vCore 10 gb storage

serverdies
mehrdadasadiut commented 1 year ago

I get the same error when followed the path of "install from github manually). One I finish the quickstart.py part and make the configurations, the error : [AttributeError: module 'sqlalchemy.orm' has no attribute 'DeclarativeMeta'] appears and no go further.

mehrdadasadiut commented 1 year ago
Capture222
failys commented 1 year ago

It sounds like a problem relating to the recent SQL Alchemy update that is breaking Flask Security, but I'll take a look.

mehrdadasadiut commented 1 year ago

Do you think that you can help me fix it soon? We need to deploy CAIRIS for our project on a linux ubuntu server. Or is there any other version of SLQ Alchemy that fix the issue meanwhile? Actually I followed all installation guidelines (different onces) and none of them resulted successfully..

failys commented 1 year ago

If you need something now then have you tried using the CAIRIS docker container? The live demo seems ok, so this should be ok for you too. I'm looking at this now though.

mehrdadasadiut commented 1 year ago

Yes already tried the container also. Please look at the other issue I made. The server gives an internal error on localhost:80 and not responding. Although as you can see the containers were running (docker ps)

mehrdadasadiut commented 1 year ago

Thanks for helping out.

failys commented 1 year ago

I've pushed an update that should fix this problem. Can you please try doing a clean automated install again?

mehrdadasadiut commented 1 year ago

ok I go for it right now.

mehrdadasadiut commented 1 year ago

The error did not appear anymore. So that means localhost:8000 should provide the CAIRIS, right? The server is still inaccible using HTTP://localhost:8000 and its really strange.

failys commented 1 year ago

Depends on how you install it. From Vagrant, it's accessible from http://localhost:7071

failys commented 1 year ago

I've done a clean install via Vagrant and everything seems good now.

mehrdadasadiut commented 1 year ago

As I was supposed to, I installed from the guidelines you provided as "Installation and configuration of server with account registration via GitHub (automated)"

mehrdadasadiut commented 1 year ago

I did not get any error this time. Meaning that the SQL Alchemy conflict is resolved by the recent push you have done.