<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Umami 2.2.0 tracker XHR request works only on every second app restart]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'm noticing a very strange issue which I can't quite explain too well. I tried upgrading to Umami 2.2.0 and everything seems to work well. However, when testing on client sites to make sure the script is still loading, I get into a weird loop.</p>
<p dir="auto">In scenario 1: The client site loads everything fine and with a 200 response (both the js file and XHR request).</p>
<p dir="auto">In scenario 2: The client site loads a 200 for the js file but a 400 for the XHR request (so the data is not logged).</p>
<p dir="auto">I do not see any errors, however in testing, I can reproduce this 50% of the time. If I restart the app using the Cloudron interface, it will fix the issue. If I restart the app again, the issue returns, and so-forth in a loop if I were to restart it again for example.</p>
<p dir="auto">In comparing the logs, I've got these which I can't quite tell a difference at all. Would love some insight into this please and would love to know if anyone else has this issue too. I've tried with a default <a href="http://env.sh" target="_blank" rel="noopener noreferrer nofollow ugc">env.sh</a> but still get the 50% behaviour by the way. Here's my current setup modified from defaults (remembering I get the exact same behaviour when using defaults too):</p>
<pre><code>export HASH_SALT=&lt;redacted&gt;
export TRACKER_SCRIPT_NAME=umami2.js
export COLLECT_API_ENDPOINT=/api/umamisend
export REMOVE_TRAILING_SLASH=1
export DISABLE_UPDATES=1
</code></pre>
<p dir="auto">Working:</p>
<pre><code>May 01 23:57:23 Gyarn run v1.22.19
May 01 23:57:23 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 01 23:57:23 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 01 23:57:23 G$ npm-run-all build-db check-db build-tracker build-geo build-app
May 01 23:57:23 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 01 23:57:24 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 01 23:57:24 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 01 23:57:24 G$ npm-run-all copy-db-files build-db-client
May 01 23:57:24 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 01 23:57:24 box:tasks update 20219: {"percent":100,"message":"Done"}
May 01 23:57:24 box:taskworker Task took 1.493 seconds
May 01 23:57:24 box:tasks setCompleted - 20219: {"result":null,"error":null}
May 01 23:57:24 box:tasks update 20219: {"percent":100,"result":null,"error":null}
May 01 23:57:24 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 01 23:57:24 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 01 23:57:24 G$ node scripts/copy-db-files.js
May 01 23:57:24 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 01 23:57:24 Database type detected: postgresql
May 01 23:57:24 Copied /app/code/db/postgresql to /app/code/prisma
May 01 23:57:24 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 01 23:57:24 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 01 23:57:24 G$ prisma generate
May 01 23:57:24 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 01 23:57:25 Prisma schema loaded from prisma/schema.prisma
May 01 23:57:26
May 01 23:57:26 ✔ Generated Prisma Client (4.13.0 | library) to ./node_modules/@prisma/client in 155ms
May 01 23:57:26 You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
May 01 23:57:26 ```
May 01 23:57:26 import { PrismaClient } from '@prisma/client'
May 01 23:57:26 const prisma = new PrismaClient()
May 01 23:57:26 ```
May 01 23:57:26 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 01 23:57:26 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 01 23:57:26 G$ node scripts/check-db.js
May 01 23:57:26 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 01 23:57:26 ✓ DATABASE_URL is defined.
May 01 23:57:26 ✓ Database connection successful.
May 01 23:57:26 ✓ Database version check successful.
May 01 23:57:27 Prisma schema loaded from prisma/schema.prisma
May 01 23:57:27 Datasource "db": PostgreSQL database "db4076b39b249a4e4c82cf9eadf24b0475", schema "public" at "postgresql"
May 01 23:57:27
May 01 23:57:27 1 migration found in prisma/migrations
May 01 23:57:27
May 01 23:57:27
May 01 23:57:27 No pending migrations to apply.
May 01 23:57:27
May 01 23:57:27 ✓ Database is up to date.
May 01 23:57:27 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 01 23:57:27 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 01 23:57:27 G$ rollup -c rollup.tracker.config.js
May 01 23:57:27 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 01 23:57:27
May 01 23:57:27 tracker/index.js → public/script.js...
May 01 23:57:28 created public/script.js in 386ms
May 01 23:57:28 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 01 23:57:28 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 01 23:57:28 G$ node scripts/build-geo.js
May 01 23:57:28 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 01 23:57:29 Saved geo database: /app/code/geo/GeoLite2-City.mmdb
May 01 23:57:29 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 01 23:57:29 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 01 23:57:29 G$ next build
May 01 23:57:29 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 01 23:57:30 =&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.16.2:3000
May 01 23:57:30 info - Skipping validation of types
May 01 23:57:30 info - Skipping linting
May 01 23:57:40 =&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.16.2:3000
May 01 23:57:40 ?25linfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...G?25hinfo - Compiled successfully
May 01 23:57:42 ?25linfo - Creating an optimized production build .?25linfo - Collecting page data .Ginfo - Creating an optimized production build ..Ginfo - Collecting page data ..Ginfo - Creating an optimized production build ...Ginfo - Collecting page data ...Ginfo - Creating an optimized production build .Ginfo - Collecting page data .Ginfo - Creating an optimized production build ..Ginfo - Collecting page data ..Ginfo - Creating an optimized production build ...Ginfo - Collecting page data ...Ginfo - Creating an optimized production build .Ginfo - Collecting page data .Ginfo - Creating an optimized production build ..Ginfo - Collecting page data ..Ginfo - Creating an optimized production build ...Ginfo - Collecting page data ...Ginfo - Creating an optimized production build .Ginfo - Collecting page data .Ginfo - Creating an optimized production build ..Ginfo - Collecting page data ..Ginfo - Creating an optimized production build ...Ginfo - Collecting page data ...G?25hinfo - Collecting page data
May 01 23:57:42 ?25l[ ] info - Generating static pages (0/10)Ginfo - Creating an optimized production build .G?25hG?25hinfo - Generating static pages (10/10)
May 01 23:57:42 ?25linfo - Creating an optimized production build .?25linfo - Finalizing page optimization .G?25hinfo - Finalizing page optimization
May 01 23:57:42 G?25h
May 01 23:57:42 ?25linfo - Creating an optimized production build .G?25hRoute (pages) Size First Load JS
May 01 23:57:42 ┌ ○ / 290 B 504 kB
May 01 23:57:42 ├ /_app 0 B 503 kB
May 01 23:57:42 ├ ○ /404 2.67 kB 545 kB
May 01 23:57:42 ├ └ css/c4094e7fe30124b9.css 1.16 kB
May 01 23:57:42 ├ λ /api/auth/login 0 B 503 kB
May 01 23:57:42 ├ λ /api/auth/logout 0 B 503 kB
May 01 23:57:42 ├ λ /api/auth/sso 0 B 503 kB
May 01 23:57:42 ├ λ /api/auth/verify 0 B 503 kB
May 01 23:57:42 ├ λ /api/config 0 B 503 kB
May 01 23:57:42 ├ λ /api/heartbeat 0 B 503 kB
May 01 23:57:42 ├ λ /api/me 0 B 503 kB
May 01 23:57:42 ├ λ /api/me/password 0 B 503 kB
May 01 23:57:42 ├ λ /api/me/websites 0 B 503 kB
May 01 23:57:42 ├ λ /api/realtime/[id] 0 B 503 kB
May 01 23:57:42 ├ λ /api/scripts/telemetry 0 B 503 kB
May 01 23:57:42 ├ λ /api/send 0 B 503 kB
May 01 23:57:42 ├ λ /api/share/[id] 0 B 503 kB
May 01 23:57:42 ├ λ /api/teams 0 B 503 kB
May 01 23:57:42 ├ λ /api/teams/[id] 0 B 503 kB
May 01 23:57:42 ├ λ /api/teams/[id]/users 0 B 503 kB
May 01 23:57:42 ├ λ /api/teams/[id]/users/[userId] 0 B 503 kB
May 01 23:57:42 ├ λ /api/teams/[id]/websites 0 B 503 kB
May 01 23:57:42 ├ λ /api/teams/[id]/websites/[websiteId] 0 B 503 kB
May 01 23:57:42 ├ λ /api/teams/join 0 B 503 kB
May 01 23:57:42 ├ λ /api/users 0 B 503 kB
May 01 23:57:42 ├ λ /api/users/[id] 0 B 503 kB
May 01 23:57:42 ├ λ /api/users/[id]/websites 0 B 503 kB
May 01 23:57:42 ├ λ /api/websites 0 B 503 kB
May 01 23:57:42 ├ λ /api/websites/[id] 0 B 503 kB
May 01 23:57:42 ├ λ /api/websites/[id]/active 0 B 503 kB
May 01 23:57:42 ├ λ /api/websites/[id]/eventData 0 B 503 kB
May 01 23:57:42 ├ λ /api/websites/[id]/events 0 B 503 kB
May 01 23:57:42 ├ λ /api/websites/[id]/metrics 0 B 503 kB
May 01 23:57:42 ├ λ /api/websites/[id]/pageviews 0 B 503 kB
May 01 23:57:42 ├ λ /api/websites/[id]/reset 0 B 503 kB
May 01 23:57:42 ├ λ /api/websites/[id]/stats 0 B 503 kB
May 01 23:57:42 ├ λ /console/[[...id]] 3.75 kB 614 kB
May 01 23:57:42 ├ └ css/0794f04c077896d1.css 2.48 kB
May 01 23:57:42 ├ ○ /dashboard 37.1 kB 644 kB
May 01 23:57:42 ├ └ css/d2f5eda4d3c93dbd.css 2.62 kB
May 01 23:57:42 ├ λ /login 1.37 kB 505 kB
May 01 23:57:42 ├ └ css/86ff2f277829477c.css 316 B
May 01 23:57:42 ├ λ /logout 399 B 504 kB
May 01 23:57:42 ├ ○ /realtime 3.14 kB 546 kB
May 01 23:57:42 ├ └ css/6ad4b9d7611b13d1.css 1.33 kB
May 01 23:57:42 ├ ○ /realtime/[id] 7.29 kB 654 kB
May 01 23:57:42 ├ └ css/d2622a2458130282.css 2.67 kB
May 01 23:57:42 ├ ○ /settings/profile 4.29 kB 640 kB
May 01 23:57:42 ├ └ css/a37cb2f80f94b2ae.css 1.62 kB
May 01 23:57:42 ├ λ /settings/teams 2.21 kB 548 kB
May 01 23:57:42 ├ └ css/3fb4c7181892eb6b.css 1.58 kB
May 01 23:57:42 ├ λ /settings/teams/[id] 3 kB 549 kB
May 01 23:57:42 ├ └ css/855615cd30af540d.css 1.64 kB
May 01 23:57:42 ├ λ /settings/users 2.61 kB 548 kB
May 01 23:57:42 ├ λ /settings/users/[id] 1.88 kB 548 kB
May 01 23:57:42 ├ λ /settings/websites 1.66 kB 547 kB
May 01 23:57:42 ├ λ /settings/websites/[id] 2.31 kB 548 kB
May 01 23:57:42 ├ └ css/7879ec0c552148c6.css 1.45 kB
May 01 23:57:42 ├ ○ /share/[...id] 1.47 kB 716 kB
May 01 23:57:42 ├ └ css/f0b95fb59dffa0de.css 2.82 kB
May 01 23:57:42 ├ ○ /sso 354 B 504 kB
May 01 23:57:42 └ ○ /websites/[id] 2.66 kB 693 kB
May 01 23:57:42 └ css/6489468d7dc0fbd5.css 3.16 kB
May 01 23:57:42 + First Load JS shared by all 512 kB
May 01 23:57:42 ├ chunks/framework-2c79e2a64abdb08b.js 45.2 kB
May 01 23:57:42 ├ chunks/main-0edb7910d6dbf988.js 30.6 kB
May 01 23:57:42 ├ chunks/pages/_app-0e67ddf2180faf84.js 427 kB
May 01 23:57:42 ├ chunks/webpack-38cee4c0e358b1a3.js 862 B
May 01 23:57:42 └ css/e18ca99b696549e2.css 8.32 kB
May 01 23:57:42 ?25linfo - Creating an optimized production build .G?25h
May 01 23:57:42 ?25linfo - Creating an optimized production build .G?25hλ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
May 01 23:57:42 ○ (Static) automatically rendered as static HTML (uses no initial props)
May 01 23:57:42 ?25linfo - Creating an optimized production build .G?25h
May 01 23:57:42 ?25linfo - Creating an optimized production build .?25hG$ node scripts/postbuild.js
May 01 23:57:42 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 01 23:57:43 GDone in 19.68s.
May 01 23:57:43 =&gt; Running migrations
May 01 23:57:43 Gyarn run v1.22.19
May 01 23:57:43 Gwarning Skipping preferred cache folder "/home/cloudron/.cache/yarn" because it is not writable.
May 01 23:57:43 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1000".
May 01 23:57:43 G$ prisma migrate deploy
May 01 23:57:43 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /home/cloudron/.yarn"
May 01 23:57:44 Prisma schema loaded from prisma/schema.prisma
May 01 23:57:44 Datasource "db": PostgreSQL database "db4076b39b249a4e4c82cf9eadf24b0475", schema "public" at "postgresql"
May 01 23:57:44
May 01 23:57:44 1 migration found in prisma/migrations
May 01 23:57:44
May 01 23:57:44
May 01 23:57:44 No pending migrations to apply.
May 01 23:57:44 GDone in 0.70s.
May 01 23:57:44 ==&gt; Starting Umami
May 01 23:57:44 Gyarn run v1.22.19
May 01 23:57:44 Gwarning Skipping preferred cache folder "/home/cloudron/.cache/yarn" because it is not writable.
May 01 23:57:44 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1000".
May 01 23:57:44 G$ /app/code/node_modules/.bin/next start
May 01 23:57:44 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /home/cloudron/.yarn"
May 01 23:57:44 ready - started server on 0.0.0.0:3000, url: http://localhost:3000
</code></pre>
<p dir="auto">Non-working (notice the difference in migration, possible explanation):</p>
<pre><code>May 02 00:09:05 Gyarn run v1.22.19
May 02 00:09:05 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 02 00:09:05 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 02 00:09:05 G$ npm-run-all build-db check-db build-tracker build-geo build-app
May 02 00:09:05 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 02 00:09:05 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 02 00:09:05 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 02 00:09:05 G$ npm-run-all copy-db-files build-db-client
May 02 00:09:05 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 02 00:09:06 box:tasks update 20220: {"percent":100,"message":"Done"}
May 02 00:09:06 box:taskworker Task took 1.521 seconds
May 02 00:09:06 box:tasks setCompleted - 20220: {"result":null,"error":null}
May 02 00:09:06 box:tasks update 20220: {"percent":100,"result":null,"error":null}
May 02 00:09:06 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 02 00:09:06 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 02 00:09:06 G$ node scripts/copy-db-files.js
May 02 00:09:06 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 02 00:09:06 Database type detected: postgresql
May 02 00:09:06 Copied /app/code/db/postgresql to /app/code/prisma
May 02 00:09:06 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 02 00:09:06 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 02 00:09:06 G$ prisma generate
May 02 00:09:06 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 02 00:09:07 Prisma schema loaded from prisma/schema.prisma
May 02 00:09:07
May 02 00:09:07 ✔ Generated Prisma Client (4.13.0 | library) to ./node_modules/@prisma/client in 149ms
May 02 00:09:07 You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
May 02 00:09:07 ```
May 02 00:09:07 import { PrismaClient } from '@prisma/client'
May 02 00:09:07 const prisma = new PrismaClient()
May 02 00:09:07 ```
May 02 00:09:08 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 02 00:09:08 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 02 00:09:08 G$ node scripts/check-db.js
May 02 00:09:08 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 02 00:09:08 ✓ DATABASE_URL is defined.
May 02 00:09:08 ✓ Database connection successful.
May 02 00:09:08 ✓ Database version check successful.
May 02 00:09:09 Prisma schema loaded from prisma/schema.prisma
May 02 00:09:09 Datasource "db": PostgreSQL database "db4076b39b249a4e4c82cf9eadf24b0475", schema "public" at "postgresql"
May 02 00:09:09
May 02 00:09:09 1 migration found in prisma/migrations
May 02 00:09:09
May 02 00:09:09
May 02 00:09:09 No pending migrations to apply.
May 02 00:09:09
May 02 00:09:09 ✓ Database is up to date.
May 02 00:09:09 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 02 00:09:09 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 02 00:09:09 G$ rollup -c rollup.tracker.config.js
May 02 00:09:09 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 02 00:09:09
May 02 00:09:09 tracker/index.js → public/script.js...
May 02 00:09:10 =&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.16.2:3000
May 02 00:09:10 created public/script.js in 356ms
May 02 00:09:10 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 02 00:09:10 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 02 00:09:10 G$ node scripts/build-geo.js
May 02 00:09:10 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 02 00:09:10 Saved geo database: /app/code/geo/GeoLite2-City.mmdb
May 02 00:09:11 Gwarning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable.
May 02 00:09:11 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0".
May 02 00:09:11 G$ next build
May 02 00:09:11 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 02 00:09:12 info - Skipping validation of types
May 02 00:09:12 info - Skipping linting
May 02 00:09:20 =&gt; Healtheck error: Error: connect ECONNREFUSED 172.18.16.2:3000
May 02 00:09:22 ?25linfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...Ginfo - Creating an optimized production build .Ginfo - Creating an optimized production build ..Ginfo - Creating an optimized production build ...G?25hinfo - Compiled successfully
May 02 00:09:24 ?25linfo - Creating an optimized production build .?25linfo - Collecting page data .Ginfo - Creating an optimized production build ..Ginfo - Collecting page data ..Ginfo - Creating an optimized production build ...Ginfo - Collecting page data ...Ginfo - Creating an optimized production build .Ginfo - Collecting page data .Ginfo - Creating an optimized production build ..Ginfo - Collecting page data ..Ginfo - Creating an optimized production build ...Ginfo - Collecting page data ...Ginfo - Creating an optimized production build .Ginfo - Collecting page data .Ginfo - Creating an optimized production build ..Ginfo - Collecting page data ..Ginfo - Creating an optimized production build ...Ginfo - Collecting page data ...Ginfo - Creating an optimized production build .Ginfo - Collecting page data .Ginfo - Creating an optimized production build ..Ginfo - Collecting page data ..Ginfo - Creating an optimized production build ...Ginfo - Collecting page data ...G?25hinfo - Collecting page data
May 02 00:09:25 ?25l[ ] info - Generating static pages (0/10)Ginfo - Creating an optimized production build .G?25hG?25hinfo - Generating static pages (10/10)
May 02 00:09:25 ?25linfo - Creating an optimized production build .?25linfo - Finalizing page optimization .G?25hinfo - Finalizing page optimization
May 02 00:09:25 G?25h
May 02 00:09:25 ?25linfo - Creating an optimized production build .G?25hRoute (pages) Size First Load JS
May 02 00:09:25 ┌ ○ / 290 B 504 kB
May 02 00:09:25 ├ /_app 0 B 503 kB
May 02 00:09:25 ├ ○ /404 2.67 kB 545 kB
May 02 00:09:25 ├ └ css/c4094e7fe30124b9.css 1.16 kB
May 02 00:09:25 ├ λ /api/auth/login 0 B 503 kB
May 02 00:09:25 ├ λ /api/auth/logout 0 B 503 kB
May 02 00:09:25 ├ λ /api/auth/sso 0 B 503 kB
May 02 00:09:25 ├ λ /api/auth/verify 0 B 503 kB
May 02 00:09:25 ├ λ /api/config 0 B 503 kB
May 02 00:09:25 ├ λ /api/heartbeat 0 B 503 kB
May 02 00:09:25 ├ λ /api/me 0 B 503 kB
May 02 00:09:25 ├ λ /api/me/password 0 B 503 kB
May 02 00:09:25 ├ λ /api/me/websites 0 B 503 kB
May 02 00:09:25 ├ λ /api/realtime/[id] 0 B 503 kB
May 02 00:09:25 ├ λ /api/scripts/telemetry 0 B 503 kB
May 02 00:09:25 ├ λ /api/send 0 B 503 kB
May 02 00:09:25 ├ λ /api/share/[id] 0 B 503 kB
May 02 00:09:25 ├ λ /api/teams 0 B 503 kB
May 02 00:09:25 ├ λ /api/teams/[id] 0 B 503 kB
May 02 00:09:25 ├ λ /api/teams/[id]/users 0 B 503 kB
May 02 00:09:25 ├ λ /api/teams/[id]/users/[userId] 0 B 503 kB
May 02 00:09:25 ├ λ /api/teams/[id]/websites 0 B 503 kB
May 02 00:09:25 ├ λ /api/teams/[id]/websites/[websiteId] 0 B 503 kB
May 02 00:09:25 ├ λ /api/teams/join 0 B 503 kB
May 02 00:09:25 ├ λ /api/users 0 B 503 kB
May 02 00:09:25 ├ λ /api/users/[id] 0 B 503 kB
May 02 00:09:25 ├ λ /api/users/[id]/websites 0 B 503 kB
May 02 00:09:25 ├ λ /api/websites 0 B 503 kB
May 02 00:09:25 ├ λ /api/websites/[id] 0 B 503 kB
May 02 00:09:25 ├ λ /api/websites/[id]/active 0 B 503 kB
May 02 00:09:25 ├ λ /api/websites/[id]/eventData 0 B 503 kB
May 02 00:09:25 ├ λ /api/websites/[id]/events 0 B 503 kB
May 02 00:09:25 ├ λ /api/websites/[id]/metrics 0 B 503 kB
May 02 00:09:25 ├ λ /api/websites/[id]/pageviews 0 B 503 kB
May 02 00:09:25 ├ λ /api/websites/[id]/reset 0 B 503 kB
May 02 00:09:25 ├ λ /api/websites/[id]/stats 0 B 503 kB
May 02 00:09:25 ├ λ /console/[[...id]] 3.75 kB 614 kB
May 02 00:09:25 ├ └ css/0794f04c077896d1.css 2.48 kB
May 02 00:09:25 ├ ○ /dashboard 37.1 kB 644 kB
May 02 00:09:25 ├ └ css/d2f5eda4d3c93dbd.css 2.62 kB
May 02 00:09:25 ├ λ /login 1.37 kB 505 kB
May 02 00:09:25 ├ └ css/86ff2f277829477c.css 316 B
May 02 00:09:25 ├ λ /logout 399 B 504 kB
May 02 00:09:25 ├ ○ /realtime 3.14 kB 546 kB
May 02 00:09:25 ├ └ css/6ad4b9d7611b13d1.css 1.33 kB
May 02 00:09:25 ├ ○ /realtime/[id] 7.29 kB 654 kB
May 02 00:09:25 ├ └ css/d2622a2458130282.css 2.67 kB
May 02 00:09:25 ├ ○ /settings/profile 4.29 kB 640 kB
May 02 00:09:25 ├ └ css/a37cb2f80f94b2ae.css 1.62 kB
May 02 00:09:25 ├ λ /settings/teams 2.21 kB 548 kB
May 02 00:09:25 ├ └ css/3fb4c7181892eb6b.css 1.58 kB
May 02 00:09:25 ├ λ /settings/teams/[id] 3 kB 549 kB
May 02 00:09:25 ├ └ css/855615cd30af540d.css 1.64 kB
May 02 00:09:25 ├ λ /settings/users 2.61 kB 548 kB
May 02 00:09:25 ├ λ /settings/users/[id] 1.88 kB 548 kB
May 02 00:09:25 ├ λ /settings/websites 1.66 kB 547 kB
May 02 00:09:25 ├ λ /settings/websites/[id] 2.31 kB 548 kB
May 02 00:09:25 ├ └ css/7879ec0c552148c6.css 1.45 kB
May 02 00:09:25 ├ ○ /share/[...id] 1.47 kB 716 kB
May 02 00:09:25 ├ └ css/f0b95fb59dffa0de.css 2.82 kB
May 02 00:09:25 ├ ○ /sso 354 B 504 kB
May 02 00:09:25 └ ○ /websites/[id] 2.66 kB 693 kB
May 02 00:09:25 └ css/6489468d7dc0fbd5.css 3.16 kB
May 02 00:09:25 + First Load JS shared by all 512 kB
May 02 00:09:25 ├ chunks/framework-2c79e2a64abdb08b.js 45.2 kB
May 02 00:09:25 ├ chunks/main-0edb7910d6dbf988.js 30.6 kB
May 02 00:09:25 ├ chunks/pages/_app-0e67ddf2180faf84.js 427 kB
May 02 00:09:25 ├ chunks/webpack-38cee4c0e358b1a3.js 862 B
May 02 00:09:25 └ css/e18ca99b696549e2.css 8.32 kB
May 02 00:09:25 ?25linfo - Creating an optimized production build .G?25h
May 02 00:09:25 ?25linfo - Creating an optimized production build .G?25hλ (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
May 02 00:09:25 ○ (Static) automatically rendered as static HTML (uses no initial props)
May 02 00:09:25 ?25linfo - Creating an optimized production build .G?25h
May 02 00:09:25 ?25linfo - Creating an optimized production build .?25hG$ node scripts/postbuild.js
May 02 00:09:25 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /usr/local/share/.yarn"
May 02 00:09:25 GDone in 20.43s.
May 02 00:09:25 =&gt; Running migrations
May 02 00:09:26 Gyarn run v1.22.19
May 02 00:09:26 Gwarning Skipping preferred cache folder "/home/cloudron/.cache/yarn" because it is not writable.
May 02 00:09:26 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1000".
May 02 00:09:26 G$ prisma migrate deploy
May 02 00:09:26 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /home/cloudron/.yarn"
May 02 00:09:26 Prisma schema loaded from prisma/schema.prisma
May 02 00:09:26 Datasource "db": PostgreSQL database "db4076b39b249a4e4c82cf9eadf24b0475", schema "public" at "postgresql"
May 02 00:09:26
May 02 00:09:26 1 migration found in prisma/migrations
May 02 00:09:26
May 02 00:09:26
May 02 00:09:26 No pending migrations to apply.
May 02 00:09:26 GDone in 0.69s.
May 02 00:09:26 ==&gt; Starting Umami
May 02 00:09:26 Gyarn run v1.22.19
May 02 00:09:26 Gwarning Skipping preferred cache folder "/home/cloudron/.cache/yarn" because it is not writable.
May 02 00:09:26 Gwarning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1000".
May 02 00:09:26 G$ /app/code/node_modules/.bin/next start
May 02 00:09:26 Gwarning Cannot find a suitable global folder. Tried these: "/usr/local, /home/cloudron/.yarn"
May 02 00:09:27 ready - started server on 0.0.0.0:3000, url: http://localhost:3000
</code></pre>
]]></description><link>https://forum.cloudron.io/topic/9145/umami-2-2-0-tracker-xhr-request-works-only-on-every-second-app-restart</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 22:30:17 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/9145.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 May 2023 07:16:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Tue, 04 Jul 2023 06:59:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/meuschke" aria-label="Profile: Meuschke">@<bdi>Meuschke</bdi></a> this should be finally fixed in the latest update.</p>
]]></description><link>https://forum.cloudron.io/post/69524</link><guid isPermaLink="true">https://forum.cloudron.io/post/69524</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 04 Jul 2023 06:59:41 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Tue, 27 Jun 2023 06:55:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> perhaps an inadvertent cleanup of *</p>
]]></description><link>https://forum.cloudron.io/post/69018</link><guid isPermaLink="true">https://forum.cloudron.io/post/69018</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Tue, 27 Jun 2023 06:55:58 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Tue, 27 Jun 2023 02:45:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a> the location is hardcoded in the code. I still don't understand why or who remove the geo database. It is just building the app....</p>
]]></description><link>https://forum.cloudron.io/post/69011</link><guid isPermaLink="true">https://forum.cloudron.io/post/69011</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Tue, 27 Jun 2023 02:45:20 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 26 Jun 2023 18:11:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> would it help to move the location of the geo db?</p>
]]></description><link>https://forum.cloudron.io/post/68999</link><guid isPermaLink="true">https://forum.cloudron.io/post/68999</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Mon, 26 Jun 2023 18:11:56 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 26 Jun 2023 16:54:59 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for looking into this! I’m glad it’s not just me and others have seen this too. I know you said you couldn’t reproduce it a while back so assumed maybe it was an issue on my end, glad to know it’s something more with Umami and the build part. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /> Thanks for sticking with it, <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a>. And thanks to everyone else here commenting with their “me too” as well. <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/68996</link><guid isPermaLink="true">https://forum.cloudron.io/post/68996</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Mon, 26 Jun 2023 16:54:59 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 26 Jun 2023 15:57:08 GMT]]></title><description><![CDATA[<p dir="auto">Alright, <a href="https://github.com/umami-software/umami/issues/2093" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/umami-software/umami/issues/2093</a> . The issue is that the geolocation db is being removed when we build the app on restart. I tried to debug a lot but couldn't figure out.</p>
]]></description><link>https://forum.cloudron.io/post/68995</link><guid isPermaLink="true">https://forum.cloudron.io/post/68995</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 26 Jun 2023 15:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 26 Jun 2023 12:44:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stefano" aria-label="Profile: stefano">@<bdi>stefano</bdi></a> thanks! I can reproduce it.</p>
]]></description><link>https://forum.cloudron.io/post/68989</link><guid isPermaLink="true">https://forum.cloudron.io/post/68989</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 26 Jun 2023 12:44:05 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 26 Jun 2023 12:32:26 GMT]]></title><description><![CDATA[<p dir="auto">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).<br />
Then after restarting/rebooting again, it will work again.</p>
<p dir="auto">Basically it stops working every other reboot, so when a reboot is needed I need to reboot twice to get Umami to work.</p>
<p dir="auto">Not sure if it matters, but in my case the website I am tracking is on a different server than Umami.</p>
]]></description><link>https://forum.cloudron.io/post/68988</link><guid isPermaLink="true">https://forum.cloudron.io/post/68988</guid><dc:creator><![CDATA[stefano]]></dc:creator><pubDate>Mon, 26 Jun 2023 12:32:26 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 26 Jun 2023 12:22:24 GMT]]></title><description><![CDATA[<p dir="auto">I tried to reproduce this but I am not able to. Here's what I did:</p>
<ul>
<li>Install umami</li>
<li>Add domain in umami.</li>
<li>Install surfer</li>
<li>Put tracking code from umami into a sample index.html</li>
<li>I refresh index.html 10 times. I see 10 in umami</li>
</ul>
<p dir="auto">Is there something special I need to do?</p>
]]></description><link>https://forum.cloudron.io/post/68987</link><guid isPermaLink="true">https://forum.cloudron.io/post/68987</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 26 Jun 2023 12:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 26 Jun 2023 04:58:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> It seems that this behavior happens for me too.<br />
This seems to be browser independent. Restarting the Umami application then helps.</p>
]]></description><link>https://forum.cloudron.io/post/68954</link><guid isPermaLink="true">https://forum.cloudron.io/post/68954</guid><dc:creator><![CDATA[Meuschke]]></dc:creator><pubDate>Mon, 26 Jun 2023 04:58:07 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Wed, 21 Jun 2023 14:14:00 GMT]]></title><description><![CDATA[<p dir="auto">Out of curiosity, is anyone else seeing this behavior?</p>
]]></description><link>https://forum.cloudron.io/post/68698</link><guid isPermaLink="true">https://forum.cloudron.io/post/68698</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 21 Jun 2023 14:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Fri, 16 Jun 2023 13:12:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> will try this again...</p>
]]></description><link>https://forum.cloudron.io/post/68454</link><guid isPermaLink="true">https://forum.cloudron.io/post/68454</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 16 Jun 2023 13:12:18 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Thu, 15 Jun 2023 15:06:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> just wanted to ask about an update on this one.</p>
]]></description><link>https://forum.cloudron.io/post/68381</link><guid isPermaLink="true">https://forum.cloudron.io/post/68381</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Thu, 15 Jun 2023 15:06:42 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 05 Jun 2023 08:05:45 GMT]]></title><description><![CDATA[<p dir="auto">Ok, no worries <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=665e13d50c8" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">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.</p>
]]></description><link>https://forum.cloudron.io/post/67721</link><guid isPermaLink="true">https://forum.cloudron.io/post/67721</guid><dc:creator><![CDATA[stefano]]></dc:creator><pubDate>Mon, 05 Jun 2023 08:05:45 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 05 Jun 2023 06:31:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stefano" aria-label="Profile: stefano">@<bdi>stefano</bdi></a> 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.</p>
]]></description><link>https://forum.cloudron.io/post/67717</link><guid isPermaLink="true">https://forum.cloudron.io/post/67717</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 05 Jun 2023 06:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Sun, 04 Jun 2023 16:53:27 GMT]]></title><description><![CDATA[<p dir="auto">Fresh install. I installed Umami for the first time on May 13th.</p>
<p dir="auto">The installed versions are:</p>
<pre><code>App Title and Version: Umami 2.2.0
Package Version: is.umami.cloudronapp@3.1.0
</code></pre>
]]></description><link>https://forum.cloudron.io/post/67687</link><guid isPermaLink="true">https://forum.cloudron.io/post/67687</guid><dc:creator><![CDATA[stefano]]></dc:creator><pubDate>Sun, 04 Jun 2023 16:53:27 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Sun, 04 Jun 2023 16:29:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stefano" aria-label="Profile: stefano">@<bdi>stefano</bdi></a> Is yours with a fresh install or migrated from Umami 1 ?</p>
]]></description><link>https://forum.cloudron.io/post/67685</link><guid isPermaLink="true">https://forum.cloudron.io/post/67685</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sun, 04 Jun 2023 16:29:22 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Sun, 04 Jun 2023 05:01:48 GMT]]></title><description><![CDATA[<p dir="auto">I agree, this is a bizarre issue and unfortunately I can't yet figure out where the issue is coming from.</p>
]]></description><link>https://forum.cloudron.io/post/67631</link><guid isPermaLink="true">https://forum.cloudron.io/post/67631</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Sun, 04 Jun 2023 05:01:48 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Sat, 03 Jun 2023 10:43:40 GMT]]></title><description><![CDATA[<p dir="auto">This issue persists and can't understand why it's happening.<br />
Every time a reboot is required I need to remember to manually restart Umami, or it stops working.</p>
<p dir="auto">So weird that it happens every other reboot/restart.</p>
]]></description><link>https://forum.cloudron.io/post/67599</link><guid isPermaLink="true">https://forum.cloudron.io/post/67599</guid><dc:creator><![CDATA[stefano]]></dc:creator><pubDate>Sat, 03 Jun 2023 10:43:40 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Thu, 18 May 2023 23:13:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jdaviescoates" aria-label="Profile: jdaviescoates">@<bdi>jdaviescoates</bdi></a> validate your tracker script still works and is being called correctly, or simply reinstall it with the new version with copy/pasta.</p>
]]></description><link>https://forum.cloudron.io/post/66908</link><guid isPermaLink="true">https://forum.cloudron.io/post/66908</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Thu, 18 May 2023 23:13:25 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Thu, 18 May 2023 19:31:51 GMT]]></title><description><![CDATA[<p dir="auto">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).</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.cloudron.io/post/66903</link><guid isPermaLink="true">https://forum.cloudron.io/post/66903</guid><dc:creator><![CDATA[jdaviescoates]]></dc:creator><pubDate>Thu, 18 May 2023 19:31:51 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Thu, 18 May 2023 15:58:43 GMT]]></title><description><![CDATA[<p dir="auto">I just did a fresh install of Umami a few days ago, on May 13th, and I am experiencing the same exact issue.</p>
<p dir="auto">Initially everything works.<br />
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).<br />
If I restart the app again, it works again as expected.<br />
And so on...</p>
<p dir="auto">The only customization I have is in the <a href="http://env.sh" target="_blank" rel="noopener noreferrer nofollow ugc">env.sh</a> where I added</p>
<pre><code>export TRACKER_SCRIPT_NAME=get.js
export COLLECT_API_ENDPOINT=/api/get
</code></pre>
<p dir="auto">The installed version is:</p>
<pre><code>App Title and Version: Umami 2.2.0
Package Version: is.umami.cloudronapp@3.1.0
</code></pre>
]]></description><link>https://forum.cloudron.io/post/66896</link><guid isPermaLink="true">https://forum.cloudron.io/post/66896</guid><dc:creator><![CDATA[stefano]]></dc:creator><pubDate>Thu, 18 May 2023 15:58:43 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 15 May 2023 07:00:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/d19dotca" aria-label="Profile: d19dotca">@<bdi>d19dotca</bdi></a> yes, that update route sounds plausible. We released 3.0.0-1 <em>after</em> 3.1.0 . Weird but this was because we found the issue in 3.0.0 later (when you reported this bug).</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.cloudron.io/post/66713</link><guid isPermaLink="true">https://forum.cloudron.io/post/66713</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 15 May 2023 07:00:25 GMT</pubDate></item><item><title><![CDATA[Reply to Umami 2.2.0 tracker XHR request works only on every second app restart on Mon, 15 May 2023 06:02:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> 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.</p>
<p dir="auto">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).</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> said in <a href="/post/66701">Umami 2.2.0 tracker XHR request works only on every second app restart</a>:</p>
<blockquote>
<p dir="auto">Otherwise, depending on your setup, I simply suggest starting afresh. My understanding is umami 2 -&gt; 3 nuked all historical event data anyways.</p>
</blockquote>
<p dir="auto">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: <a href="https://umami.is/docs/migrate-v1-v2" target="_blank" rel="noopener noreferrer nofollow ugc">https://umami.is/docs/migrate-v1-v2</a></p>
]]></description><link>https://forum.cloudron.io/post/66709</link><guid isPermaLink="true">https://forum.cloudron.io/post/66709</guid><dc:creator><![CDATA[d19dotca]]></dc:creator><pubDate>Mon, 15 May 2023 06:02:29 GMT</pubDate></item></channel></rss>