The company photo archive (Photos)

At John Smith Ltd the work photos (the fair stand, the pieces in production, the customers' building sites) are scattered over the phones of whoever takes them, in a few network folders and in…

Situation

At John Smith Ltd the work photos (the fair stand, the pieces in production, the customers’ building sites) are scattered over the phones of whoever takes them, in a few network folders and in many chats. When the image of a product is needed nobody knows where it is, and if a phone breaks the photos are lost.

Laura White (lwhite, IT) installs the Photos module (underneath is Immich, a free program for photos): every employee automatically saves their phone’s photos to the appliance, searches them by content («stand», «machine», a text written on a sign), and Julia Brown and Paul Black also bring in the photos they already keep in their home folders. In this scenario you install the module, choose who can use it and how much space each has, connect a phone, index a home folder, check the space used and handle someone leaving the company.

Warning The photo archive is published on the internet, at the name photo.atlas.johnsmith.test: it is needed for the certificate and for the phone apps. Access is however only through single sign-on (domain user name and password, then the OTP code if there is a second factor). Immich has no password of its own.

What you need

  • The domain and single sign-on (SSO) already installed and active: the Photos module depends on both (web and System → Modules).
  • An internet name of the appliance registered in the public DNS (atlas.johnsmith.test → 198.51.100.40) and a record for photo.atlas.johnsmith.test pointing to the same appliance. The name is needed by the certificate and by the phone apps.
  • Let’s Encrypt active for certificates (System → Settings → TLS certificates), because phone apps do not connect to a self-signed certificate.
  • Enough memory: below about 5.5 GiB of RAM the installation is refused; for smart search you need at least 8 GB of RAM and an x86-64-v2 CPU (or arm64). Otherwise the archive works without smart search.
  • Every user must have an email address in Active Directory (Active Directory → Users): the first time, Immich creates the user only if single sign-on supplies one.
  • For the phone: iPhone or Android, and the ability to download the Immich app from the App Store, Google Play or F-Droid.

Steps

Prepare the prerequisites

  1. Open System → Modules and check that the «Single sign-on (SSO)» card is «Configured». If it is missing, install it first (scenario «Single sign-on (SSO) to an external application»).
  2. Open System → Settings → TLS certificates: «Enable Let’s Encrypt» must be on, with the «Contact email» (lwhite@johnsmith.test). The public DNS must resolve photo.atlas.johnsmith.test and port 80 must reach the appliance.
  3. Open the «Photos» card in System → Modules: if memory is insufficient the console says so before starting.
  4. Check the email addresses: in Active Directory → Users open jsmith, jgreen, jbrown and pblack and check that the email field is filled in.

Install the module

  1. In System → Modules select the Photos card and press «Next».
  2. «Address»: photo.atlas.johnsmith.test is proposed, read-only (it derives from the appliance’s internet name).
  3. «Restrict access to a group»: for now leave it off; you will see below how to tighten. Off, every domain user gets in.
  4. «Default quota (GiB)»: 50. 0 means no limit.
  5. Start. A window reminds you: «The photo archive will be published at photo.atlas.johnsmith.test, reachable from the internet. The name must be registered in the public DNS for this appliance, for the Let’s Encrypt certificate and for the phone apps. Do you confirm?» Press «Deploy».
  6. Wait: «Deploying the photo archive: the first download of the images takes a few minutes, please wait…» Do not close the page; if you close it the work continues.
  7. When the work is done the card becomes «Configured» and in the bell icon «Photo archive deployed» appears. Read any warnings:
    • «Photo archive deployed with the self-signed certificate: the phone apps do not connect until Let’s Encrypt issues one for its name.» → go back to step 2;
    • «Photo archive deployed without smart search: the CPU lacks the x86-64-v2 instructions.» or «…the RAM is less than 8 GB.» → the archive works, but without smart search or recognition.

If it fails you see «Deploying the photo archive failed.» and the reason (image not downloaded, database, site not published, single sign-on unreachable with a valid certificate): check the logs and try again, the installation resumes.

For the technician There are three services: edon-photos (the Immich server), edon-photos-ml (smart search and text recognition) and edon-photos-redis (the job queue). The database is photos in the appliance’s PostgreSQL. The data is in /srv/data/share/edon-photos; home folders are mounted read-only. The services run at low CPU and disk priority: on a busy machine the thumbnails arrive at their own pace.

Choose who gets in and how much space they have

  1. Open System → Settings → Photos. «Address» is read-only.
  2. Turn on «Restrict access to a group» and choose the group administration: through single sign-on only its members get in (nested groups too); domain administrators always get in. To let production in as well, create a common group in Active Directory → Groups and choose it here.
  3. «Default quota (GiB)»: 50. It applies to the space of uploaded photos; the space of photos read from home folders does not count.
  4. «Face recognition»: leave it off. It groups photos by person, but the models used are distributed for non-commercial use: turn it on only if the licence allows.
  5. Check the row «Smart search status»: it says whether it is active or unavailable, with the reason.
  6. Press «Apply». «Photo archive settings applied.» or «Saved: the photo archive applies it within a few minutes.» appears.
  7. Jack has a lot of material: open Active Directory → Users → jgreen, field «Photo quota (GiB)», write 100, «Save». Empty = default quota, 0 = no limit. A user’s quota is separate from the home folder’s.

Whoever leaves the group can no longer get in: within a few minutes their sessions, the apps’ too, are closed. Their photos stay. A user outside the group who opens Tools → Photos reads «The photo archive is reserved to a group you are not in: ask your administrator.»

The phone’s automatic backup (John)

  1. John Smith opens Tools → Photos. The page has three panels: «In the browser», «On the phone», «Your home folder».
  2. In the «On the phone» panel there are the links to the app: «App Store (iPhone and iPad)», «Google Play (Android)» and «F-Droid (Android)», and the address to enter as the server (https://photo.atlas.johnsmith.test): one click selects it for copying.
  3. Install the Immich app on the phone.
  4. At start-up paste the server address and press «Accedi con Atlas» (the button’s label is in Italian even in the English edition).
  5. Enter jsmith, the domain password and the OTP code.
  6. In the app turn on the backup and choose the phone’s albums to save. The photos go into John’s library on the appliance.
  7. After a few minutes, from the «In the browser» panel of Tools → Photos open the archive and press «Accedi con Atlas»: the phone’s photos are there. From the domain’s PCs the sign-in can be automatic.

Warning Phone apps require a valid certificate on the archive’s address. If the appliance still uses the self-signed certificate the app does not connect.

Search (by content, by text contained in images) and shared albums are Immich functions: their interface is Immich’s, which has its own documentation. Atlas manages access, quotas and indexing.

Photos already in the home folder (Paul)

Paul has 2,000 production photos in the folder Photos of his home folder, on the network disk.

  1. Paul opens Tools → Photos, panel «Your home folder». If you choose nothing only the Photo folder comes in («Until you choose, the “Photo” folder comes in.»).
  2. The first-level folders of his home folder are listed with a box: tick Photos. Leave «The whole home folder» off (on, it would also bring in work, code and sites, filling the archive with icons and service images).
  3. Press «Save». «Choice saved: Immich updates the library within a few minutes.» appears.
  4. Open the archive and search for a word that appears in a photo: in the library «Cartella personale» (the library’s name, Italian for “home folder”) the photos appear read-only.

Other behaviours:

  • A folder removed from the choice leaves Immich at the next scan, which starts at once: the photos go to Immich’s trash, the files in the home folder stay where they are.
  • A chosen folder that does not exist yet is flagged («Not in your home folder yet: …»): create it and put the photos there.
  • If you have no home folder: «You have no home folder on this server: there is nothing to index.»
  • To change a photo of the library «Cartella personale» work on the file in the home folder (Tools → Folders or Windows): Immich picks it up at the nightly scan.
  • .ts files are always excluded; camcorder videos (.mts, .m2ts) come in.

Check the space

  1. Open Status and look for the «Photos» card: for each user the total, «Originals» and «Previews and videos», and an «originals against the quota» bar where a quota applies. The rows are ordered from the user who takes up the most space. The figure updates every hour («No data yet: measured every hour»); a refresh button redoes it at once.
  2. A warning sign means some folder was not measured and the figure is partial («Folders not measured: n»).
  3. If somebody takes up too much: ask them to narrow the choice in Tools → Photos (not «The whole home folder»), or lower the default quota or give a quota of its own from Active Directory → Users.
The Photos card of StatusThe Photos card of Status
The Photos card of Status

Someone leaving the company

  1. Disable the account (see the scenario «Someone leaving the company: disabling, forwarding mail, keeping data»).
  2. At the next round (about 5 minutes) their sessions and their Immich API keys are deleted; the data stays.
  3. The public links they had created stay valid: if needed, an Immich administrator revokes them from the archive. In the «Photos» card of Status the removed user appears as «Removed user» as long as they still have files.
  4. Deleting the user also removes their quota: a new account with the same name starts again from the default quota.

The archive’s backup

  1. The archive’s data is under /srv/data/share/edon-photos, that is, in the shared files area; the photos database is in the appliance’s PostgreSQL, already included in the backup (Immich’s internal dumps are off).
  2. Check in Backup that the cycle that saves files is not in «Configuration only» mode (it excludes the shared files).

Not verified There is no console page saying “the photos are in the backup”: the archive folder falls within the shared files area, and so should be included when the backup saves files, but at the time of writing a dedicated restore of the photos was not tried. Before relying on it, do a test restore of a folder (see the scenario on restores).

Check

  • Tools → Photos is visible to jsmith and to the other members of the group, not to users outside the group (who read «The photo archive is reserved…»).
  • John’s phone uploads photos: after a few minutes you see them from the browser.
  • Paul’s «Cartella personale» library shows the photos of Photos read-only, and smart search finds them (if search is active).
  • Status → «Photos» card lists the users with the space used.
  • jgreen has 100 GiB of photo quota, the others 50 GiB.

If something goes wrong

Symptom Cause What to do
«The photo archive is not installed on this appliance.» the module is not there install it from System → Modules
«The photo archive is reserved to a group you are not in: ask your administrator.» you are not in the group, or you signed in before the change add the person to the group; the session updates at the next sign-in
Sign-in fails at the first attempt the user has no email address in Active Directory fill in the email in Active Directory → Users
The app does not find the server address without https://, or invalid certificate write the full address; step 2 (Let’s Encrypt)
The app says the certificate is not trusted the archive still uses the self-signed certificate turn on Let’s Encrypt and wait for issuance
The home folder photos do not appear scan still queued, or folder not chosen wait a few minutes; the appliance gives the archive low priority; check the choice
The installation is refused for memory RAM below about 5.5 GiB increase the machine’s RAM
Smart search unavailable less than 8 GB of RAM or CPU without x86-64-v2 this is normal: the archive works without it
The archive takes up too much home folders full of non-photo material, quotas too high step 32
«The database (edon-pgsql) lacks the VectorChord extension: update Atlas and the service images, then try again.» old pgsql update from System → Settings → Updates

Limits to remember: you get in only with single sign-on; an email address in Active Directory is required; the «Cartella personale» library is read-only, does not count against the quota and updates every night; without 8 GB of RAM there is no smart search. For the details see photos.

LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer