Documentation

Install on a Synology NAS

HyperDrop Server runs as a package on DSM 7 and DSM 6.2.

Contents

Install from Package Center

DSM 7 (tested 7.2.2 and 7.3.2). DSM 6.2 (tested 6.2.3).

  1. Package Center → Settings → General → Trust Level: Any publisher. DSM 6 refuses the package otherwise.
  2. Package Center → Settings → Package Sources → Add, with this address:
    https://gethyperdrop.com/synology/
    Then Community → HyperDrop → Install. Or download the package for your DSM version and processor and use Manual Install.
  3. DSM warns that the package is from a third-party developer. Click Agree; the install wizard opens.
  4. Choose an Admin password and fill in one address.

Package Center refuses the package? See Troubleshooting.

The install wizard

Installing the same or a newer package over HyperDrop (Manual Install, or Package Center's Update) opens the same wizard with the current settings filled in. What you change there is applied; the shared folder cannot change there. See Updates.

Ports 443 and 80 on a home NAS

DSM itself uses ports 80 and 443 on the NAS, which is why HyperDrop listens on 5080 and 5443 instead. That is no conflict: visitors never type those ports. They reach your router's ports 443 and 80, and the router forwards them to the NAS's 5443 and 5080.

If your router's 443 and 80 already go to another machine or app, you can still share them. A reverse proxy that routes by domain name sends each name to a different machine, so one pair of ports serves several sites. Many modern routers can run one themselves (Docker or container support, or a proxy package), and so can the NAS (Container Manager) or any machine that is always on. It is usually a matter of configuration, not of buying anything. When ports 443 and 80 are taken has examples.

On your router

The certificate is issued once the address and the 443 forward are in place; the first start can take a few minutes. Until then the app says the server has no certificate yet (Troubleshooting). The address to join is https:// plus the address, with no port. Ports already used by DSM or another device: Ports 443 and 80 on a home NAS. More: Router forwards. With ports other than 5080 and 5443, see DSM's firewall.

After the install

  1. Forward the two ports on your router (above) and wait a few minutes for the certificate.
  2. Open the HyperDrop app, choose Join a HyperDrop server, and sign in at https:// plus the address you chose, with no port, as the administrator from the wizard.
  3. Add the people who will share: Accounts, the server, Users…, and send each the message the app shows (Adding people).

Change settings later

HyperDrop appears in DSM's main menu. Only DSM administrators can open it, and it works while HyperDrop is stopped. Its Settings tab shows whether HyperDrop is running, its version, whether it can be reached from the internet and any problem it knows of, each with a Help link. Below that you can change:

  • the address: a free name or your own domain, the same choice as in the wizard;
  • the HTTP and HTTPS ports;
  • the proxy address (which proxies). When HyperDrop sees connections from a proxy it does not trust, the page offers that address with one click.

Save and restart writes the settings and restarts HyperDrop. The change applies in the background and the page shows its progress; claiming a free name can take half a minute. If HyperDrop does not come up healthy, the page puts the previous settings back by itself and says last change undone with the reason, so a typo cannot leave you with a server that will not start. Open log shows the end of the server log.

A new address does not move your links until it works. Your own domain is adopted once it points at this NAS; a free name once you have approved it, and while it waits, the page's message carries an Approve link (Approve alice.hyperdrop.link) that opens your HyperDrop account page, where you approve the free name. Until then the old address keeps serving. The page cannot change one free name into another free name: do that from the HyperDrop app. Other devices keep their old entry for the server; change it there.

HyperDrop appears in DSM's main menu on DSM 6.2 as well. Only DSM administrators can open it, and it works while HyperDrop is stopped. Its Settings tab shows whether HyperDrop is running, its version, whether it can be reached from the internet and any problem it knows of, each with a Help link, and lets you change the address, the HTTP and HTTPS ports and the proxy address. Save and restart applies the change in the background, undoes it with the reason if HyperDrop does not come up healthy, and Open log shows the end of the server log; a new address does not move your links until it works, as described for DSM 7 above.

Without the page, Manual Install the same or a newer package over the installed one: the wizard opens with the current settings filled in, and what you change there is applied.

Where HyperDrop keeps its data

On DSM 6 the data lives on the volume the package is installed on, in @appdata/hyperdrop, beside the package. The page's Storage tab shows the volume, the folder and the free space; that folder is what to back up. DSM 6 cannot move it to another volume. The rest of this section is for DSM 7.

Everything HyperDrop stores lives in the shared folder you chose in the wizard: the database, the shares, the daily database backups, the logs, the certificates and the server's secret. The page's Storage tab shows the folder, its volume and the free space.

  • Back the whole folder up with Hyper Backup or snapshots. A backup of that folder restores HyperDrop. It holds the server's secret, so keep the backup as trusted as the NAS itself.
  • Do not edit it in File Station. Administrators and HyperDrop can both change files in it, and a file changed or deleted by hand can break HyperDrop.
  • Turn on the folder's Recycle Bin (Control Panel → Shared Folder → Edit; only an administrator can) so a stray delete can be undone from #recycle.
  • Uninstalling with "delete data" empties the folder but DSM keeps the empty folder; delete it in Control Panel if you want it gone. Uninstalling without it keeps everything, and a reinstall with the same folder name picks it up.

Move the data to another volume

DSM moves a shared folder for you; the Storage tab guides it so HyperDrop is not running meanwhile.

  1. On the Storage tab, click Stop HyperDrop for a move.
  2. In Control Panel → Shared Folder, select the folder and click Edit; under Location choose the new volume and Save. DSM copies the files, which can take a while.
  3. When DSM has finished, return to the page and click Start HyperDrop.

Until HyperDrop has started again, Save and the Admin rescue wait. The folder's name cannot change; HyperDrop follows the folder to its new volume.

"Files are missing from HyperDrop's data folder"

HyperDrop checks at start and once a day that every file it stores is still on disk. If some are not, the HyperDrop page and the server card in the HyperDrop app for Mac or Linux say how many. Restore them from your backup of the folder, or from the folder's #recycle if its Recycle Bin was on.

"The HyperDrop folder is locked or missing"

HyperDrop does not start, and never creates a new empty database, when its folder is not there. The usual causes: the shared folder is encrypted and has not been unlocked since the NAS restarted (unlock it in Control Panel → Shared Folder), its volume is not mounted yet, or a move to another volume is still in progress. Fix that, then start HyperDrop in Package Center or on the page's Storage tab.

If the folder was deleted and DSM made a new empty one with the same name, HyperDrop says the HyperDrop folder is empty or was replaced and does not start. Restore the folder from a backup, or reinstall HyperDrop to start over.

The proxy warning

The HyperDrop page and the server card in the HyperDrop app for Mac or Linux can show a warning like one of these (paraphrased):

Examples for the proxy side: When ports 443 and 80 are taken.

DSM's firewall

If DSM's firewall is on (Control Panel → Security → Firewall) and your ports are not 5080 and 5443, allow the ports you chose. HyperDrop keeps its DSM port definition in step with the ports in its settings, so the application list in the firewall and the Router Configuration screen show them; the HyperDrop page reminds you when the ports differ from the defaults.

Locked out: the admin rescue

On the HyperDrop page, the Admin rescue tab resets an administrator's password when you can no longer sign in from the app. Pick the administrator from the list, type a new password twice, and tick Also remove its second factor if the authenticator is lost. HyperDrop stops, the reset runs, and HyperDrop starts again. That account is signed out everywhere; if you removed the second factor, the app asks for a new one at the next sign-in. Shares and links are not touched.

On the HyperDrop page, the Admin rescue tab resets an administrator's password when you can no longer sign in from the app, exactly as on DSM 7: pick the administrator, type a new password twice, tick Also remove its second factor if the authenticator is lost. HyperDrop stops, the reset runs, and HyperDrop starts again.

If you cannot open the page, a reset is a terminal job. Turn on SSH in Control Panel → Terminal & SNMP and stop HyperDrop in Package Center. The commands run as the package user hyperdrop, never as root, so every file they write stays readable by the package. Replace volume1 with the volume HyperDrop is installed on. This lists the administrators:

sudo -u hyperdrop env HYPERDROP_DATA=/volume1/@appdata/hyperdrop/data /var/packages/hyperdrop/target/bin/hyperdrop-server admins

To set a new password, put it in a file only the package user can read, then run resetadmin with the name of an account from that list. The command reads the file byte for byte and deletes it, so the password does not stay on disk:

read -rs pw; printf %s "$pw" | sudo -u hyperdrop sh -c 'umask 077; cat > /volume1/@appdata/hyperdrop/seed.tmp'
sudo -u hyperdrop env HYPERDROP_DATA=/volume1/@appdata/hyperdrop/data HYPERDROP_ADMIN_USER=<account> HYPERDROP_ADMIN_PASSWORD_FILE=/volume1/@appdata/hyperdrop/seed.tmp /var/packages/hyperdrop/target/bin/hyperdrop-server resetadmin

Type the name exactly as the list shows it: resetadmin creates a new administrator for a name it does not know, and the locked-out account stays locked. This signs that account out everywhere. To remove an account's second factor as well:

sudo -u hyperdrop env HYPERDROP_DATA=/volume1/@appdata/hyperdrop/data /var/packages/hyperdrop/target/bin/hyperdrop-server reset2fa <account>

Start HyperDrop again in Package Center. Type passwords in the NAS terminal only, never in a chat.

Share folders already on the NAS

Give HyperDrop read access to a shared folder: Control Panel → Shared Folder → select the folder → Edit → Permissions → System internal user → HyperDrop → Read.

Updates

Package Center offers each new version under Installed → HyperDrop → Update, or Manual Install the newer package over the old one; shares, links and settings are kept. The update page opens with your current settings filled in. Nothing there needs to change: click Next to install the update, and change a value only to move HyperDrop to another address, other ports or a proxy. See Updates.

Until Package Center lists a new version, the app and the command line keep working with a server within the version rule (Version mismatch).

Once a day HyperDrop asks gethyperdrop.com whether a newer release is out, so administrators hear of security fixes. To turn that off, sign in to the NAS over SSH as an administrator, add the line HYPERDROP_SERVER_RELEASES= to /var/packages/hyperdrop/var/hyperdrop.conf (on DSM 6.2, hyperdrop.conf in the @appdata/hyperdrop folder of HyperDrop’s volume) with sudo, and stop and run HyperDrop in Package Center. You then hear of a new release only from Package Center.

Open source

The package and the server in it are open source under the AGPL-3.0-only: you can read the code that runs on your NAS, and build the package yourself. The packages on gethyperdrop.com and in Package Center are HyperDrop’s official builds of that code. Source code on GitHub.