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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible "NEXTCLOUD_DATADIR" option limits for macOS. #576

Closed
oesni opened this issue May 6, 2022 · 7 comments 路 Fixed by #584
Closed

Incompatible "NEXTCLOUD_DATADIR" option limits for macOS. #576

oesni opened this issue May 6, 2022 · 7 comments 路 Fixed by #584
Labels
2. developing Work in progress enhancement New feature or request
Milestone

Comments

@oesni
Copy link

oesni commented May 6, 2022

How to use GitHub

  • Please use the 馃憤 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

I'm trying to install nextcloud-aio on my m1 mac mini running macOS 12.2.1
Since macOS doesn't have directory such as /mnt or /media and root is read-only by default(It is mandatory to disable macos SIP to write to / which is not recommended).
Hence, It is not possible to export nextcloud's data dir to host and to use external storage to save data. (I want to save my data on external storage array)

Expected behavior

change the default location of Nextcloud's Datadir

Actual behavior

Not possible on macOS.

Host OS

macOS 12.2.1 (Apple Silicon)

Nextcloud AIO version

v1.1.0

Current channel

latest-arm64

Other valuable info

image

@oesni oesni added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels May 6, 2022
@szaimen
Copy link
Collaborator

szaimen commented May 6, 2022

Which path would be needed for macos?

@szaimen szaimen added needs info Not enough information provided enhancement New feature or request and removed bug Something isn't working labels May 6, 2022
@szaimen
Copy link
Collaborator

szaimen commented May 6, 2022

And are you sure that allowing another path will solve this problem? If I read correctly, there is no way around disabling SIP if the program is not signed by apple...

@oesni
Copy link
Author

oesni commented May 6, 2022

I think If NEXTCLOUD_DATADIR accept path under the /var (like /var/nextcloud-data), there is no need to disable SIP :).
image

@szaimen
Copy link
Collaborator

szaimen commented May 6, 2022

Can you post the output of sudo ls -l /var please?
I need to see which folders are inside by default...

@szaimen
Copy link
Collaborator

szaimen commented May 6, 2022

Also are there other paths apart from /var in the root directory that are writeable by default?

@oesni
Copy link
Author

oesni commented May 6, 2022

/var
image
/
image
According to Apple, /System, /usr, /bin, /sbin, /var and Apps that are pre-installed with OS X is protected by SIP. 馃(I think doc is published at the time when SIP is introduced, So things could be changed now.)
and said third-party apps can continue to write to /Application, /Library, /usr/local.

Not 100% sure, but /usr/local or /opt might be the suitable path for 3rd party applications. (Cause other mac applications - like brew or macports ... - usually use that path.

@szaimen
Copy link
Collaborator

szaimen commented May 6, 2022

I see. We'll rework this to not enforce specific values anymore.

@szaimen szaimen added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending approval or rejection. This issue is pending approval. needs info Not enough information provided labels May 6, 2022
@szaimen szaimen added this to the next milestone May 6, 2022
@szaimen szaimen added 2. developing Work in progress and removed 1. to develop Accepted and waiting to be taken care of labels May 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2. developing Work in progress enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants