@chris.imx: Yes, thank you. I did what you proposed, except that nginx does not have its own user - it runs as root and the worker processes as http, so therefore the correct command is: sudo usermod -aG findmydevice http.
Search Criteria
Package Details: findmydeviceserver 0.15.0-1
Package Actions
| Git Clone URL: | https://aur.archlinux.org/findmydeviceserver.git (read-only, click to copy) |
|---|---|
| Package Base: | findmydeviceserver |
| Description: | Official server for the android app FindMyDevice (FMD) written in Go |
| Upstream URL: | https://gitlab.com/fmd-foss/fmd-server |
| Keywords: | fmd,findmydevice,server,go |
| Licenses: | GPL-3.0-or-later |
| Provides: | findmydeviceserver |
| Submitter: | chris.imx |
| Maintainer: | chris.imx |
| Last Packager: | chris.imx |
| Votes: | 2 |
| Popularity: | 0.090514 |
| First Submitted: | 2024-10-17 19:13 (UTC) |
| Last Updated: | 2026-05-13 18:28 (UTC) |
Dependencies (5)
- glibc (glibc-gitAUR, glibc-eacAUR, glibc-git-native-pgoAUR)
- git (git-gitAUR, git-glAUR, git-wd40AUR) (make)
- go (go-gitAUR, gcc-go-gitAUR, go-binAUR, goup-rsAUR, gcc-go-snapshotAUR, gcc-go) (make)
- nodejs (nodejs-gitAUR, python-nodejs-wheelAUR, nodejs-lts-hydrogenAUR, nodejs-lts-iron, nodejs-lts-jod, nodejs-lts-krypton) (make)
- pnpm (pnpm-corepackAUR, pnpm-binAUR) (make)
Required by (0)
Sources (5)
Taijian commented on 2026-04-25 11:38 (UTC)
chris.imx commented on 2026-04-25 10:39 (UTC) (edited on 2026-04-25 10:42 (UTC) by chris.imx)
Hi @Taijian, have you been able to fix the issue? Did you leave the socket path as /run/findmydeviceserver/findmydeviceserver.sock and UnixSocketChmod: 0660 in /etc/fmdserver/config.yml? If yes, then the issue is most likely that the nginx user is not added to the findmydevice group which is needed for accessing the socket file. You can use sudo usermod -aG findmydevice nginx to fix this.
Then restart nginx so the change takes effect.
chris.imx commented on 2026-04-25 10:19 (UTC)
@Terrance Hi, good catch. I've now removed npm from the make-dependencies.
Taijian commented on 2026-04-13 21:10 (UTC)
I seem to have a slight issue:
By default, this packages service is runnig so well hardened, that nginx (my reverse proxy) can not access the socket file, which kinda defeats the purpose of having that thing set up in the first place...
Anyone have an idea of how to solve that issue?
Terrance commented on 2026-04-05 20:38 (UTC)
This package lists both npm and pnpm as make-depends, but only uses the latter. It seems to build and run fine without npm installed, so can that be dropped from the dependencies?
chris.imx commented on 2026-01-25 02:13 (UTC)
@rlees85 Thank you very much for your suggestions! I implemented them with the new revision.
For anyone upgrading and not being able to start the server now: You most likely just have to add DatabaseDir: "/var/lib/fmdserver/db" to the config file at /etc/fmdserver/config.yml
rlees85 commented on 2026-01-22 16:59 (UTC)
Thanks for making this package. I was going to do the same since I have a similar thing hosted elsewhere.
Just a couple of suggestions: could the database path not be hard coded (and removed from the systemd service)? If there is not a default within the binary could ship a default configuration file instead with the database path specified. At least that way it can be overridden.
IF a default configuration is shipped I'd recommend setting a default unix socket path too thats in /run/findmydeviceserver/findmydeviceserver.sock and adding the following tmpfile:
d /run/findmydeviceserver 0750 findmydevice findmydevice -
The database path being much more important
prurigro commented on 2025-12-31 21:46 (UTC)
Ahh, I guess it uses an external directory if you still have one configured. I'll have to try removing that line and see if it fixes things. Thanks for the response!
chris.imx commented on 2025-12-30 11:20 (UTC)
@prurigro That's correct. I removed that because they are now embedded into the server binary.
prurigro commented on 2025-12-28 17:48 (UTC)
As of d69cbd6ffd1b this package no longer appears to install the web files
Pinned Comments
chris.imx commented on 2026-01-25 02:13 (UTC)
@rlees85 Thank you very much for your suggestions! I implemented them with the new revision.
For anyone upgrading and not being able to start the server now: You most likely just have to add
DatabaseDir: "/var/lib/fmdserver/db"to the config file at/etc/fmdserver/config.ymlchris.imx commented on 2024-10-17 19:23 (UTC) (edited on 2025-12-30 11:19 (UTC) by chris.imx)
This packages the server for the FindMyDevice android app. It installs a systemd service to mange the server called
findmydeviceserver.service. This service will run the server with thefindmydeviceuser which was specifically created for the application. If you want to run it without the systemd unit the executable is/usr/bin/fmdserver.Configuration is in
/etc/fmdserver/config.yml. An example config can be found there if the package was newly installed. The data directory, where the database is also stored, can be found in/var/lib/fmdserver/.It is recommended to use the server with a reverse proxy.