Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Leantime
  3. can't enable 2FA, now can't log in! --- Redis issues

can't enable 2FA, now can't log in! --- Redis issues

Scheduled Pinned Locked Moved Solved Leantime
18 Posts 5 Posters 2.0k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • humptydumptyH Offline
    humptydumptyH Offline
    humptydumpty
    wrote on last edited by humptydumpty
    #4

    Yesterday, I lowered Redis to 512MB and left it for the night. I woke up today with multiple notifications that Redis ran out of memory again. I set it to 1GB again, let's see if it keeps crashing.

    image.png

    Content of error notification in CR dash:

    {
      "event": {
        "status": "oom",
        "id": "7633e58f336ce8e6a8219c5024ebec767b33705b47a86a888e2e60b4a83e4cfd",
        "from": "cloudron/redis:3.5.0@sha256:ee6da2599a72afaec1d80c41db9b5fe79c882fb920195659e871501ea2e94d18",
        "Type": "container",
        "Action": "oom",
        "Actor": {
          "ID": "7633e58f336ce8e6a8219c5024ebec767b33705b47a86a888e2e60b4a83e4cfd",
          "Attributes": {
            "image": "cloudron/redis:3.5.0@sha256:ee6da2599a72afaec1d80c41db9b5fe79c882fb920195659e871501ea2e94d18",
            "isCloudronManaged": "true",
            "location": "work.mydomain.com",
            "name": "redis-b261fedc-d6d5-4c52-994e-d4a2a04afa6a"
          }
        },
        "scope": "local",
        "time": 1690544668,
        "timeNano": 1690544668119625700
      },
      "containerId": "7633e58f336ce8e6a8219c5024ebec767b33705b47a86a888e2e60b4a83e4cfd",
      "addonName": "redis",
      "app": {
        "id": "b261fedc-d6d5-4c52-994e-d4a2a04afa6a",
        "appStoreId": "io.leantime.cloudronapp",
        "installationState": "installed",
        "runState": "running",
        "health": "healthy",
        "containerId": "6df6ee7d6e0b79ac6b0e0d93c95be82525ecbb2327e35e1c188b0659c50324a0",
        "memoryLimit": 2147483648,
        "cpuShares": 512,
        "label": "Work",
        "taskId": null,
        "sso": false,
        "enableBackup": true,
        "proxyAuth": false,
        "containerIp": "172.18.17.2",
        "crontab": null,
        "creationTime": "2023-07-27T19:25:56.000Z",
        "updateTime": "2023-07-27T19:25:56.000Z",
        "enableAutomaticUpdate": true,
        "upstreamUri": "",
        "enableMailbox": true,
        "mailboxDisplayName": "",
        "mailboxName": "work.app",
        "mailboxDomain": "mydomain.com",
        "enableInbox": false,
        "inboxName": null,
        "inboxDomain": null,
        "storageVolumeId": null,
        "storageVolumePrefix": null,
        "ts": "2023-07-28T00:15:44.000Z",
        "healthTime": "2023-07-28T11:44:20.000Z",
        "hasIcon": false,
        "hasAppStoreIcon": true,
        "manifest": {
          "id": "io.leantime.cloudronapp",
          "title": "Leantime",
          "author": "Marcel Folaron marcel@leantime.io",
          "description": "### Overview\n\nLeantime is a strategic open source project management system for innovative companies and teams looking to go from start to finish.\nBuilt for the non-project manager, we combine the plans and the work while making it easy for everyone on the team to use.\nIt's an alternative to ClickUp, Notion, and Asana. As simple as Trello but as feature rich as Jira.\n",
          "changelog": "* Add cron job runner every 5min\n* Fix uploading of company logo\n",
          "tagline": "Project management system",
          "postInstallMessage": "This app is pre-setup with an admin account. The initial credentials are:\n\n**Username**: admin@cloudron.local<br/>\n**Password**: changeme<br/>\n\nPlease change the password immediately.\n",
          "version": "0.2.0",
          "upstreamVersion": "2.3.27",
          "minBoxVersion": "7.3.0",
          "healthCheckPath": "/",
          "icon": "file://logo.png",
          "memoryLimit": 536870912,
          "httpPort": 8080,
          "addons": {
            "localstorage": {},
            "mysql": {},
            "sendmail": {},
            "scheduler": {
              "cron": {
                "schedule": "*/15 * * * *",
                "command": "/app/pkg/cron.sh"
              }
            },
            "redis": {
              "noPassword": true
            }
          },
          "manifestVersion": 2,
          "mediaLinks": [
            "https://screenshots.cloudron.io/io.leantime.cloudronapp/leantime_01.png"
          ],
          "website": "https://leantime.io",
          "forumUrl": "https://forum.cloudron.io/category/171/leantime",
          "documentationUrl": "https://docs.cloudron.io/apps/leantime/",
          "contactEmail": "support@cloudron.io",
          "tags": [
            "project",
            "management",
            "asana",
            "notion"
          ],
          "dockerImage": "cloudron/io.leantime.cloudronapp:20230725-152314-391ce997f"
        },
        "tags": [],
        "reverseProxyConfig": {},
        "portBindings": {},
        "accessRestriction": {
          "users": [
            "uid-98bc0e1b-b180-40b3-a2f2-841972a36235",
            "uid-8b545e3c-f964-4a5b-9ea2-626c172bef50",
            "uid-6e2d5af4-3e0d-4c5e-885c-387284fd28e5",
            "uid-7484a80c-9bd0-4bf1-a06e-c930105a0c0c"
          ],
          "groups": []
        },
        "operators": null,
        "debugMode": null,
        "servicesConfig": {
          "redis": {
            "memoryLimit": 536870912,
            "recoveryMode": false
          }
        },
        "secondaryDomains": [],
        "redirectDomains": [],
        "aliasDomains": [],
        "subdomain": "work",
        "domain": "mydomain.com",
        "certificate": null,
        "env": {},
        "mounts": [],
        "error": null,
        "iconUrl": "/api/v1/apps/b261fedc-d6d5-4c52-994e-d4a2a04afa6a/icon",
        "fqdn": "work.mydomain.com"
      }
    }
    
    1 Reply Last reply
    1
    • humptydumptyH humptydumpty has marked this topic as unsolved on
    • humptydumptyH Offline
      humptydumptyH Offline
      humptydumpty
      wrote on last edited by humptydumpty
      #5

      I created a new user. I clicked on the invite email that Leantime sent and set a password for the new account. Then, I activated 2FA. I logged out and tried to log back in and ran into the same login error. However, resetting the password seems to fix the issue permanently. Something is corrupting the passwords on newly create accounts including the admin account that the package creates on first install.

      To make this short, there are two issues that need looking into:

      • Redis OOM - I have it set to 1GB, and it's 80% full on idle.
      • Password Corruption - for all accounts and can be fixed by resetting the password and issue is gone permanently.
      L 1 Reply Last reply
      1
      • humptydumptyH Offline
        humptydumptyH Offline
        humptydumpty
        wrote on last edited by
        #6

        Redis didn't crash (yet) but it's getting there. Now it's 95% full and I haven't been using the app!

        image.png

        RoundHouse1924R 1 Reply Last reply
        1
        • humptydumptyH humptydumpty

          Redis didn't crash (yet) but it's getting there. Now it's 95% full and I haven't been using the app!

          image.png

          RoundHouse1924R Offline
          RoundHouse1924R Offline
          RoundHouse1924
          wrote on last edited by
          #7

          @humptydumpty What happens when you restart Redis?

          1 Reply Last reply
          0
          • humptydumptyH Offline
            humptydumptyH Offline
            humptydumpty
            wrote on last edited by humptydumpty
            #8

            If I restart Redis, it goes down a bit, but rises after a while.

            image.png

            1 Reply Last reply
            1
            • robiR Offline
              robiR Offline
              robi
              wrote on last edited by robi
              #9

              It looks like the Leantime app using redis is not using it well, not freeing memory. Needs to be more lean with Redis πŸ˜†

              Conscious tech

              humptydumptyH 1 Reply Last reply
              3
              • robiR robi

                It looks like the Leantime app using redis is not using it well, not freeing memory. Needs to be more lean with Redis πŸ˜†

                humptydumptyH Offline
                humptydumptyH Offline
                humptydumpty
                wrote on last edited by
                #10

                @robi can this be fixed in the packaging or should I report this upstream?

                robiR 1 Reply Last reply
                1
                • humptydumptyH humptydumpty

                  @robi can this be fixed in the packaging or should I report this upstream?

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #11

                  @humptydumpty upstream.

                  Conscious tech

                  humptydumptyH 1 Reply Last reply
                  2
                  • robiR robi

                    @humptydumpty upstream.

                    humptydumptyH Offline
                    humptydumptyH Offline
                    humptydumpty
                    wrote on last edited by
                    #12

                    @robi Thanks. I reported this upstream here: https://github.com/Leantime/leantime/issues/1780

                    1 Reply Last reply
                    2
                    • humptydumptyH Offline
                      humptydumptyH Offline
                      humptydumpty
                      wrote on last edited by
                      #13

                      It looks like this will take a while to get fixed upstream. Is it possible to disable Redis for now?

                      girishG 1 Reply Last reply
                      2
                      • humptydumptyH humptydumpty

                        It looks like this will take a while to get fixed upstream. Is it possible to disable Redis for now?

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #14

                        @humptydumpty we have a build now without redis, will publish shortly.

                        1 Reply Last reply
                        2
                        • girishG Offline
                          girishG Offline
                          girish
                          Staff
                          wrote on last edited by
                          #15

                          Published new package.

                          humptydumptyH 1 Reply Last reply
                          3
                          • girishG girish has marked this topic as solved on
                          • girishG girish

                            Published new package.

                            humptydumptyH Offline
                            humptydumptyH Offline
                            humptydumpty
                            wrote on last edited by
                            #16

                            @girish Thanks for the update!

                            1 Reply Last reply
                            0
                            • humptydumptyH humptydumpty

                              I created a new user. I clicked on the invite email that Leantime sent and set a password for the new account. Then, I activated 2FA. I logged out and tried to log back in and ran into the same login error. However, resetting the password seems to fix the issue permanently. Something is corrupting the passwords on newly create accounts including the admin account that the package creates on first install.

                              To make this short, there are two issues that need looking into:

                              • Redis OOM - I have it set to 1GB, and it's 80% full on idle.
                              • Password Corruption - for all accounts and can be fixed by resetting the password and issue is gone permanently.
                              L Offline
                              L Offline
                              LoudLemur
                              wrote on last edited by
                              #17

                              @humptydumpty Did you manage to get Two Factor Authentication (2FA) working?

                              After initial creation of an account, I tried to set up 2FA, but it wouldn't let me.

                              1 Reply Last reply
                              0
                              • humptydumptyH Offline
                                humptydumptyH Offline
                                humptydumpty
                                wrote on last edited by
                                #18

                                Yes, it’s working fine. You’re probably running into the issue where the password gets corrupted on first login. Log out, reset the password using the forgot pass button and try 2fa again. Iirc, this is fixed in the next upstream update.

                                1 Reply Last reply
                                1
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Bookmarks
                                • Search