greatbit / quack

Web Based Test Management System
Apache License 2.0
116 stars 34 forks source link

Exception in monitor thread while connecting to mongod:27017 #237

Closed bobbeck55 closed 1 year ago

bobbeck55 commented 1 year ago

Describe the bug Quack has a problem connecting to server mongod:27017

To Reproduce Ubuntu 22.04 cd quack docker-compose -f docker-compose.yml up

Expected behavior quack should start up and allow new users and test cases to be added. An attempt is made to add a new user.

Screenshots Actually, when quack attempted to connect to the mongod, there was an exception thrown. Seen screenshot. image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

azee commented 1 year ago

@bobbeck55 Can you please send the whole log? There should be mongo starting logs prior to QuAck app

azee commented 1 year ago

@bobbeck55 Please try pulling the latest changes. https://github.com/greatbit/quack/commit/e94e800b5d6dd755ea4ca9c41c1e0c0227017bd8 might help.

If not - please send me the whole compose log including mongo

bobbeck55 commented 1 year ago

I pulled the latest changes and used the same docker command as before. Log doesn't want to attach. I'll send attached to an email.

bobbeck55 commented 1 year ago

quack_up_log.txt Here's the log

bobbeck55 commented 1 year ago

I attached the log to issue 237 in github

On Wed, Feb 15, 2023 at 8:23 AM Azee @.***> wrote:

@bobbeck55 https://github.com/bobbeck55 Please try pulling the latest changes. e94e800 https://github.com/greatbit/quack/commit/e94e800b5d6dd755ea4ca9c41c1e0c0227017bd8 might help.

If not - please send me the whole compose log including mongo

— Reply to this email directly, view it on GitHub https://github.com/greatbit/quack/issues/237#issuecomment-1431363691, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZWTTVSYGSAQ7VUF7YYWW7TWXTKDRANCNFSM6AAAAAAU4HHUIM . You are receiving this because you were mentioned.Message ID: @.***>

azee commented 1 year ago

@bobbeck55 Log says:
WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that! mongod | see https://jira.mongodb.org/browse/SERVER-54407

Probably Mongo 5 that is specified in the compose won't work on your machine. Try changing this line locally https://github.com/greatbit/quack/blob/master/docker-compose.yml#L15 from image: mongo:5 to image: mongo:4.2

And try running compose again

bobbeck55 commented 1 year ago

Thanks for the mongodb 4.2 suggestion. The mongodb starts up successfully using "docker-compose -f docker-compose.yml up" with ":4.2" suffix on the image name. There are still authorization errors. Please see issue #238

What should I do now?

Thanks, Bob

On Wed, Feb 15, 2023 at 5:27 PM Azee @.***> wrote:

@bobbeck55 https://github.com/bobbeck55 Log says: WARNING: MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that! �[36mmongod |�[0m see https://jira.mongodb.org/browse/SERVER-54407

Probably Mongo 5 that is specified in the compose won't work on your machine. Try changing this line locally https://github.com/greatbit/quack/blob/master/docker-compose.yml#L15 from image: mongo:5 to image: mongo:4.2

And try running compose again

— Reply to this email directly, view it on GitHub https://github.com/greatbit/quack/issues/237#issuecomment-1432146246, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZWTTVVX4IOE5SZM57OI4BDWXVJ5JANCNFSM6AAAAAAU4HHUIM . You are receiving this because you were mentioned.Message ID: @.***>

azee commented 1 year ago

@bobbeck55 Will address authorisation error in related ticket.