#Can I change a setting from terminal?

1 messages · Page 1 of 1 (latest)

fathom lodge
#

I activated the experimental filesystem polling feature and now I can't access immich in my browser. I think it's hanging on the files hosted on a samba share.
Is there a way to change this setting from the terminal? Since I can't access the admin page.

dull scarabBOT
#

:wave: Hey @fathom lodge,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :ballot_box_with_check: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

dull scarabBOT
radiant topaz
#

You can configure it to use a config file and then use that to change settings.

fathom lodge
#

But, with an already running system it's not possible?

radiant topaz
#

You can still use a config file. Just set the respective env, add the file and restart

fathom lodge
#

But can I download my existing configuration?

radiant topaz
#

Oh you have made some configuration changes?

#

Then the easiest solution is probably to just change it in the DB

dull scarabBOT
radiant topaz
#

You can use the system config section there and then send the output here

fathom lodge
#

Thanks.

fathom lodge
#

I am not really an expert (or even a beginner) in Databse management - I know I need to amend that library watch.usepolling to false but not sure how.

SELECT "key", "value" FROM "system_config";
key | value
-------------------------------------+---------------
ffmpeg.transcode | "disabled"
job.objectTagging.concurrency | 4
job.clipEncoding.concurrency | 4
job.sidecar.concurrency | 4
job.migration.concurrency | 4
job.library.concurrency | 80
job.thumbnailGeneration.concurrency | 20
job.metadataExtraction.concurrency | 50
job.recognizeFaces.concurrency | 6
storageTemplate.enabled | true
ffmpeg.accel | "qsv"
library.scan.cronExpression | "0 */6 * * *"
job.smartSearch.concurrency | 60
job.faceDetection.concurrency | 60
library.watch.enabled | true
library.watch.usePolling | true

#

I tried this:
UPDATE "system_config" SET "library.watch.usePolling" = "false";

#

I get this error: Perhaps you meant to reference the column "system_config.value".

#

I also tried: SET "system_config.value" = "false" WHERE "system_config.key" = "library.watch.usePolling";

fathom lodge
radiant topaz
#

This actually looks good already! You don't particularly need to set the column to false, you simply DELETE the row

radiant topaz
fathom lodge
#

AMAZING! THank you for your help.

#

all I needed to do was:
SELECT * FROM system_config WHERE system_config.key = 'library.watch.enabled';
to check I had the right thing. Then I could delete it:
DELETE FROM system_config WHERE system_config.key = 'library.watch.enabled';