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

vm/nextcloud_install_production.sh error #2488

Closed
githubDiversity opened this issue May 6, 2023 · 8 comments
Closed

vm/nextcloud_install_production.sh error #2488

githubDiversity opened this issue May 6, 2023 · 8 comments
Labels
Support Please visit https://help.nextcloud.com or https://shop.hanssonit.se/product-category/support/

Comments

@githubDiversity
Copy link

githubDiversity commented May 6, 2023

Steps To Reproduce

Host:
pve-manager/7.4-3/9002ab8a (running kernel: 5.15.107-1-pve)

VM OS:
Ubuntu 22.04.2 LTS

When running
https://github.com/nextcloud/vm/nextcloud_install_production.sh

as user ncadmin using sudo bash nextcloud_install_production.sh

I get an error message

Expected Result

no error message

Actual Result

Installing Nextcloud...
Nextcloud was successfully installed

Nextcloud version:
Your data directory is readable by other users.
Please change the permissions to 0770 so that the directory cannot be listed by other users.

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:167
Stack trace:
#0 /var/www/nextcloud/console.php(99): OC\Console\Application->loadCommands()
#1 /var/www/nextcloud/occ(11): require_once('...')
#2 {main}Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!
sudo -u www-data php /var/www/nextcloud/occ status failed

Screenshots, Videos, or Pastebins

No response

Additional Context

No response

Build Version

not stated / not aware

Environment

By using the scripts

Environment Details

No response

@githubDiversity
Copy link
Author

/mnt/ncdata is configured, via, /etc/fstab, as a cifs mount to an smb share on the host.
this share is on a ZFS filesystem accessible by the root user of the host and the smb user specific to this VM.

@enoch85 enoch85 added Support Please visit https://help.nextcloud.com or https://shop.hanssonit.se/product-category/support/ and removed bug labels May 7, 2023
@enoch85
Copy link
Member

enoch85 commented May 7, 2023

It's most probably a configuration issue.

Use one disk setup during installation, then mount the SMB share with our SMB mounting script (found in menu.sh).

@enoch85
Copy link
Member

enoch85 commented May 12, 2023

@githubDiversity Did my comment solve your issue?

@githubDiversity
Copy link
Author

My apologies. I had hoped being able to focus on nextcloud sooner.

I'll revisit the issue in a week or 2 and make sure to keep you updated.

@githubDiversity
Copy link
Author

I have gotten around to installing nextcloud using the script.

I noticed that the SMB mount script is used to create an external data location.
My use case is that I want the whole of the data folder to be moved to an SMB share.

Is this still possible?

I will investigate a bit later. Currently it seems that I can't log in with my ncadmin user or the user I created for the web interface. I am not sure where to look in the logs to determine what is going wrong.

@githubDiversity
Copy link
Author

Ok it was a keyboard mapping issue unrelated to the script/VM that made me not being able to login. Now I have solved that.

when I run menu.sh I no longer see the option to configure an SMB share. Should it still be there?

@enoch85
Copy link
Member

enoch85 commented May 17, 2023

when I run menu.sh I no longer see the option to configure an SMB share. Should it still be there

It's in "Additional Apps".

And yes, it's possible to use the SMB script to create an SMB share then change in config.php for Nextcloud.

@githubDiversity
Copy link
Author

Thank you, All seems well.

great script and VM!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Please visit https://help.nextcloud.com or https://shop.hanssonit.se/product-category/support/
Projects
None yet
Development

No branches or pull requests

2 participants