wechange-eg / cosinnus-devops

Devops repository for the WECHANGE suite. Your starting point to contribute to WECHANGE.
GNU Affero General Public License v3.0
22 stars 9 forks source link

cosinnus-devops_hubot_1 exited with code 1 #40

Open kaffeeweisser2020 opened 4 years ago

kaffeeweisser2020 commented 4 years ago

Hi The docker-script stopps with following message:

cosinnus-devops_hubot_1 exited with code 1

What to do?

CU

marfrede commented 3 years ago

Same error here. Also, the following output seems to be endlessly repeated over and over again: (during docker-compose up) :

hubot_1               | npm info ok
hubot_1               | [Fri Jan 08 2021 13:18:11 GMT+0000 (UTC)] INFO Starting Rocketchat adapter version 1.0.11...
hubot_1               | [Fri Jan 08 2021 13:18:11 GMT+0000 (UTC)] INFO Once connected to rooms I will respond to the name: bot
hubot_1               | [Fri Jan 08 2021 13:18:11 GMT+0000 (UTC)] INFO Connecting To: rocketchat:3000
hubot_1               | [Fri Jan 08 2021 13:18:11 GMT+0000 (UTC)] INFO Successfully connected!
hubot_1               | [Fri Jan 08 2021 13:18:11 GMT+0000 (UTC)] INFO GENERAL
hubot_1               | [Fri Jan 08 2021 13:18:11 GMT+0000 (UTC)] INFO Logging In
hubot_1               | [Fri Jan 08 2021 13:18:11 GMT+0000 (UTC)] ERROR Unable to Login: {"isClientSafe":true,"error":403,"reason":"User not found","message":"User not found [403]","errorType":"Meteor.Error"} Reason: User not found
hubot_1               | [Fri Jan 08 2021 13:18:11 GMT+0000 (UTC)] ERROR If joining GENERAL please make sure its using all caps.
hubot_1               | [Fri Jan 08 2021 13:18:11 GMT+0000 (UTC)] ERROR If using LDAP, turn off LDAP, and turn on general user registration with email verification off.
cosinnus-devops_hubot_1 exited with code 1

perhaps this is not a relevant error at all.

saschasommer commented 3 years ago

@kaffeeweisser2020 @marfrede sorry for not responding for such a long time. If it is still relevant, we have just added some fixes to the build which might well resolve your issues. Please try running the docker script again (from scratch) and tell us if this resolved your issues!

marfrede commented 3 years ago

Hallo Sascha, danke für die Info!

Folgende 4 Punkte / Probleme / Infos sind während docker-compose up aufgefallen:

  1. Das Skript kommt noch immer nicht über die Stelle hinaus, die oben bereits angegeben wurde: cosinnus-devops_hubot_1 exited with code 1

  2. Außerdem folgende Warnung zuvor:

      npm WARN npm npm does not support Node.js v8.17.0
      npm WARN npm You should probably upgrade to a newer version of node as we
      npm WARN npm can't make any promises that npm will work with this version.
      npm WARN npm You can find the latest version at https://nodejs.org/

    node und npm wurde daraufhin geupdated (node -v: 15.2.0, npm -v: 7.6.3), die Warnung blieb.

  3. Auf die Django Admin Seite unsereserverdomain.de:8000 oder unsereserverdomain.de:8000/admin kann nicht zugegriffen werden. ERR_CONNECTION_REFUSED.

  4. Auf Port 3000 (unsereserverdomain.de:3000) KANN jedoch zugegriffen werden. Wir haben unter :3000/setup-wizard/1 einen Rocketchat Account erstellt, konnten uns jedoch nicht anmelden:

    • auf /login folgte zwar eine 200er Response, allerdings mit "User not found" Fehler: {"message":"{\"msg\":\"result\",\"id\":\"6\",\"error\":{\"isClientSafe\":true,\"error\":403,\"reason\":\"User not found\",\"message\":\"User not found [403]\",\"errorType\":\"Meteor.Error\"}}","success":true}

    • Derselbe Fehler trat übrigens auch auf, wenn versucht wurde sich mit den Zugangsdaten "bot", "botpassword" aus dem docker-compose.yaml einzuloggen.

saschasommer commented 3 years ago

@marfrede Hi Marvin, sorry to hear that there are still errors in the docker script. Unfortunately, I don't have the time to check out what might be going wrong right now.

But the docker-way of running the build is only a quick solution to get everything up and running, but not really a great solution to have a good development environment for wechange. If you want to actively work on the code, you are definitely better off setting up the environment as described with Option B here: https://github.com/wechange-eg/cosinnus-devops/blob/master/README.md#option-b-setup-local-development-manually

Have you tried to set it up like this?