[arch-general] Nextcloud installation problems

David Runge dave at sleepmap.de
Sat Sep 30 17:00:21 UTC 2017


Hi,

On 2017-09-30 18:04:38 (+0200), Peter Nabbefeld wrote:
> 
> Hello,
> 
> I've got a problem trying to install nextcloud (I just want to try it out,
> so I don't have any knowledge about it, yet):
> 
> -----------------------------------------------------------------------------------
> 
> pacman -S nextcloud
> warning: nextcloud-12.0.3-2 is up to date -- reinstalling
> resolving dependencies...
> looking for conflicting packages...
> 
> Packages (1) nextcloud-12.0.3-2
> 
> Total Installed Size:  141.61 MiB
> Net Upgrade Size:        0.00 MiB
> 
> :: Proceed with installation? [Y/n]
> (1/1) checking keys in keyring
> [####################################################################] 100%
> (1/1) checking package integrity
> [####################################################################] 100%
> (1/1) loading package files
> [####################################################################] 100%
> (1/1) checking for file conflicts
> [####################################################################] 100%
> (1/1) checking available disk space
> [####################################################################] 100%
> :: Processing package changes...
> (1/1) reinstalling nextcloud
> [####################################################################] 100%
> :: Running post-transaction hooks...
> (1/2) Updating Nextcloud installation
> Nextcloud is not installed - only a limited number of commands are available
> No database drivers (sqlite, mysql, or postgresql) installed.
> 
> 
> Cannot write into "apps" directory
> This can usually be fixed by giving the webserver write access to the apps
> directory or disabling the appstore in the config file. See
> https://docs.nextcloud.com/server/12/go.php?to=admin-dir_permissions
> 
> PHP module GD not installed.
> Please ask your server administrator to install the module.
> 
> An unhandled exception has been thrown:
> Exception: Environment not properly prepared. in
> /usr/share/webapps/nextcloud/lib/private/Console/Application.php:145
> Stack trace:
> #0 /usr/share/webapps/nextcloud/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput),
> Object(Symfony\Component\Console\Output\ConsoleOutput))
> #1 /usr/share/webapps/nextcloud/occ(11): require_once('/usr/share/weba...')
> #2 {main}
> error: command failed to execute correctly
> (2/2) Arming ConditionNeedsUpdate...
> 
> -----------------------------------------------------------------------------------
> 
> 
> As one of the messages is "PHP module GD not installed. Please ask your
> server administrator to install the module." it's propably not depending on
> a needed module?
> 
> Kind regards
> Peter
I'm luckily still on 12.0.2, so thanks for writing before I would have
upgraded ;-)

The above error is thrown because of the maintainers, imho weird,
decision to add a hook to automatically upgrade the nextcloud
installation.[1]

Gd is disabled in php by default. So in default Arch installations this
hook fails.
However, gd can be activated in the /etc/php/php.ini file.

Anyways: I don't use the default php.ini ('php -c /folder/php.ini') file
for interfacing the instance and have all options disabled in the system
php.ini, which is why this will fail for me each time.

In any case, you can still just use it and go through the wiki article
[2] to read up on how to set it up.

Best,
David

[1] https://bugs.archlinux.org/task/55769
[2] https://wiki.archlinux.org/index.php/Nextcloud

-- 
https://sleepmap.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20170930/2e2dc9d8/attachment-0001.asc>


More information about the arch-general mailing list