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

DietPi-Software | Nextcloud: Error during Install #2433

Closed
Gill-Bates opened this issue Jan 21, 2019 · 7 comments
Closed

DietPi-Software | Nextcloud: Error during Install #2433

Gill-Bates opened this issue Jan 21, 2019 · 7 comments
Labels
Bug 🐞 Solution available 🥂 Definite solution has been done

Comments

@Gill-Bates
Copy link

Setup of Nextcloud stuck during Installation:
unbenannt

│ DietPi-Software: cp -f /DietPi/dietpi/conf/apache.nextcloud.conf
│ /etc/apache2/sites-available/dietpi-nextcloud.conf
│ - Exit code: 1
│ - DietPi version: v6.19.7 (Fourdee/master) | HW_MODEL:3 | HW_ARCH:2 | DISTRO:4
│ - Image creator: DietPi Core Team
│ - Pre-image: Raspbian Lite

│ Log file contents:
│ cp: cannot stat '/DietPi/dietpi/conf/apache.nextcloud.conf': No such file or directory



│ Unable to continue, DietPi-Software will now terminate.
│ ▒
│ Retry : Re-run the last command that failed ↓
│ DietPi-Config : Edit network, APT/NTP mirror settings etc

@MichaIng
Copy link
Owner

@wtfmaster
Thanks for your report.

Jep it is a known issue with v6.19 and resolved with v6.20 (Beta).

Please see how to apply the fix now: https://github.com/Fourdee/DietPi/issues/2383#issuecomment-450968409

@Gill-Bates
Copy link
Author

Awesome!

I would really appreachiate, when the php.ini will be optimized by the Installer regarding to the recommended settings of Nextcloud

opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1

memory_limit = 512M

@MichaIng
Copy link
Owner

MichaIng commented Jan 21, 2019

@wtfmaster
This is (should be) already the case. We add the settings to /etc/php/7.0/mods-available/opcache.ini, which is a bid more elegant than in php.ini directly, since the settings are switched on/off together with the OPcache module. By this the php.ini can be updated to new defaults via APT automatically e.g. so drop-in configs should be generally preferred on Linux.

opcache.memory_consumption is not added there, mainly as a concern that on 256M devices, PHP could eat up too much memory, although only theoretically. It is added instead via the Nextcloud Apache config (that failed to copy on install 😉), applied to /var/www/nextcloud only, to at least not allow other web applications to eat that much.

The memory_limit is indeed not touched, so at 128M default value on fresh install. However this is for a single script only, and there is really no chance that any Nextcloud script eats that much, if not you are doing something seriously wrong 😉.


Final question:

  • Does your admin panel show any warning about OPcache or something else?

@Gill-Bates
Copy link
Author

unbenannt
Since I have increased the RAM in php.ini from 128M (default) to the required 512 M, one error message disappeared

@MichaIng
Copy link
Owner

MichaIng commented Jan 22, 2019

@wtfmaster
Will try to replicate.


The imagick warning should be ignored. This is not required, just enables the create previews for some very rare image formats, used by the Theming app and disappears, if you disable theming.
There is even some discussion about that on Nextcloud forum, that imagick is an outdated app that implies some security holes, so should be really not enabled, as long as you don't explicitly require an implied feature.


PHP7.0 warning is known, we are thinking about how to solve this on Debian Stretch, which natively ships PHP7.0 only: https://github.com/Fourdee/DietPi/issues/2367


The memory_limit value is actually served by Nextclouds own .htaccess file...


Ahh, I know what went wrong, respectively I forgot:

a2ensite dietpi-nextcloud
systemctl reload apache2

@MichaIng
Copy link
Owner

@wtfmaster
Are the OPcache warnings resolved with the two commands above?

@MichaIng MichaIng changed the title Error during Install Nextcloud DietPi-Software | Nextcloud: Error during Install Jan 26, 2019
@MichaIng
Copy link
Owner

MichaIng commented Feb 9, 2019

Mark as closed, since initial error is solved and second only replicable with Lighttpd + HTTPS enabled: https://github.com/Fourdee/DietPi/issues/2489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐞 Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

2 participants