mirror of
https://github.com/immich-app/immich.git
synced 2026-02-05 00:30:57 +03:00
500 Unexpected token < in JSON at position 0 SyntaxError: Unexpected token < in JSON at position 0 #71
Closed
opened 2026-02-04 17:09:54 +03:00 by OVERLORD
·
81 comments
No Branch/Tag Specified
main
feat/asset-file-apis
chore/translations
fix/web-switch-label-clickable
fix/web-people-hidden-state
renovate/typescript-projects
release/next
fix/timezones
fix/time-zone-upserts
midzelis/wip
push-zpwsovysllvn
push-nwxlpmyzkyrl
push-nvnkszuqwppm
renovate/github-actions
push-smstsuupsowp
refactor/adaptive_image
push-olwpzvrxnomt
push-lmxsupnmxspl
renovate/machine-learning
feat/web-chromecast-video-looping
feat/use-native-clients
renovate/flutter
fix/create-face-edited
fix/mobile-ios-mtls
docs/contributing
docs/mise-mobile
renovate/grafana-monorepo
feature/bottom-buttons-order
feat/immich-mobile-ui-showcase
refactor/consolidate-image-requests
renovate/connectivity_plus-7.x
renovate/major-vitest-monorepo
renovate/pypi-python-multipart-vulnerability
fix/mobile-people-query
sqlite_thumbs
feat/html-text
chore/no-macro-validation
refactor/purchase-store
uhthomas/mobile-fix-app-bar-fade
uhthomas/mobile-fix-asset-jump
feat/pano-ocr
feat/shared-link-login
fix/database-backup-db-names
fix-keep-correct-ios-shared-album-asset
fix-memory-generation-and-display
feat/verify-permissions
refactor/album-service-small-tests
fix/ml-rocm-build
fix/flipped-dimensions-mobile
push-vpxwmwwxwnvw
fix-migration-width-height
refactor/more-queries
revert/prettier-translations
refactor/asset-service-queries
fix/locale-settings-desc
chore/add-debug-log
feat/edit-filters
shared-deep-link-handler
feat/mobile-editing
feat/thumbnail-native-clients
feat/platform-clients
feat/integrity-checks-izzy
fix/foreground-cloud-sync
feat/dynamic-layout
filter-by-person
feat/csp
refactor/sidebar
fix/disable-editing
fix/view-timeline-deeplink
image-zoom-on-slow-connection
fix-consider-dar-for-video-dimension
fix/merged-edited-assets
perf/optimize-album-sort
open-api-fix
feat/create-job-with-dto
use-toast-primary
feat/vitest-4
feat/ios-fastlane-match
match-signing
fix-update-time-update-timeline
chore/translation-keys
feat/modal-routes
feat/panorama-tiles
feature/mobile-view-asset-owner
feat/system-settings
feature/show-activity-count
better-info-in-asset-viewer
fix/all-people-count
feat/location-favorites
feature/rearrange-buttons-2
fix/download-storage-template
feat/kb-shortcuts-mobile
fix/people-count
push-qolzzzzxrvvn
chore/originals-in-asset-files
feat/asset-size-columns
ben/tree-a11y
new-search-filter-ui
refactor/expectSelectedReadonly
refactor/mobile-grdb
push-qvuktpxmkknu
feat/mobile-native-local-sync
refactor/timeline_ops
fix/scrubber_end
feat/version.txt
feat/context-menus
feat/server-chunked-uploads
refactor/virtualsegment
refactor/rename_daymonth_groups
fix/restrict-android-bg-worker
feat/android-periodic-worker
fix-remote-sync-clean-up
refactor/timeline_move_ops
renovate/mapbox-mapbox-gl-rtl-text-0.x
fix/timeline_split_selectable
feat/keyboard_actions_help_modal
feat/static_frontend
feat/notification-warnign-android
feat/plugins2
feat/plugins
test/create-workflow-token-action
fix/docs-force
debug/search-result-similarity
debug/cf-chunked-uploads
feat/eslint_rule
feat/search-filter-album/web
refactor/timeline_photostream
refactor/timelineasset_asset
feat/session-permissions
feat/timeline_photostream_assetnav
feat/timeline_minor_optimize
feat/timeline_perf_nocomp
feat/timeline_search_results_actions
feat/timeline_search_results_page
fix/timeline_padding
fix/timeline_search_reactivity_warnings
feat/timeline_scrollbar
feat/timeline_stream_withviewer
fix/timeline_back_forth_nav
refactor/timeline_photostream_component
fix/generated-files-checks
fix/locate-button-local
chore/base-image-mimalloc
refactor/timeline_assetlayout
refactor/timeline_selectable
refactor/timeline_aware_actions
refactor/timeline_monthsegment
feat/remove-old-pages
chore/deps-gradle
tmp_photostream
tmp/lcms
feat/mobile-dynamic-thumbnails
fix/mobile-finer-thumbnail-concurrency
refactor/timeline1
refactor/extract_photostream
refactor/rename_load_api
refactor/timeline2
refactor/timeline3
feat/multi-select-asset-viewer
feat-no-thumbhash-cache
refactor/asset_grid
feat/faster-access-checks
fix/18991
fix/19543
chore/temp-remove
fix/21419
feat/mobile-hdr-images
chore/update-mise-lockfile
feat/mise-server-checks
feat/mise-ci
feat/windows-2025
feat/dev_cli
refactor/mobile-migrate-clients
fix/map-theme
fix/require-checkbox
chore/use_swc
feat/efficient-thumbnail-decoding
refactor/mobile-thumbhash
refactor/mobile-thumbhash-new
fix/mobile-uncached-zoom
feat/beta-background-upload
fix/beta-timeline-memories-setting
fix/failed-uploads-not-removed
feat/mobile-shared-album
feat/groups
drift-map-page
drift-auth-user-sync
fix/disable-memory
feat/add-to-album-action
edit-date-time-action
drift-people-page
sqlite-remove-isIn
feat/inline-storage-columns
chore/required-reviewers
refact/asset-manager
fix/folder-sort
pnpm
feat/widget-multiple-server-urls
chore/medium-tests-dbname
fix/web-no-iterator-find
fix/map-pan-interruption
track-livephotos
timeline_events
chore/oxlint-migration
feat/maintenance-worker
feat/dav
chore/demo-snapshot
refactor/server-side-dedupe
feat/integrity-checks
dev/recognition-eval
lighter_buckets_test
perf/postgres-queue
postgres-queue
focus_rings
refactor/web-stores-1
refactor/add-to-taken
feat/sort-places
feat/sidecar-asset-file
vet
tmp/demo-snapshot-preview
fix/server-migration-file-extension
refactor/mobile-v2
fix/asset-update-race-condition
rknn-toolkit-lite2
refactor/mobile-split-up-search-page
feature/Add-rocm-support-for-machine-learning
feat/rocm
chore/async-hash-file
feat/shared-link-view-count
feat/rotation
feat/graphql
feat/job-ids
feat/ignore-library-permission-error
feat/docker-compose-builder
feat/kysely-typeorm
mobile/onboarding
no-video-player
fix/server-qsv-output-format
chore/server-geodata-tweaks
mobile/native-video-player-no-hero
feat/xxhash
fix/docs-concurrency
feat/preload-ml-textual-model
feat/local-tileserver
refactor/exif-orientation
original-path-infix
refactor/mobile/login-form-1
feat/server-editor-endpoints
fix/server-qsv-vbr
fix-mobile-db-problems
feat/ml-armnn-conversion
feat/mobile/backup-with-album-info
feat/fast-initial-sync-1
chore/handle-output_dims
feat/server-more-robust-generation
feat/unassign-faces
feat/shortcuts-on-asset-grid
feat/background-upload
feat/capacitor-mobile-app-poc
feat/server-nvenc-hw-decoding
release/v1.105
fix/mobile-fetch-non-archive
feat/fine-grained-access-controls
web/automation-ui
feat/mobile-server-endpoint-save-dropdown
feat/blurhash-thumbnail
object-storage
feat/memories-animations
dev/metrics
ml/tflite
feat/ml-export-cli
v2.5.3
v2.5.2
v2.5.1
v2.5.0
v2.4.1
v2.4.0
v2.3.1
v2.3.0
v2.2.3
v2.2.2
v2.2.1
v2.2.0
v2.1.0
v2.0.1
v2.0.0
v1.144.1
v1.144.0
v1.143.1
v1.143.0
v1.142.1
v1.142.0
v1.141.1
v1.141.0
v1.140.1
v1.140.0
v1.139.4
v1.139.3
v1.139.2
v1.139.1
v1.139.0
v1.138.1
v1.138.0
v1.137.3
v1.137.2
v1.137.1
v1.137.0
v1.136.0
v1.135.3
v1.135.2
v1.135.1
v1.135.0
v1.134.0
v1.133.1
v1.133.0
v1.132.3
v1.132.2
v1.132.1
v1.132.0
v1.131.3
v1.131.2
v1.131.1
v1.131.0
v1.130.3
v1.130.2
v1.130.1
v1.130.0
v1.129.0
v1.128.0
v1.127.0
v1.126.1
v1.126.0
v1.125.7
v1.125.6
v1.125.5
v1.125.4
v1.125.3
v1.125.2
v1.125.1
v1.125.0
v1.124.2
v1.124.1
v1.124.0
v1.123.0
v1.122.3
v1.122.2
v1.122.1
v1.122.0
v1.121.0
v1.120.2
v1.120.1
v1.120.0
v1.119.1
v1.119.0
v1.118.2
v1.118.1
v1.118.0
v1.117.0
v1.116.2
v1.116.1
v1.116.0
v1.115.0
v1.114.0
v1.113.1
v1.113.0
v1.112.1
v1.112.0
v1.111.0
v1.110.0
v1.109.2
v1.109.1
v1.109.0
v1.108.0
v1.107.2
v1.107.1
v1.107.0
v1.106.4
v1.106.3
v1.106.2
v1.106.1
v1.106.0
v1.105.1
v1.105.0
v1.104.0
v1.103.1
v1.103.0
v1.102.3
v1.102.2
v1.102.1
v1.102.0
v1.101.0
v1.100.0
v1.99.0
v1.98.2
v1.98.1
v1.98.0
v1.97.0
v1.96.0
v1.95.1
v1.95.0
v1.94.1
v1.94.0
v1.93.3
v1.93.2
v1.93.1
v1.93.0
v1.92.1
v1.92.0
v1.91.4
v1.91.3
v1.91.2
v1.91.1
v1.91.0
v1.90.2
v1.90.1
v1.90.0
v1.89.0
v1.88.2
v1.88.1
v1.88.0
v1.87.0
v1.86.0
v1.85.0
v1.84.0
v1.83.0
v1.82.1
v1.82.0
v1.81.1
v1.81.0
v1.80.0
v1.79.1
v1.79.0
v1.78.1
v1.78.0
v1.77.0
v1.76.1
v1.76.0
v1.75.2
v1.75.1
v1.75.0
v1.74.0
v1.73.0
v1.72.2
v1.72.1
v1.72.0
v1.71.0
v1.70.0
v1.69.0
v1.68.0
v1.67.2
v1.67.1
v1.67.0
v1.66.1
v1.66.0
v1.65.0
v1.64.0
v1.63.2
v1.63.1
v1.63.0
v1.62.1
v1.62.0
v1.61.0
v1.60.0
v1.59.1
v1.59.0
v1.58.0
v1.57.1
v1.57.0
v1.56.2
v1.56.1
v1.56.0
v1.55.1
v1.55.0
v1.54.1
v1.54.0
v1.53.0
v1.52.1
v1.52.0
v1.51.2
v1.51.1
v1.51.0
v1.50.1
v1.50.0
v1.49.0
v1.48.1
v1.48.0
v1.47.3
v1.47.2
v1.47.1
v1.47.0
v1.46.1
v1.46.0
v1.45.0
v1.44.0
v1.43.1
v1.43.0
v1.42.0_65-dev
v1.41.1_64-dev
v1.41.0_64-dev
v1.40.1_63-dev
v1.40.0_63-dev
v1.39.0_61-dev
v1.38.2_60-dev
v1.38.1_60-dev
v1.38.0_60-dev
v1.37.0_58-dev
v1.36.2_56-dev
v1.36.1_55-dev
v1.36.0_55-dev
v1.35.0_54-dev
v1.34.0_53-dev
v1.33.1_52-dev
v1.33.0_52-dev
v1.32.1_51-dev
v1.32.0_50-dev
v1.31.1_49-dev
v1.31.0_49-dev
v1.30.2_48-dev
v1.30.0_46-dev
v1.29.6_45-dev
v1.29.6_44-dev
v1.29.5_44-dev
v1.29.4_44-dev
v1.29.3_43-dev
v1.29.2_43-dev
v1.29.1_43-dev
v1.29.0_42-dev
v1.28.4_41-dev
v1.28.4_42-dev
v1.28.3_41-dev
v1.28.2_40-dev
v1.28.1_39-dev
v1.28.0_38-dev
v1.27.0_37-dev
v1.26.0_36-dev
v1.25.0_35-dev
v1.24.0_34-dev
v1.23.0_33-dev
v1.22.0_32-dev
v1.21.1_31-dev
v1.21.0_31-dev
v1.20.3_30-dev
v1.20.2_30-dev
v1.20.1_30-dev
v1.20.0_30-dev
v1.19.1_29-dev
v1.19.0_29-dev
v1.18.0_27-dev
v1.17.0_25-dev
v1.16.0_23-dev
v1.15.1_21-dev
v1.15.0_21-dev
v1.14.0_21-dev
v1.13.0_20-dev
v1.12.0_18-dev
v1.11.0_17-dev
v1.10.0_15-dev
v1.9.1_14-dev
v1.9.0_13-dev
v1.8.0_12-dev
v1.7.0_11-dev
v1.6.0_10-dev
v1.5.1+9-dev
v1.5.0+8-dev
v1.4.0+7-dev
v1.4.0+6-dev
v1.4.0-dev
v1.3.0-dev
v1.3.1-dev
v0.6-dev
v0.5-dev
v0.4-dev
v0.3-dev
v0.2-dev
first-android-release
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: immich-app/immich#71
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wavesswe on GitHub (May 22, 2022).
Running the docker compose thru Portainer, everyting starts up, I can see that ngnix is running at http://xxxx.xxx.xx.xx:2283/
But get the following issue when trying to access : http://xxxx.xxx.xx.xx:2285/
500
Unexpected token < in JSON at position 0
SyntaxError: Unexpected token < in JSON at position 0
in the logs from the web container
SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Proxy. (file:///usr/src/app/build/server/index.js:1586:29)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async load (file:///usr/src/app/build/server/entries/pages/index.svelte.js:6:25)
at async load_node (file:///usr/src/app/build/server/index.js:1605:14)
at async respond$1 (file:///usr/src/app/build/server/index.js:1844:20)
at async resolve (file:///usr/src/app/build/server/index.js:2182:105)
at async Object.handle (file:///usr/src/app/build/server/chunks/hooks-35f923f5.js:7:12)
at async respond (file:///usr/src/app/build/server/index.js:2139:22)
at async Array.ssr (file:///usr/src/app/build/handler-edaaddc2.js:841:3)
Additional context
Is it me that are doing something wrong here or is it broken?
@alextran1502 commented on GitHub (May 22, 2022):
Hello, did you specify
VITE_SERVER_ENDPOINT=in your.envfile?@alextran1502 commented on GitHub (May 22, 2022):
Additionally, did you include the
https://github.com/alextran1502/immich/blob/main/docker/settings/nginx-conf/nginx.confin your Portainer setup?@wavesswe commented on GitHub (May 22, 2022):
I did include the .env file. I haven’t added that as extra some where. Where should I put that link?
@alextran1502 commented on GitHub (May 22, 2022):
So you have the key
VITE_SERVER_ENDPOINT=in your.envfile, is that correct?nginx.confis the config file that the docker-compose build will look for during the build process, it looks like if you can access the web page/server, you should have specified that file already.Can you capture the console and network tab in the browser dev tool (F12) for me when you access the web page.
@wavesswe commented on GitHub (May 22, 2022):
The vite server address is correct, I set the same port as in the example text. The Ngnix page is reachable. But when changing port to access setup I get the message. I will get you the info
@alextran1502 commented on GitHub (May 23, 2022):
Can you pull the new image and test it? I did a few bugs fixed and performance optimization earlier this morning.
From the docker directory, run
@wavesswe commented on GitHub (May 23, 2022):
Hi!
Updated with same results.
from console
@wavesswe commented on GitHub (May 23, 2022):
rror with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
:2285/:1 GET http://192.168.x.xx:2285/ 500 (Internal Server Error)
css2:1 GET https://fonts.gstatic.com/s/worksans/v17/QGYsz_wNahGAdqQ43Rh_fKDp.woff2 net::ERR_NAME_NOT_RESOLVED
192.168.x.xx/:1 Access to fetch at 'http://192.168.x.xx:2283/server-info/ping' from origin 'http://192.168.x.xx:2285' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
api-fd31fb07.js:1 GET http://192.168.x.xx:2283/server-info/ping net::ERR_FAILED 404
h @ api-fd31fb07.js:1
p @ api-fd31fb07.js:1
(anonymous) @ __layout.svelte-2ad0b7e4.js:3
setInterval (async)
V @ __layout.svelte-2ad0b7e4.js:3
ke @ index-cf124ca0.js:4
Z @ __layout.svelte-2ad0b7e4.js:3
bt @ start-500b370a.js:1
kt @ start-500b370a.js:1
ke @ index-cf124ca0.js:4
Lt @ start-500b370a.js:1
Pe @ start-500b370a.js:1
_hydrate @ start-500b370a.js:1
await in _hydrate (async)
Yt @ start-500b370a.js:1
(anonymous) @ (index):38
api-fd31fb07.js:1 Uncaught (in promise) TypeError: Failed to fetch
at h (api-fd31fb07.js:1:285)
at p (api-fd31fb07.js:1:401)
at __layout.svelte-2ad0b7e4.js:3:704
h @ api-fd31fb07.js:1
p @ api-fd31fb07.js:1
(anonymous) @ __layout.svelte-2ad0b7e4.js:3
setInterval (async)
V @ __layout.svelte-2ad0b7e4.js:3
ke @ index-cf124ca0.js:4
Z @ __layout.svelte-2ad0b7e4.js:3
bt @ start-500b370a.js:1
kt @ start-500b370a.js:1
ke @ index-cf124ca0.js:4
Lt @ start-500b370a.js:1
Pe @ start-500b370a.js:1
_hydrate @ start-500b370a.js:1
await in _hydrate (async)
Yt @ start-500b370a.js:1
(anonymous) @ (index):38
192.168.3.75/:1 Access to fetch at 'http://192.168.x.xx:2283/server-info/ping' from origin 'http://192.168.x.xx:2285' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
api-fd31fb07.js:1 GET http://192.168.x.xx:2283/server-info/ping net::ERR_FAILED 404
h @ api-fd31fb07.js:1
p @ api-fd31fb07.js:1
(anonymous) @ __layout.svelte-2ad0b7e4.js:3
setInterval (async)
V @ __layout.svelte-2ad0b7e4.js:3
ke @ index-cf124ca0.js:4
Z @ __layout.svelte-2ad0b7e4.js:3
bt @ start-500b370a.js:1
kt @ start-500b370a.js:1
ke @ index-cf124ca0.js:4
Lt @ start-500b370a.js:1
Pe @ start-500b370a.js:1
_hydrate @ start-500b370a.js:1
await in _hydrate (async)
Yt @ start-500b370a.js:1
(anonymous) @ (index):38
api-fd31fb07.js:1 Uncaught (in promise) TypeError: Failed to fetch
at h (api-fd31fb07.js:1:285)
at p (api-fd31fb07.js:1:401)
at __layout.svelte-2ad0b7e4.js:3:704
Updated with same results. IP changed to x.xx but is correct.
@alextran1502 commented on GitHub (May 23, 2022):
hmm interesting, let's isolate the issue of the setup!
Can you let me know what do you see when you enter
http://your-ip:2283/server-info/pinginto the web browser?@spupuz commented on GitHub (May 23, 2022):
same error here if i access http://your-ip:2283/server-info/ping i got {"res":"pong"}
@spupuz commented on GitHub (May 23, 2022):
@alextran1502 commented on GitHub (May 23, 2022):
@spupuz I believe you are also running Immich using Portainer, correct? Can you help me spin up a completely new Immich instance/stack and check if you are still encountering the same issue?
@spupuz commented on GitHub (May 23, 2022):
i can try.
Il giorno lun 23 mag 2022 alle ore 14:46 Alex @.***> ha
scritto:
@spupuz commented on GitHub (May 23, 2022):
database name is hardcoded for this reason can't spin up a double istance from scratch, i just have just one server :)
@alextran1502 commented on GitHub (May 23, 2022):
Ah. Can you spin up a new instance that is not in Portainer?
I have a feeling this is an issue that related to the server is not updated to the newest version, so the front end is looking for things that the server doesn't have yet. Can you remove the server docker
container and pull it again from Dockerhub?
@alextran1502 commented on GitHub (May 23, 2022):
Can you help me check this endpoint?
http://your-ip:2283/server-info/version@spupuz commented on GitHub (May 23, 2022):
i can try
@spupuz commented on GitHub (May 23, 2022):
http://192.168.1.112:2283/server-info/version
{"major":1,"minor":10,"patch":0,"build":14}
@alextran1502 commented on GitHub (May 23, 2022):
hmm, this is the correct response. I will dig into this.
@spupuz commented on GitHub (May 23, 2022):
With latest docker version server works but since I already have a user can create an admin user, how can I do?
@alextran1502 commented on GitHub (May 23, 2022):
@spupuz After you log in on the web, if you have more than one account on the server, it will ask which account should be made admin. Otherwise, if you have only one account, it will make that account into the admin account :)
@spupuz commented on GitHub (May 23, 2022):
Cool, just one point web interface does not adapt to browser in phone.
@alextran1502 commented on GitHub (May 23, 2022):
@spupuz Understand, as it is not a priority right now, since you have a mobile app already to view/interact with the backup assets.
@spupuz commented on GitHub (May 23, 2022):
Yah I know don't worry I'll put ideas and optmiziation as I see them, proud of being a test this is becoming a real piece of diamond
@alextran1502 commented on GitHub (May 23, 2022):
@spupuz No problem, thank you for doing this. I just want to confirm that you can now access the web interface, correct?
@spupuz commented on GitHub (May 23, 2022):
Yes I can will test it wider tomorrow with laptop
@phamleduy04 commented on GitHub (May 24, 2022):
I have the same problem. When I check the dev console I saw
/server-info/pingis returning 404.The error happen when I changed the
VITE_SERVER_ENDPOINTto my public domain. When using IP is fine.@jeanpaulrh commented on GitHub (May 24, 2022):
I also have the same error, but I think caused by a different problem, since if I start docker-compose up without daemon option in the console I see this:
`immich-web_1 | FetchError: request to https://192.168.3.2:2285/192.168.3.2:2283/user/count failed, reason: write EPROTO 140497463036720:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:331:
immich-web_1 |
immich-web_1 | at ClientRequest. (file:///usr/src/app/build/shims-eb608bdd.js:6246:11)
immich-web_1 | at ClientRequest.emit (node:events:527:28)
immich-web_1 | at TLSSocket.socketErrorListener (node:_http_client:454:9)
immich-web_1 | at TLSSocket.emit (node:events:527:28)
immich-web_1 | at emitErrorNT (node:internal/streams/destroy:157:8)
immich-web_1 | at emitErrorCloseNT (node:internal/streams/destroy:122:3)
immich-web_1 | at processTicksAndRejections (node:internal/process/task_queues:83:21)
immich-web_1 | SyntaxError: Unexpected token < in JSON at position 0
immich-web_1 | at JSON.parse ()
immich-web_1 | at Proxy. (file:///usr/src/app/build/server/index.js:1586:29)
immich-web_1 | at processTicksAndRejections (node:internal/process/task_queues:96:5)
immich-web_1 | at async load (file:///usr/src/app/build/server/entries/pages/index.svelte.js:6:25)
immich-web_1 | at async load_node (file:///usr/src/app/build/server/index.js:1605:14)
immich-web_1 | at async respond$1 (file:///usr/src/app/build/server/index.js:1844:20)
immich-web_1 | at async resolve (file:///usr/src/app/build/server/index.js:2182:105)
immich-web_1 | at async Object.handle (file:///usr/src/app/build/server/chunks/hooks-0b1f7f3e.js:7:12)
immich-web_1 | at async respond (file:///usr/src/app/build/server/index.js:2139:22)
immich-web_1 | at async Array.ssr (file:///usr/src/app/build/handler-edaaddc2.js:841:3)
immich-web_1 | FetchError: request to https://192.168.3.2:2285/192.168.3.2:2283/user/count failed, reason: write EPROTO 140497463036720:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:331:
immich-web_1 |
immich-web_1 | at ClientRequest. (file:///usr/src/app/build/shims-eb608bdd.js:6246:11)
immich-web_1 | at ClientRequest.emit (node:events:527:28)
immich-web_1 | at TLSSocket.socketErrorListener (node:_http_client:454:9)
immich-web_1 | at TLSSocket.emit (node:events:527:28)
immich-web_1 | at emitErrorNT (node:internal/streams/destroy:157:8)
immich-web_1 | at emitErrorCloseNT (node:internal/streams/destroy:122:3)
immich-web_1 | at processTicksAndRejections (node:internal/process/task_queues:83:21)
immich-web_1 | SyntaxError: Unexpected token < in JSON at position 0
immich-web_1 | at JSON.parse ()
immich-web_1 | at Proxy. (file:///usr/src/app/build/server/index.js:1586:29)
immich-web_1 | at processTicksAndRejections (node:internal/process/task_queues:96:5)
immich-web_1 | at async load (file:///usr/src/app/build/server/entries/pages/index.svelte.js:6:25)
immich-web_1 | at async load_node (file:///usr/src/app/build/server/index.js:1605:14)
immich-web_1 | at async respond$1 (file:///usr/src/app/build/server/index.js:1844:20)
immich-web_1 | at async resolve (file:///usr/src/app/build/server/index.js:2182:105)
immich-web_1 | at async Object.handle (file:///usr/src/app/build/server/chunks/hooks-0b1f7f3e.js:7:12)
immich-web_1 | at async respond (file:///usr/src/app/build/server/index.js:2139:22)
immich-web_1 | at async Array.ssr (file:///usr/src/app/build/handler-edaaddc2.js:841:3)
immich-web_1 | FetchError: request to https://192.168.3.2:2285/192.168.3.2:2283/user/count failed, reason: write EPROTO 140497463036720:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:331:
immich-web_1 |
immich-web_1 | at ClientRequest. (file:///usr/src/app/build/shims-eb608bdd.js:6246:11)
immich-web_1 | at ClientRequest.emit (node:events:527:28)
immich-web_1 | at TLSSocket.socketErrorListener (node:_http_client:454:9)
immich-web_1 | at TLSSocket.emit (node:events:527:28)
immich-web_1 | at emitErrorNT (node:internal/streams/destroy:157:8)
immich-web_1 | at emitErrorCloseNT (node:internal/streams/destroy:122:3)
immich-web_1 | at processTicksAndRejections (node:internal/process/task_queues:83:21)
immich-web_1 | SyntaxError: Unexpected token < in JSON at position 0
immich-web_1 | at JSON.parse ()
immich-web_1 | at Proxy. (file:///usr/src/app/build/server/index.js:1586:29)
immich-web_1 | at processTicksAndRejections (node:internal/process/task_queues:96:5)
immich-web_1 | at async load (file:///usr/src/app/build/server/entries/pages/index.svelte.js:6:25)
immich-web_1 | at async load_node (file:///usr/src/app/build/server/index.js:1605:14)
immich-web_1 | at async respond$1 (file:///usr/src/app/build/server/index.js:1844:20)
immich-web_1 | at async resolve (file:///usr/src/app/build/server/index.js:2182:105)
immich-web_1 | at async Object.handle (file:///usr/src/app/build/server/chunks/hooks-0b1f7f3e.js:7:12)
immich-web_1 | at async respond (file:///usr/src/app/build/server/index.js:2139:22)
immich-web_1 | at async Array.ssr (file:///usr/src/app/build/handler-edaaddc2.js:841:3)
`
Maybe it's better for me to open a different Bug Report?
@spupuz commented on GitHub (May 24, 2022):
i suppose on the latest docker version there was a regression
`.svelte-kit/output/server/entries/fallbacks/error.svelte.js 0.72 KiB
.svelte-kit/output/server/entries/pages/admin/index.svelte.js 6.69 KiB
.svelte-kit/output/server/entries/pages/auth/login/index.svelte.js 1.94 KiB
.svelte-kit/output/server/entries/pages/auth/register/index.svelte.js 2.86 KiB
.svelte-kit/output/server/entries/pages/index.svelte.js 1.74 KiB
.svelte-kit/output/server/entries/pages/photos/index.svelte.js 8.96 KiB
.svelte-kit/output/server/chunks/index-6241e7e7.js 4.26 KiB
.svelte-kit/output/server/chunks/constants-1610d5b2.js 0.08 KiB
.svelte-kit/output/server/chunks/api-a833c381.js 0.86 KiB
.svelte-kit/output/server/chunks/stores-78835596.js 0.92 KiB
.svelte-kit/output/server/chunks/navigation-bar-07199bb6.js 3.41 KiB
.svelte-kit/output/server/chunks/hooks-15a5604a.js 1.12 KiB
Run npm run preview to preview your production build locally.
vite v2.9.8 building for production...
transforming...
✓ 687 modules transformed.
rendering chunks...
.svelte-kit/output/client/_app/manifest.json 3.94 KiB
.svelte-kit/output/client/_app/pages/__layout.svelte-7cc25e42.js 2.23 KiB / gzip: 1.09 KiB
.svelte-kit/output/client/_app/error.svelte-f8847189.js 1.56 KiB / gzip: 0.74 KiB
.svelte-kit/output/client/_app/pages/auth/register/index.svelte-d5d075c6.js 6.45 KiB / gzip: 2.55 KiB
.svelte-kit/output/client/_app/start-8447ca62.js 24.18 KiB / gzip: 8.81 KiB
.svelte-kit/output/client/_app/pages/admin/index.svelte-761d93c2.js 16.64 KiB / gzip: 5.97 KiB
.svelte-kit/output/client/_app/pages/index.svelte-ddb910aa.js 2.37 KiB / gzip: 1.21 KiB
.svelte-kit/output/client/_app/pages/auth/login/index.svelte-aace14dc.js 16.03 KiB / gzip: 5.03 KiB
.svelte-kit/output/client/_app/chunks/index-7389f52e.js 0.79 KiB / gzip: 0.48 KiB
.svelte-kit/output/client/_app/chunks/singletons-d1fb5791.js 0.05 KiB / gzip: 0.07 KiB
.svelte-kit/output/client/_app/chunks/index-cf124ca0.js 11.54 KiB / gzip: 4.78 KiB
.svelte-kit/output/client/_app/chunks/api-a6083403.js 0.45 KiB / gzip: 0.32 KiB
.svelte-kit/output/client/_app/chunks/constants-1610d5b2.js 0.05 KiB / gzip: 0.07 KiB
.svelte-kit/output/client/_app/chunks/index-d39cff6c.js 0.76 KiB / gzip: 0.41 KiB
.svelte-kit/output/client/_app/chunks/auth-api-b3e1ef61.js 0.43 KiB / gzip: 0.16 KiB
.svelte-kit/output/client/_app/chunks/navigation-0e6511d1.js 0.17 KiB / gzip: 0.15 KiB
.svelte-kit/output/client/_app/chunks/navigation-bar-cd758090.js 5.91 KiB / gzip: 2.58 KiB
.svelte-kit/output/client/_app/assets/pages/__layout.svelte-2c48307f.css 10.35 KiB / gzip: 2.98 KiB
.svelte-kit/output/client/_app/pages/photos/index.svelte-15e24c77.js 153.84 KiB / gzip: 53.49 KiB
vite v2.9.8 building SSR bundle for production...
transforming...
✓ 51 modules transformed.
rendering chunks...
.svelte-kit/output/server/manifest.json 4.36 KiB
.svelte-kit/output/server/index.js 75.63 KiB
.svelte-kit/output/server/entries/endpoints/auth/login/index.ts.js 5.82 KiB
.svelte-kit/output/server/entries/endpoints/auth/register/index.ts.js 0.84 KiB
.svelte-kit/output/server/entries/endpoints/auth/login/update.ts.js 1.42 KiB
.svelte-kit/output/server/entries/endpoints/admin/api/create-user.ts.js 0.93 KiB
.svelte-kit/output/server/entries/endpoints/auth/login/api/select-admin.ts.js 1.77 KiB
.svelte-kit/output/server/entries/endpoints/auth/login/api/get-users.ts.js 0.32 KiB
.svelte-kit/output/server/entries/pages/__layout.svelte.js 1.21 KiB
.svelte-kit/output/server/entries/fallbacks/error.svelte.js 0.72 KiB
.svelte-kit/output/server/entries/pages/admin/index.svelte.js 6.69 KiB
.svelte-kit/output/server/entries/pages/auth/login/index.svelte.js 1.94 KiB
.svelte-kit/output/server/entries/pages/auth/register/index.svelte.js 2.86 KiB
.svelte-kit/output/server/entries/pages/index.svelte.js 1.74 KiB
.svelte-kit/output/server/entries/pages/photos/index.svelte.js 8.96 KiB
.svelte-kit/output/server/chunks/index-6241e7e7.js 4.26 KiB
.svelte-kit/output/server/chunks/constants-1610d5b2.js 0.08 KiB
.svelte-kit/output/server/chunks/api-a833c381.js 0.86 KiB
.svelte-kit/output/server/chunks/stores-78835596.js 0.92 KiB
.svelte-kit/output/server/chunks/navigation-bar-07199bb6.js 3.41 KiB
.svelte-kit/output/server/chunks/hooks-15a5604a.js 1.12 KiB
Run npm run preview to preview your production build locally.
@rantanlan commented on GitHub (May 24, 2022):
@jeanpaulrh
I had the same problem, are you sure you have that entry in the .env file correct? I forgot the http:// bevor the ip adress!
VITE_SERVER_ENDPOINT=http://10.1.11.50:2283
@jeanpaulrh commented on GitHub (May 24, 2022):
You're right! Thanks a lot!
@spupuz commented on GitHub (May 24, 2022):
that's not my case i still got problems
@spupuz commented on GitHub (May 24, 2022):
updated the .env and the docker-compose.yml but seems i have problem in connecting to DB
`Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [NestFactory] Starting Nest application...
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +100ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] JwtModule dependencies initialized +2ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] ConfigModule dependencies initialized +12ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] ScheduleModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:31:56 PM LOG [InstanceLoader] ServerInfoModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:31:56 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:31:59 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (2)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:02 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (3)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:05 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:08 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (5)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:11 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (6)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:14 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (7)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:17 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (8)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:20 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (9)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:20 PM ERROR [ExceptionHandler] getaddrinfo ENOTFOUND immich_database
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [NestFactory] Starting Nest application...
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +102ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] JwtModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] ConfigModule dependencies initialized +8ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] ScheduleModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 51 - 05/24/2022, 12:32:31 PM LOG [InstanceLoader] ServerInfoModule dependencies initialized +1ms
[Nest] 51 - 05/24/2022, 12:32:31 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:34 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (2)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:37 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (3)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
[Nest] 51 - 05/24/2022, 12:32:40 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...
Error: getaddrinfo ENOTFOUND immich_database
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)`
@alextran1502 commented on GitHub (May 24, 2022):
@spupuz can you help me open a separated issue for the database? As well as providing your redacted .env file. Thanks
@alextran1502 commented on GitHub (May 24, 2022):
@phamleduy04 Can you help me open a separate issue for problem accessing the web when put in the public domain to the .env file? Can you help me including your redacted .env file as well? Thanks
@phamleduy04 commented on GitHub (May 24, 2022):
first time i deploy i can login and setup the web interface.
But now when I tried to redeploy using the old settings the same error popup no matter how I set up the
VITE_SERVER_ENDPOINT.env 😢@alextran1502 commented on GitHub (May 24, 2022):
@phamleduy04 I am pretty sure this is the cookie mismatch during the development cycle. Can you navigate to the Application -> Cookie and clear the session in the Browser Dev Tools? I believe this should fix it
@alextran1502 commented on GitHub (May 24, 2022):
@wavesswe Can you try clearing the cookie in the browser's Dev tools in the Application -> Cookie tab and see if it fixes the issue
@phamleduy04 commented on GitHub (May 25, 2022):
The cookie section is empty right now
@phamleduy04 commented on GitHub (May 25, 2022):
Also now I tried to request tohttp://my-local-ip:2285/server-info/ping and /versionreturning 404 Not foundEdit: wrong port, it should be port 2283 :)
@Nonobis commented on GitHub (May 25, 2022):
Hello,
I am on port 2285 (not using nginx), i have url on port 2285 on .env
Already tryed to delete all cookies, it's not working
immich-immich-web-1 | .svelte-kit/output/server/chunks/index-6241e7e7.js 4.26 KiB
immich-immich-web-1 | .svelte-kit/output/server/chunks/constants-0a775e1b.js 0.07 KiB
immich-immich-web-1 | .svelte-kit/output/server/chunks/api-660e450e.js 0.86 KiB
immich-immich-web-1 | .svelte-kit/output/server/chunks/stores-78835596.js 0.92 KiB
immich-immich-web-1 | .svelte-kit/output/server/chunks/navigation-bar-07199bb6.js 3.41 KiB
immich-immich-web-1 | .svelte-kit/output/server/chunks/hooks-9b75af5a.js 1.12 KiB
immich-immich-web-1 |
immich-immich-web-1 | Run npm run preview to preview your production build locally.
immich-immich-web-1 |
immich-immich-web-1 | > Using @sveltejs/adapter-node
immich-immich-web-1 | ✔ done
immich-immich-web-1 | Listening on 0.0.0.0:3000
immich-immich-web-1 | SyntaxError: Unexpected token < in JSON at position 0
immich-immich-web-1 | at JSON.parse ()
immich-immich-web-1 | at Proxy. (file:///usr/src/app/build/server/index.js:1586:29)
immich-immich-web-1 | at processTicksAndRejections (node:internal/process/task_queues:96:5)
immich-immich-web-1 | at async load (file:///usr/src/app/build/server/entries/pages/index.svelte.js:6:25)
immich-immich-web-1 | at async load_node (file:///usr/src/app/build/server/index.js:1605:14)
immich-immich-web-1 | at async respond$1 (file:///usr/src/app/build/server/index.js:1844:20)
immich-immich-web-1 | at async resolve (file:///usr/src/app/build/server/index.js:2182:105)
immich-immich-web-1 | at async Object.handle (file:///usr/src/app/build/server/chunks/hooks-9b75af5a.js:7:12)
immich-immich-web-1 | at async respond (file:///usr/src/app/build/server/index.js:2139:22)
immich-immich-web-1 | at async Array.ssr (file:///usr/src/app/build/handler-edaaddc2.js:841:3)
@alextran1502 commented on GitHub (May 25, 2022):
@phamleduy04 Were you able to access the web page, can you share the
.envfile? Can you try to use a different web browser?@alextran1502 commented on GitHub (May 25, 2022):
@Nonobis Can you share your
.envanddocker-compose? Have you performed pulling of new server image with the commanddocker-compose pull immich-serverfrom thedockerfolder of the repository?I saw a different questions on another thread, I am not sure if this issue has been resolved so that you can register another account for your family member
@Nonobis commented on GitHub (May 25, 2022):
@alextran1502 : i have successfuly created second user with success :) i think i have closed the issue (i don't find it anymore ...)
On Unraid with Docker-Compose Plugin, i don't use ngingx, but caddy as reverse proxy.
Docker-compose.yml
`version: "3.8"
services:
immich_server:
image: altran1502/immich-server:latest
entrypoint: ["/bin/sh", "./entrypoint.sh"]
expose:
- "3000"
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
ports:
- 3000:3000
environment:
- NODE_ENV=production
depends_on:
- database
- redis
networks:
- immich-network
restart: always
immich_microservices:
image: altran1502/immich-microservices:latest
entrypoint: ["/bin/sh", "./entrypoint.sh"]
expose:
- "3001"
ports:
- 3001:3001
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
env_file:
- .env
environment:
- NODE_ENV=production
depends_on:
- database
- redis
networks:
- immich-network
restart: always
immich-web:
image: altran1502/immich-web:latest
entrypoint: ["/bin/sh", "./entrypoint.sh"]
env_file:
- .env
depends_on:
- database
- redis
expose:
- "2285"
ports:
- 2285:3000
networks:
- immich-network
restart: always
redis:
container_name: immich_redis
restart: always
image: redis:6.2
networks:
- immich-network
database:
container_name: immich_postgres
image: postgres:14
restart: always
env_file:
- .env
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
volumes:
- ${IMMICH_DB_DATA}:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- immich-network
networks:
immich-network:
.Env (removed private data )
`DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_DATABASE_NAME=immich
IMMICH_DB_DATA=/mnt/user/Databases/immich_pg
UPLOAD_LOCATION=/mnt/user/Pictures
JWT_SECRET=[REMOVED]
ENABLE_MAPBOX=true
MAPBOX_KEY=[REMOVED]
VITE_SERVER_ENDPOINT=http://arda:2285`
@spupuz commented on GitHub (May 25, 2022):
i have another istanza of nginx so can i remove the one in the docker compose? @alextran1502
@alextran1502 commented on GitHub (May 25, 2022):
@spupuz @Nonobis The Nginx in the stack is for load balancing if you create more instances of the immich-server if you have ten of thousands of pictures. You can leave it without any issue since it doesn't interfere with other ports
@spupuz commented on GitHub (May 25, 2022):
yeah i was trying to understand how to optimize in oder to not overload my small server
:D i have a total of 39 container running
@Nonobis commented on GitHub (May 25, 2022):
@[alextran1502 : Got web login page with nginx in docker stack :) Thanks :)
@phamleduy04 commented on GitHub (May 26, 2022):
I tried with multiple browser and machine but still error.
This is my .env
@alextran1502 commented on GitHub (May 26, 2022):
@phamleduy04 I think this might be your reverse proxy setup that causes the problem.
@phamleduy04 commented on GitHub (May 26, 2022):
okay so i found the problem is the
VITE_SERVER_ENDPOINTin .env file. I should put my local IP instead and just forward using traefik to reverse proxy :)@phamleduy04 commented on GitHub (May 26, 2022):
So this is how I do for production env.
I use the reverse proxy (traefik in my case) to map:
immich.your-domain.exampleto<IP>:2285and this is your web app to see photos.immich-api.your-domain.exampleto<IP>:2283and this will be theVITE_SERVER_ENDPOINTand the URL put in the phone app.Hope this helps 👍
@mada199122 commented on GitHub (May 27, 2022):
This is my compose stack but I'm not able to get it works always
THE env file instead is this one
Why should VITE_SERVER_ENDPOINT point to port 2283 if it is not present in the compose?
In any cane here the log
IMMICH SERVER
Here IMMICH WEB
@alextran1502 commented on GitHub (May 27, 2022):
@mada199122 The reason you cannot access is that you removed the Nginx container. The server is served via Nginx via port 2283 which is mapped to port 80 of the Nginx container.
@ghost commented on GitHub (May 27, 2022):
I've VITE_SERVER_ENDPOINT=http://10.1.11.50:2283/, I get the following error
I'm able to access the below endpoints
http://10.1.11.50:2283/server-info/ping
{"res":"pong"}http://10.1.11.50:2283/server-info/version
{"major":1,"minor":10,"patch":0,"build":14}@alextran1502 commented on GitHub (May 27, 2022):
@badlandspray Are you using your own reverse proxy setup? Can you try to fix the
VITE_SERVER_ENDPOINTby removing the forward slash at the end of the IP address, sohttp://10.1.11.50:2283instead ofhttp://10.1.11.50:2283/?After fixing that, can you access
http://10.1.11.50:2285?@mada199122 commented on GitHub (May 28, 2022):
Ok thank you.
Now I've added the Nginx container to the compose
And now I have this error:
The log of the web container and the server container are exactly the same as the attached one of my previous post.
But now I'm able to get this
http://X.X.X.X:2283/server-info/ping
{"res":"pong"}
http://X.X.X.X:2283/server-info/version
{"major":1,"minor":10,"patch":0,"build":14}
The log NGINX is the following one
@alextran1502 commented on GitHub (May 28, 2022):
@mada199122 there is the configuration file of Nginx in the 'docker' folder of the repo that you have to include in your setup.
@ghost commented on GitHub (May 28, 2022):
@alextran1502 Now, I'm able to access the
:2285and I created an account, upon visting/adminI get the below error:'Console errors
@alextran1502 commented on GitHub (May 28, 2022):
@badlandspray is this from your access through the local IP or from the public domain that is proxied to the private IP?
@ghost commented on GitHub (May 28, 2022):
Local IP. I'm using caddy. I've tried setting
VITE_SERVER_ENDPOINT=http://immich-server:3000.as well. Must be something wrong on my side.@alextran1502 commented on GitHub (May 29, 2022):
@badlandspray If you start fresh from the beginning and follow the readme file, do you have any problems?
@mada199122 commented on GitHub (May 29, 2022):
Yes of course I've already put that file in the mount volume of nginx container
But It seams from the log that nginx container is asking for a default configuration file
from this line of the log
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf is not a file or does not exist@alextran1502 commented on GitHub (May 29, 2022):
@mada199122 This is the location that the Nginx container is looking for the config file
If you look at the
dockerfolder in the repo, thenginx.confis put in the foldersettings/nginx-conf. Perhaps you have to create 2 folderssettings > nginx-confthen put the config file in there.I am not sure which tool you use to run the application so I don't have more information to fully provide support.
@mada199122 commented on GitHub (May 29, 2022):
But in docker compose the left path should be whatever I want in my host machine that it will be translated by docker to the path at the right side inside the container.
it shouldn't matter...
Now I've modified the compose to include the two folder as suggeste but nothing has changed:(
@alextran1502 commented on GitHub (May 29, 2022):
@mada199122 I am not sure if you have uploaded the correct image but it seems to not the correct path you showed in the docker-compose file
@mada199122 commented on GitHub (May 29, 2022):
no it is correct, /volume1 is not shown in the GUI of Synology NAS
I've attached a screenshot from the shell
@alextran1502 commented on GitHub (May 29, 2022):
@mada199122 Let's try two things
/volume1/docker/Immich/nginx/settings/nginx-conf:/etc/nginx/conf.dimmich-servercontainer by adding@mada199122 commented on GitHub (May 29, 2022):
tried both but nothing... always the same error..
@mada199122 commented on GitHub (May 29, 2022):
At the port 2283 I get this now
@alextran1502 commented on GitHub (May 29, 2022):
@mada199122 Can you post your
docker-composefile again? Did you performdocker-compose downanddocker-compose upafter you updated the file content?@mada199122 commented on GitHub (May 29, 2022):
Yes I've removed completely all the container and re-created
This is my actual compose
@alextran1502 commented on GitHub (May 30, 2022):
@mada199122 Before changing the content of the docker-compose, if you keep the same content and follow the direction in the readme file, with placing the
nginx.confat the correct location, can you test this scenario first? Then gradually change each container to your settings to catch errors incrementally@mada199122 commented on GitHub (May 30, 2022):
sorry I my previous post I copied the wrong NGINX compose, now I correct...
nginx.conf is in the correct location mapped in docker compose...
./settings/nginx-conf:/etc/nginx/conf.dis exactly equivalent than mine...sorry but I cannot understand the difference been that string a mapping path left to right
Could you explain me what is causing this of this error please?
So I can try to understand better what is wrong.
from my limited point of view it seams that immich-web is not able to talk to nginx if it speaks to nginx or to the server...
because from
http://IP:2283/server-info/pingI'm getting the answer "pong", so nginx and immich-server containers are talking each other...In immich-web log I see this
@wavesswe commented on GitHub (May 31, 2022):
I get 404 Not Found, before i tried i ran "docker-compose pull immich-web && docker-compose pull immich-server" again.
I can read the http://192.168.x.xx:2285/auth/login page but the http://192.168.x.xx:2285 page still throws the same error
@alextran1502 commented on GitHub (May 31, 2022):
@wavesswe Can you try to clear the
sessionin the cookie from the web dev tool?@alextran1502 commented on GitHub (May 31, 2022):
I am not sure why you are seeing that either, have you tried clearing the session in the cookie of the browser dev tool?
@mada199122 commented on GitHub (May 31, 2022):
Finally I got it working...
I don't know actually what I've done... But yesterday after many failed attempts I shut all the 4 containers down...
Now to try to clear the cookie session as you suggested I started the containers and magically now works...
I have two clues...
yesterday I've change the name of the nginx container, before I was using "immich_nginx_proxy" now I changed to the default one you use in your compose.
this is my nginx compose now
In the code of the container immich-web, have you hardcoded the address of the nginx container by its name of the container?
The second clue is that the last days I was using Safari browser during all the attempts, today accidentally I've tried to access immich-web with Firefox...
Now I don't know what to think... it seams it works on both browser...
@alextran1502 commented on GitHub (Jun 1, 2022):
@mada199122 I am glad it is working now for you. Perhaps you didn't shut down the container before when you perform the
docker-compose pullstep? Probably shutting it down perform a complete reset and register the most recent code change for the application@alextran1502 commented on GitHub (Jun 12, 2022):
Closing this issue as this is mostly a configuration problem from the user's side and it has expanded into an issue with scattered information about a different topic.
Please visit the Discord channel for additional help https://discord.gg/rxnyVTXGbM
@spupuz commented on GitHub (Oct 11, 2022):
it works.
Il giorno lun 23 mag 2022 alle ore 15:58 Alex @.***> ha
scritto: