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

No-mount switch when installed on raspbian #8

Open
vondravl opened this issue Nov 18, 2021 · 9 comments
Open

No-mount switch when installed on raspbian #8

vondravl opened this issue Nov 18, 2021 · 9 comments

Comments

@vondravl
Copy link

vondravl commented Nov 18, 2021

Hi, everything functions well when using on external drive. But I'm struggling to make it work without external drive. I tried both specify mount-dir (which is /home/pi directory) and no-mount switch, but also either specify mount-dir or no-mount switch but no option worked. Is it possible to use it without external drive? If so, how should I modify ExecStart in “/lib/systemd/system/lomod.service”?

@dwebfan
Copy link
Collaborator

dwebfan commented Nov 19, 2021

@vondravl sorry to hear that. For raspbian, it has to use external drive, or NFS / SAMBA mount because SD card capacity is not enough. May I know why you don't want to use external drive? Did you boot from one HDD drive / USB drive instead of SD card?

@vondravl
Copy link
Author

@dwebfan Yes I'm booting already from ssd drive and I would like to use it. Is it possible to make workaround by using samba mount which is on the same ssd as lomorage? How would ExecStart in “/lib/systemd/system/lomod.service” look like? I tried: ExecStart=/opt/lomorage/bin/lomod -b /opt/lomorage/var --mount-dir /<ip-address>/<share-folder> --max-upload 1 --max-fetch-preview 3 and also ExecStart=/opt/lomorage/bin/lomod -b /opt/lomorage/var --mount-dir smb://<ip-address>/<share-folder> --max-upload 1 --max-fetch-preview 3 but neither worked for me

@dwebfan
Copy link
Collaborator

dwebfan commented Nov 19, 2021

@vondravl please try this one

ExecStart=/opt/lomorage/bin/lomod --mount-dir <absolute path of share-folder> --no-mount-mon

@vondravl
Copy link
Author

Almost working, I can see and choose the directory when creating a user, but creating is failing ("Failed to create user").

@fuji246
Copy link
Collaborator

fuji246 commented Nov 20, 2021

@vondravl , could you send "/opt/lomorage/var/log/lomod.log" to support@lomorage.com? Or you can check the log and post error/warn messages here.

@fuji246
Copy link
Collaborator

fuji246 commented Nov 23, 2021

@vondravl , we've confirmed there is a bug and we will fix it and release a new version this week. Thank you for reporting this, will let you know once it's ready.

@fuji246
Copy link
Collaborator

fuji246 commented Nov 26, 2021

@vondravl , you can update and try again, should be notice that changing ExecStart is not recommended since it may be override when upgrade, you can use the environment file instead, see https://docs.lomorage.com/docs/Installation/lomorage-service/installation-raspbian/#3-configuration-parameter-customization.

You can use "LOMOD_DISABLE_MOUNT_MONITOR=1" to disable the mount monitoring, and use "LOMOD_MOUNT_DIR" to specify the media directory for backup.

@fuji246
Copy link
Collaborator

fuji246 commented May 4, 2022

@vondravl , was the problem fixed after you upgraded?

@vondravl
Copy link
Author

vondravl commented May 5, 2022

Sorry I didn't have the patience to debug the whole thing. I switched to other software.

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