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. Umami
  3. Umami 2.2.0 tracker XHR request works only on every second app restart

Umami 2.2.0 tracker XHR request works only on every second app restart

Scheduled Pinned Locked Moved Umami
38 Posts 6 Posters 5.1k Views 6 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.
  • d19dotcaD d19dotca

    @girish is it possible to deploy the latest image on top of the existing one and force an upgrade? It seems like the easier way to go for those who already updated so data isn’t lost. When I check for updates it doesn’t see the latest image though with the fix in it.

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

    @d19dotca so you are already on 3.0.0 or are you on 3.0.0-1 ? I am wondering how you ever upgaded because after upgrade from 2.x the login fails. Did that not happen in your case ?

    d19dotcaD 1 Reply Last reply
    0
    • girishG girish

      @d19dotca so you are already on 3.0.0 or are you on 3.0.0-1 ? I am wondering how you ever upgaded because after upgrade from 2.x the login fails. Did that not happen in your case ?

      d19dotcaD Offline
      d19dotcaD Offline
      d19dotca
      wrote on last edited by
      #13

      @girish No, I never had any issues logging in. The package version shown in Cloudron for Umami is this one: is.umami.cloudronapp@3.1.0 (so it would seem neither of those image options).

      13f57b76-5937-4f91-8b35-1383de7b9f6e-image.png

      --
      Dustin Dauncey
      www.d19.ca

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #14

        The package versions are:

        • v2.4.2
        • v3.0.0 - was revoked, had a migration issue
        • v3.0.0-1
        • v3.1.0 - this is the latest

        so, you are at the latest already.

        I assume you still have the problem ? I have no idea unfortunately what could be going wrong, we might have to ask upstream. Otherwise, depending on your setup, I simply suggest starting afresh. My understanding is umami 2 -> 3 nuked all historical event data anyways.

        d19dotcaD 1 Reply Last reply
        0
        • girishG girish

          The package versions are:

          • v2.4.2
          • v3.0.0 - was revoked, had a migration issue
          • v3.0.0-1
          • v3.1.0 - this is the latest

          so, you are at the latest already.

          I assume you still have the problem ? I have no idea unfortunately what could be going wrong, we might have to ask upstream. Otherwise, depending on your setup, I simply suggest starting afresh. My understanding is umami 2 -> 3 nuked all historical event data anyways.

          d19dotcaD Offline
          d19dotcaD Offline
          d19dotca
          wrote on last edited by
          #15

          @girish Yes, I still see the issue, just tested again a few moments ago to confirm. If I restart the Umami app, the error is seen by all client sites. If I restart it again, suddenly it's fixed... until I restart it again. It's super strange.

          I believe 3.1.0 was the only package available when I was able to get to upgrading the Umami app, is it possible there was maybe something that got skipped since I missed the 3.0.0 package version? I assume it should work fine if upgrading straight to 3.1.0 from 2.4.2 (assuming 2.4.2 was the pre-v2 Umami version).

          @girish said in Umami 2.2.0 tracker XHR request works only on every second app restart:

          Otherwise, depending on your setup, I simply suggest starting afresh. My understanding is umami 2 -> 3 nuked all historical event data anyways.

          I've had this running for an about 4 months now, so I'd rather not lose all of that data. The Umami upgrade did not remove any of that data that I can see. Not sure if that's the correct expectation of the Umami upgrade, pretty sure it still keeps the data. I think the only thing it wasn't expected to bring forward to v2 was the event data (i.e. button clicks, etc) but that wasn't setup in mine so there were no event data anyways, just the regular page hits with metrics/data. Ref: https://umami.is/docs/migrate-v1-v2

          --
          Dustin Dauncey
          www.d19.ca

          girishG 1 Reply Last reply
          0
          • d19dotcaD d19dotca

            @girish Yes, I still see the issue, just tested again a few moments ago to confirm. If I restart the Umami app, the error is seen by all client sites. If I restart it again, suddenly it's fixed... until I restart it again. It's super strange.

            I believe 3.1.0 was the only package available when I was able to get to upgrading the Umami app, is it possible there was maybe something that got skipped since I missed the 3.0.0 package version? I assume it should work fine if upgrading straight to 3.1.0 from 2.4.2 (assuming 2.4.2 was the pre-v2 Umami version).

            @girish said in Umami 2.2.0 tracker XHR request works only on every second app restart:

            Otherwise, depending on your setup, I simply suggest starting afresh. My understanding is umami 2 -> 3 nuked all historical event data anyways.

            I've had this running for an about 4 months now, so I'd rather not lose all of that data. The Umami upgrade did not remove any of that data that I can see. Not sure if that's the correct expectation of the Umami upgrade, pretty sure it still keeps the data. I think the only thing it wasn't expected to bring forward to v2 was the event data (i.e. button clicks, etc) but that wasn't setup in mine so there were no event data anyways, just the regular page hits with metrics/data. Ref: https://umami.is/docs/migrate-v1-v2

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

            @d19dotca yes, that update route sounds plausible. We released 3.0.0-1 after 3.1.0 . Weird but this was because we found the issue in 3.0.0 later (when you reported this bug).

            So, at this point, there is nothing to update for you. We also don't know why it seems to work only every restart. Maybe clone the app and see if it's reproducible in the cloned app. It's easier for us to debug then on the cloned instance.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stefano
              wrote on last edited by
              #17

              I just did a fresh install of Umami a few days ago, on May 13th, and I am experiencing the same exact issue.

              Initially everything works.
              If I restart the app, then on the site it loads a 200 for the js file but a 400 for the XHR request (so the data is not logged).
              If I restart the app again, it works again as expected.
              And so on...

              The only customization I have is in the env.sh where I added

              export TRACKER_SCRIPT_NAME=get.js
              export COLLECT_API_ENDPOINT=/api/get
              

              The installed version is:

              App Title and Version: Umami 2.2.0
              Package Version: is.umami.cloudronapp@3.1.0
              
              1 Reply Last reply
              2
              • jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by
                #18

                I recently updated (funnily enough also on 13 May). I don't really use it much so only just went to look and lo and behold, zero data has been captured since 13 May (I also note that contrary to the warnings, the old data seems to still be there).

                I've just restarted the app to see if like others on this thread that somehow magically makes the data collection work again... didn't seem to.

                I use Cloudron with Gandi & Hetzner

                robiR 1 Reply Last reply
                1
                • jdaviescoatesJ jdaviescoates

                  I recently updated (funnily enough also on 13 May). I don't really use it much so only just went to look and lo and behold, zero data has been captured since 13 May (I also note that contrary to the warnings, the old data seems to still be there).

                  I've just restarted the app to see if like others on this thread that somehow magically makes the data collection work again... didn't seem to.

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

                  @jdaviescoates validate your tracker script still works and is being called correctly, or simply reinstall it with the new version with copy/pasta.

                  Conscious tech

                  1 Reply Last reply
                  1
                  • d19dotcaD d19dotca referenced this topic on
                  • S Offline
                    S Offline
                    stefano
                    wrote on last edited by
                    #20

                    This issue persists and can't understand why it's happening.
                    Every time a reboot is required I need to remember to manually restart Umami, or it stops working.

                    So weird that it happens every other reboot/restart.

                    girishG 1 Reply Last reply
                    2
                    • d19dotcaD Offline
                      d19dotcaD Offline
                      d19dotca
                      wrote on last edited by
                      #21

                      I agree, this is a bizarre issue and unfortunately I can't yet figure out where the issue is coming from.

                      --
                      Dustin Dauncey
                      www.d19.ca

                      1 Reply Last reply
                      1
                      • S stefano

                        This issue persists and can't understand why it's happening.
                        Every time a reboot is required I need to remember to manually restart Umami, or it stops working.

                        So weird that it happens every other reboot/restart.

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

                        @stefano Is yours with a fresh install or migrated from Umami 1 ?

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          stefano
                          wrote on last edited by stefano
                          #23

                          Fresh install. I installed Umami for the first time on May 13th.

                          The installed versions are:

                          App Title and Version: Umami 2.2.0
                          Package Version: is.umami.cloudronapp@3.1.0
                          
                          girishG 1 Reply Last reply
                          0
                          • S stefano

                            Fresh install. I installed Umami for the first time on May 13th.

                            The installed versions are:

                            App Title and Version: Umami 2.2.0
                            Package Version: is.umami.cloudronapp@3.1.0
                            
                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #24

                            @stefano I missed your initial post about your setup. Do you see the same behavior with different browsers and ad block extensions disabled? I will try to reproduce this again in the meantime.

                            d19dotcaD 1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              stefano
                              wrote on last edited by
                              #25

                              Ok, no worries 🙂

                              Yes, it doesn't depend on the browser. I tried with Chrome, Edge, Firefox and Brave (even with shields off), without any ad-blocking extension enabled.

                              1 Reply Last reply
                              1
                              • girishG girish

                                @stefano I missed your initial post about your setup. Do you see the same behavior with different browsers and ad block extensions disabled? I will try to reproduce this again in the meantime.

                                d19dotcaD Offline
                                d19dotcaD Offline
                                d19dotca
                                wrote on last edited by
                                #26

                                @girish just wanted to ask about an update on this one.

                                --
                                Dustin Dauncey
                                www.d19.ca

                                girishG 1 Reply Last reply
                                1
                                • d19dotcaD d19dotca

                                  @girish just wanted to ask about an update on this one.

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

                                  @d19dotca will try this again...

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

                                    Out of curiosity, is anyone else seeing this behavior?

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      Meuschke
                                      wrote on last edited by Meuschke
                                      #29

                                      @girish It seems that this behavior happens for me too.
                                      This seems to be browser independent. Restarting the Umami application then helps.

                                      1 Reply Last reply
                                      3
                                      • girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by
                                        #30

                                        I tried to reproduce this but I am not able to. Here's what I did:

                                        • Install umami
                                        • Add domain in umami.
                                        • Install surfer
                                        • Put tracking code from umami into a sample index.html
                                        • I refresh index.html 10 times. I see 10 in umami

                                        Is there something special I need to do?

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          stefano
                                          wrote on last edited by stefano
                                          #31

                                          Try restarting either Umami or rebooting the server, after that Umami should stop working (you will see an error in the browser's console when loading the site).
                                          Then after restarting/rebooting again, it will work again.

                                          Basically it stops working every other reboot, so when a reboot is needed I need to reboot twice to get Umami to work.

                                          Not sure if it matters, but in my case the website I am tracking is on a different server than Umami.

                                          1 Reply Last reply
                                          3
                                          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