Skip to content

[BUG] Reproducible build fails on v1.2.6 #1152

Description

@TheRealGramdalf

💻 Platform

🧭 Affected Area

  • Sync / data consistency
  • UI / interaction
  • Projects / areas / sections
  • Search / filter
  • Settings / preferences
  • Notifications / reminders
  • Recurrence / calendar
  • Attachments
  • Audio / transcription
  • Other
    • Build

ℹ️ Environment

  • App Version: v1.2.7
  • Install Channel: mindwtr-flake
  • OS Version: N/A
  • Device: N/A
Install channel examples (Click to expand)
  • Desktop Linux: Flathub, APT, AUR, distro package, release file (.deb, .rpm, AppImage), source/dev build
  • Desktop macOS: App Store, Homebrew, release file (.dmg), source/dev build
  • Desktop Windows: Microsoft Store, winget, release file (.exe / .msi), source/dev build
  • Android: Play Store, F-Droid, release file / sideloaded APK, source/dev build
  • iOS: App Store, TestFlight, source/dev build

🚨 Impact

  • Blocks core workflow
  • Data loss or data mismatch
  • Crash / freeze
  • Visual issue only

📝 Description

After updating from v1.2.5 to v1.2.6, building the webapp fails with connection refused

🔄 Steps to Reproduce (REQUIRED)

Note: Requires the nix build system

  1. Clone https://github.com/TheRealGramdalf/mindwtr-flake/tree/update-v1.2.6
  2. Run nix build .#mindwtr-web

🎯 Expected Behavior

Build succeeds as usual

🧪 Regression?

  • This worked in a previous version
  • Last known working version (if known): v1.2.5

📸 Screenshots / Logs

If applicable, add screenshots or paste relevant logs.

mindwtr-flake on  update-v1.2.6 via ❄️  impure (mindwtr-bun2nix-env)
❯ nix log /nix/store/pn144f22ka8kryd76jr5vk5gs8dq02n4-mindwtr-web-1.2.6.drv | cat
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/0sqy1yafc0kdx30nm1dbda83hlybkfhk-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: bunSetInstallCacheDirPhase
@nix { "action": "setPhase", "phase": "bunSetInstallCacheDirPhase" }
Using bun root: "/build/source"
Running phase: bunPatchPhase
@nix { "action": "setPhase", "phase": "bunPatchPhase" }
patching script interpreter paths in .
./scripts/push-all.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/update-flathub-checkout.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/resolve-release-version.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/should-upload-fastlane-screenshots.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/write-asc-private-key.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/test-build-macos-widget.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/install_core_dependencies.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/apply_bun_patches.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/prepare-fastlane-metadata.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/validate-docker-cloud-secret-runtime.sh: interpreter directive changed from "#!/usr/bin/env sh" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/sh"
./scripts/ci/install_mobile_dependencies.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/asc-api-utils.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/ci/decode-base64-to-file.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/build-macos-widget.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./scripts/bump-version.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./docker/cloud/entrypoint.sh: interpreter directive changed from "#!/usr/bin/env sh" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/sh"
./apps/mobile/scripts/android_build.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./apps/mobile/scripts/android_build_debug.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./apps/mobile/scripts/android_startup_benchmark.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
./apps/mobile/scripts/fdroid_prep.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/byi2zpy2bgcf3dr6y0l8m50rmjj8z7q1-bash-5.3p15/bin/bash"
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: bunNodeModulesInstallPhase
@nix { "action": "setPhase", "phase": "bunNodeModulesInstallPhase" }
/build/source /build/source
bun install flags: --linker=hoisted --ignore-scripts
bun install v1.3.13 (bf2e2cec)
37 |     "@eslint/eslintrc": {
                             ^
warn: Bun currently does not support nested "overrides"
   at /build/source/package.json:37:25

40 |     "eslint": {
                   ^
warn: Bun currently does not support nested "overrides"
   at /build/source/package.json:40:15

43 |     "eslint-plugin-expo": {
                               ^
warn: Bun currently does not support nested "overrides"
   at /build/source/package.json:43:27

error: ConnectionRefused downloading package manifest react-test-renderer

error: ConnectionRefused downloading package manifest typescript

error: ConnectionRefused downloading package manifest decode-uri-component

error: ConnectionRefused downloading package manifest @types/react-test-renderer

error: ConnectionRefused downloading package manifest @react-navigation/bottom-tabs

error: ConnectionRefused downloading package manifest @react-navigation/drawer

error: ConnectionRefused downloading package manifest @types/react

error: FailedToOpenSocket downloading package manifest eslint-config-expo

error: ConnectionRefused downloading package manifest @react-navigation/native

error: ConnectionRefused downloading package manifest @react-native-community/datetimepicker

error: ConnectionRefused downloading package manifest babel-preset-expo

error: FailedToOpenSocket downloading package manifest date-fns

error: ConnectionRefused downloading package manifest expo-intent-launcher

error: ConnectionRefused downloading package manifest expo-linking

error: ConnectionRefused downloading package manifest @react-navigation/elements

error: FailedToOpenSocket downloading package manifest @op-engineering/op-sqlite

error: ConnectionRefused downloading package manifest expo-file-system

error: ConnectionRefused downloading package manifest expo-font

error: ConnectionRefused downloading package manifest @expo/vector-icons

error: ConnectionRefused downloading package manifest eslint

error: FailedToOpenSocket downloading package manifest @expo/metro-runtime

error: ConnectionRefused downloading package manifest expo-calendar

error: ConnectionRefused downloading package manifest expo-clipboard

error: ConnectionRefused downloading package manifest vitest

error: ConnectionRefused downloading package manifest @fugood/react-native-audio-pcm-stream

error: FailedToOpenSocket downloading package manifest expo-image-picker

error: ConnectionRefused downloading package manifest expo-asset

error: ConnectionRefused downloading package manifest expo-audio

error: ConnectionRefused downloading package manifest expo-haptics

error: ConnectionRefused downloading package manifest @react-native-async-storage/async-storage

error: FailedToOpenSocket downloading package manifest expo-document-picker

error: ConnectionRefused downloading package manifest react-native-android-widget

error: ConnectionRefused downloading package manifest react-native-draggable-flatlist

error: ConnectionRefused downloading package manifest expo-constants

error: ConnectionRefused downloading package manifest @babel/runtime

error: FailedToOpenSocket downloading package manifest expo-build-properties

error: ConnectionRefused downloading package manifest query-string

error: ConnectionRefused downloading package manifest react

error: ConnectionRefused downloading package manifest expo-auth-session

error: ConnectionRefused downloading package manifest expo-image

error: FailedToOpenSocket downloading package manifest expo-application

error: ConnectionRefused downloading package manifest expo-web-browser

error: ConnectionRefused downloading package manifest invariant

error: ConnectionRefused downloading package manifest react-native-fs

error: ConnectionRefused downloading package manifest expo-dev-client

error: FailedToOpenSocket downloading package manifest react-native-alarm-notification

error: ConnectionRefused downloading package manifest expo-status-bar

error: ConnectionRefused downloading package manifest expo-store-review

error: ConnectionRefused downloading package manifest react-dom

error: ConnectionRefused downloading package manifest expo-background-task

error: FailedToOpenSocket downloading package manifest nullthrows

error: ConnectionRefused downloading package manifest expo-router

error: ConnectionRefused downloading package manifest expo-secure-store

error: ConnectionRefused downloading package manifest lucide-react-native

error: ConnectionRefused downloading package manifest expo

error: FailedToOpenSocket downloading package manifest expo-task-manager

error: ConnectionRefused downloading package manifest react-native-quick-crypto

error: ConnectionRefused downloading package manifest react-native-reanimated

error: ConnectionRefused downloading package manifest expo-symbols

error: ConnectionRefused downloading package manifest react-native

error: FailedToOpenSocket downloading package manifest expo-splash-screen

error: ConnectionRefused downloading package manifest react-native-url-polyfill

error: ConnectionRefused downloading package manifest react-native-web

error: ConnectionRefused downloading package manifest expo-share-intent

error: ConnectionRefused downloading package manifest nativewind

error: FailedToOpenSocket downloading package manifest expo-network

error: ConnectionRefused downloading package manifest tailwindcss

error: ConnectionRefused downloading package manifest whatwg-fetch

error: ConnectionRefused downloading package manifest react-native-gesture-handler

error: ConnectionRefused downloading package manifest expo-system-ui

error: FailedToOpenSocket downloading package manifest react-native-quick-base64

error: ConnectionRefused downloading package manifest chrono-node

error: ConnectionRefused downloading package manifest date-fns-jalali

error: ConnectionRefused downloading package manifest react-native-safe-area-context

error: ConnectionRefused downloading package manifest expo-sharing

error: FailedToOpenSocket downloading package manifest react-native-svg

error: ConnectionRefused downloading package manifest react-native-nitro-modules

error: ConnectionRefused downloading package manifest semver

error: ConnectionRefused downloading package manifest react-native-widgetkit

error: ConnectionRefused downloading package manifest expo-local-authentication

error: FailedToOpenSocket downloading package manifest whatwg-url-without-unicode

error: ConnectionRefused downloading package manifest react-native-worklets

error: ConnectionRefused downloading package manifest fflate

error: ConnectionRefused downloading package manifest react-native-screens

error: ConnectionRefused downloading package manifest @noble/hashes

error: FailedToOpenSocket downloading package manifest whisper.rn

error: ConnectionRefused downloading package manifest zustand
error: @types/react@~19.1.0 failed to resolve
error: @types/react-test-renderer@^19.1.0 failed to resolve
error: babel-preset-expo@~54.0.10 failed to resolve
error: eslint@^9.39.1 failed to resolve
error: eslint-config-expo@~10.0.0 failed to resolve
error: react-test-renderer@19.1.0 failed to resolve
error: typescript@~5.9.2 failed to resolve
error: vitest@^3.2.4 failed to resolve
error: @babel/runtime@^7.28.4 failed to resolve
error: @expo/metro-runtime@^6.1.2 failed to resolve
error: @expo/vector-icons@^15.0.3 failed to resolve
error: @fugood/react-native-audio-pcm-stream@^1.1.4 failed to resolve
error: @op-engineering/op-sqlite@^17.1.2 failed to resolve
error: @react-native-async-storage/async-storage@2.2.0 failed to resolve
error: @react-native-community/datetimepicker@8.4.4 failed to resolve
error: @react-navigation/bottom-tabs@^7.4.0 failed to resolve
error: @react-navigation/drawer@^7.5.0 failed to resolve
error: @react-navigation/elements@^2.6.3 failed to resolve
error: @react-navigation/native@^7.1.8 failed to resolve
error: date-fns@^4.1.0 failed to resolve
error: decode-uri-component@0.5.0 failed to resolve
error: expo@~54.0.30 failed to resolve
error: expo-application@~7.0.8 failed to resolve
error: expo-asset@~12.0.12 failed to resolve
error: expo-audio@~1.1.1 failed to resolve
error: expo-auth-session@~7.0.11 failed to resolve
error: expo-background-task@~1.0.10 failed to resolve
error: expo-build-properties@~1.0.10 failed to resolve
error: expo-calendar@~15.0.8 failed to resolve
error: expo-clipboard@~8.0.8 failed to resolve
error: expo-constants@~18.0.13 failed to resolve
error: expo-dev-client@~6.0.21 failed to resolve
error: expo-document-picker@^14.0.8 failed to resolve
error: expo-file-system@~19.0.21 failed to resolve
error: expo-font@~14.0.10 failed to resolve
error: expo-haptics@~15.0.8 failed to resolve
error: expo-image@~3.0.11 failed to resolve
error: expo-image-picker@~17.0.11 failed to resolve
error: expo-intent-launcher@~13.0.8 failed to resolve
error: expo-linking@~8.0.12 failed to resolve
error: expo-local-authentication@~17.0.9 failed to resolve
error: expo-network@~8.0.8 failed to resolve
error: expo-router@~6.0.21 failed to resolve
error: expo-secure-store@~15.0.8 failed to resolve
error: expo-share-intent@^5.1.1 failed to resolve
error: expo-sharing@^14.0.8 failed to resolve
error: expo-splash-screen@~31.0.13 failed to resolve
error: expo-status-bar@~3.0.9 failed to resolve
error: expo-store-review@~9.0.9 failed to resolve
error: expo-symbols@~1.0.8 failed to resolve
error: expo-system-ui@~6.0.9 failed to resolve
error: expo-task-manager@~14.0.9 failed to resolve
error: expo-web-browser@~15.0.11 failed to resolve
error: invariant@^2.2.4 failed to resolve
error: lucide-react-native@^0.556.0 failed to resolve
error: nativewind@^4.2.1 failed to resolve
error: nullthrows@^1.1.1 failed to resolve
error: query-string@7.1.3 failed to resolve
error: react@19.1.0 failed to resolve
error: react-dom@19.1.0 failed to resolve
error: react-native@0.81.5 failed to resolve
error: react-native-alarm-notification@^1.8.0 failed to resolve
error: react-native-android-widget@^0.17.2 failed to resolve
error: react-native-draggable-flatlist@^4.0.2 failed to resolve
error: react-native-fs@^2.20.0 failed to resolve
error: react-native-gesture-handler@~2.28.0 failed to resolve
error: react-native-nitro-modules@0.33.2 failed to resolve
error: react-native-quick-base64@^3.0.1 failed to resolve
error: react-native-quick-crypto@^1.1.7 failed to resolve
error: react-native-reanimated@~4.1.1 failed to resolve
error: react-native-safe-area-context@~5.6.0 failed to resolve
error: react-native-screens@~4.16.0 failed to resolve
error: react-native-svg@15.12.1 failed to resolve
error: react-native-url-polyfill@^3.0.0 failed to resolve
error: react-native-web@~0.21.0 failed to resolve
error: react-native-widgetkit@^1.0.9 failed to resolve
error: react-native-worklets@0.5.1 failed to resolve
error: semver@^7.7.2 failed to resolve
error: tailwindcss@3.3.2 failed to resolve
error: whatwg-fetch@^3.6.20 failed to resolve
error: whatwg-url-without-unicode@^8.0.0-3 failed to resolve
error: whisper.rn@^0.5.3 failed to resolve
error: @types/react@~19.1.0 failed to resolve
error: typescript@~5.9.2 failed to resolve
error: vitest@^3.2.4 failed to resolve
error: @babel/runtime@^7.28.4 failed to resolve
error: @noble/hashes@^2.3.0 failed to resolve
error: chrono-node@^2.9.0 failed to resolve
error: date-fns@^4.1.0 failed to resolve
error: date-fns-jalali@4.4.0-0 failed to resolve
error: fflate@^0.8.2 failed to resolve
error: zustand@^4.5.0 failed to resolve
📋 How to collect logs (Click to expand)

For detailed instructions, please see the Diagnostics and Logs docs.

Desktop:

  1. Go to Settings → Sync.
  2. Toggle Debug logging to ON.
  3. Reproduce the issue.
  4. Go to Settings → Sync → Diagnostics to find the Log file path.
  5. Attach the log file here.
    • Note: You can also clear old logs from this screen.

Mobile:

  1. Go to Settings → Diagnostics.
  2. Toggle Debug logging to ON.
  3. Reproduce the issue.
  4. Tap Share log to export the file and attach it here.

Note: Logs are local-only and redact common credentials.

📋 Additional Context

  • This seems similar to the lockfile desync in [BUG] Building desktop app via Nix from v1.1.5 fails #981
  • I chose mindwtr-web for this bug report since it builds quickly compared to the desktop app; they both fail to build in the same way
  • This is also present on v1.2.7
  • I have made no changes to the build system between testing - same package revisions, same bun version, same build hooks. That should narrow it down to changes in this repository only.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions