Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate the emby server from the storage server #3522

Open
WinXaito opened this issue Feb 7, 2019 · 2 comments
Open

Separate the emby server from the storage server #3522

WinXaito opened this issue Feb 7, 2019 · 2 comments

Comments

@WinXaito
Copy link

WinXaito commented Feb 7, 2019

Hello,

I would like to have an emby server on a VPS, with my media on an external server.

I tried to create a webdav (saber / dav) on the second server and mount a disk on my VPS with davfs2.

But it does not seem to work, emby does not recognize any media. (and I tried with a symlink, but I get a 500 error from the server when reading).

Can you tell me if it's possible to do what I want (separate the emby server from the storage server).

Thanking you.

@YanzheL
Copy link

YanzheL commented Feb 9, 2019

My solution to this is to mount a Samba/AFP network share using GVFS on linux as a virtual file system.
I did some tests and it works perfectly.
GVFS may be a built-in feature on some linux distributions. My OS is ubuntu 18.04.

Steps

  1. Prepare smb credentials file smb.key which contains
username
WORKGROUP
password
  1. Mount SMB share as GVFS volume
    replace SMB_HOSTNAME and SHARE_NAME with your info
gio mount 'smb://SMB_HOSTNAME/SHARE_NAME' < smb.key
  1. Create a symlink of this volume to your Emby library path
    UID is your current linux user id. Emby should have permissions on this volume.
ln -s '/run/user/UID/gvfs/smb-share:server=SMB_HOSTNAME,share=SHARE_NAME' /path/to/your/emby/library

Notes:

  1. SMB storage server can running on linux; it is not limited to Windows only.
  2. The network connection between SMB server and Emby should be good enough. I suggest to put these VPSs on LAN at same region, eg. Virtual Private Cloud.

@LukePulverenti
Copy link
Member

Right, we don't have native support for this, I would just mount it in the OS as a local path, then add that to Emby. Does this help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants