[Support] Linuxserver.io - Nextcloud


Recommended Posts

cant Update to v24.0.1 by WebUI having errors (504: Gateway time-out) on step 3 or 5  .... (Using Unraid 6.10.1 + NPM +Clouflare)
tryed to add :
 
location ~ \.php(?:$|/) {
fastcgi_read_timeout 600; fastcgi_send_timeout 600; fastcgi_connect_timeout 600; proxy_connect_timeout 600; proxy_send_timeout 600; proxy_read_timeout 600; send_timeout 600;
}
 
but then having error of webdav  and no connection from Cloudflare in update....
 

I have never had luck using the updater. I recommend following the manual update instructions in post 1; they’ve worked for me for… many iterations.
  • Like 2
  • Upvote 1
Link to comment
On 5/8/2022 at 1:01 AM, Demet said:

Hello,

 

I keep receiving these errors when uploading my camera phone from my iphone to Nextcloud. Has anyone seen this before or knows a fix?

 

Movie Preview Generation Failed:

 

 

[core] Error: Movie preview generation failed Output: ["ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers","  built with gcc 10.3.1 (Alpine 10.3.1_git20210424) 20210424","  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-vulkan --enable-libsoxr --enable-libwebp --enable-libaom --disable-debug","  libavutil      56. 70.100 / 56. 70.100","  libavcodec     58.134.100 / 58.134.100","  libavformat    58. 76.100 / 58. 76.100","  libavdevice    58. 13.100 / 58. 13.100","  libavfilter     7.110.100 /  7.110.100","  libavresample   4.  0.  0 /  4.  0.  0","  libswscale      5.  9.100 /  5.  9.100","  libswresample   3.  9.100 /  3.  9.100","  libpostproc    55.  9.100 / 55.  9.100","/data/XXXX/files_trashbin/files/18-06-01 14-23-22 28E3.mp4.d1651894617: Invalid data found when processing input"]

at 2022-05-07T22:52:12+00:00

 

I have exactly the same Problem and don't know how to fix...

 

Movie preview generation failed Output: {"0":"ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers","1":" built with gcc 10.3.1 (Alpine 10.3.1_git20210424) 20210424","2":" configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-vulkan --enable-libsoxr --enable-libwebp --enable-libaom --disable-debug","3":" libavutil 56. 70.100 / 56. 70.100","4":" libavcodec 58.134.100 / 58.134.100","5":" libavformat 58. 76.100 / 58. 76.100","6":" libavdevice 58. 13.100 / 58. 13.100","7":" libavfilter 7.110.100 / 7.110.100","8":" libavresample 4. 0. 0 / 4. 0. 0","9":" libswscale 5. 9.100 / 5. 9.100","10":" libswresample 3. 9.100 / 3. 9.100","11":" libpostproc 55. 9.100 / 55. 9.100","12":"Input #0, mov,mp4,m4a,3gp,3g2,mj2

Link to comment
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

sometimes when i reboot the nextcloud will show this.

i am so confused about ti.

the sql is postgresql14

wish somebody can help me

thank you

  • Upvote 1
Link to comment
On 4/16/2021 at 3:07 PM, johnwhicker said:

WebUI.  I am doing a CLI now,    docker exec -it nextcloud updater.phar

 

So now is tuck again:

 

root@NAS-UNRAID:~#

root@NAS-UNRAID:~# docker exec -it nextcloud updater.phar

Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

 

Current version is 21.0.0.

 

Update to Nextcloud 21.0.1 available. (channel: "stable")

Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-21.0.1.zip

Open changelog ↗

 

Steps that will be executed:

[✔] Check for expected files

[✔] Check for write permissions

[✔] Create backup

[✔] Downloading

[✔] Verify integrity

[✔] Extracting

[✔] Enable maintenance mode

[✔] Replace entry points

[✔] Delete old files

[ ] Move new files in place

[ ] Done

 

I am so glade I found this. I just got stuck in the WebUI trying to do an update.

Link to comment

After upgrading to 24.01 I'm getting this Integrity error ( see below )

 

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- openotp_auth
	- INVALID_HASH
		- vendor/autoload.php
		- vendor/composer/autoload_real.php
		- vendor/composer/autoload_static.php
		- vendor/composer/installed.php

Raw output
==========
Array
(
    [openotp_auth] => Array
        (
            [INVALID_HASH] => Array
                (
                    [vendor/autoload.php] => Array
                        (
                            [expected] => f5a41293b34793060b5e6060a297c706445208d97e5c90de46ed2c1e1df6c424e2907bf5207eb530c71ddf00478b812efd219e155cf5fcdc38e6d65ea428637a
                            [current] => 660a73bf37427c5545c93edd8f8f46c25adbbf4c8584a2b5655ea0ae149ce09a67d9e831ccbe7ac2ece39386e8aa44ce4ee12de30f8e924523278b6b8d883d4d
                        )

                    [vendor/composer/autoload_real.php] => Array
                        (
                            [expected] => 6a47d948441204a61bc1672c1f1b3182e0754a780273f477bae7e08115a0ad5039e111c373a27c3676d5734f5bb0da0fac710f33008ea01d38face8fd6d567d9
                            [current] => c2ec4555396b06b813b920c1ae756344265af2e2c81209c1ef92d9fd5c30f07d87736e8fb5c486b6a18654a1e0801eafce2572a7c7d0238a38665f0145913e9d
                        )

                    [vendor/composer/autoload_static.php] => Array
                        (
                            [expected] => ff928dc7f4a797a8cb4b546815ec34594b0a3609265b5c40e52aae40ab364c3a55a7872bcd1dac8e05eab6c041fa354a658dbe76ea4379d333c6cdfc655fea28
                            [current] => dd57695a595bd4f142fc8944d96aba5c5aa92169421c287c7e5b588b9c2f81b8ed92e0b77c056f6b6f08a5d35f2301e703e1e8f8514c363db02dd2716b3d5306
                        )

                    [vendor/composer/installed.php] => Array
                        (
                            [expected] => fad34430e38eca6338a4b6d45da117c5c43b5f8926066b6589d5fa6825bfaaa56855b384b43a9a3056280d647c4f2332c3f3618c48ed515750e1ad14b41bdee6
                            [current] => 352f51f9e3c25a8497e2bd0b936dbfea4823355eb298ab857b87ec98fae2db69b0460048fe341e620e44c07437aa3df4b40d5961e216d13c353aea0c92118079

 

Anyone have any ideas on how I can square this away? I checked the documentation but all it posted ws about /index.php and /version.php. I'm not sure how to fix the above ones I have.

 

Thanks in advance.

Link to comment
On 5/5/2022 at 2:39 PM, Zeze21 said:

Hi Guys,

i tried updating my Nextcloud via the integrated Updater, but unfortunately I ran into several problems I was not able to solve myself. I have checked this thread, several other sources (like the Nextcloud forums) and unfortunately I get stuck at every solution I was able to find. But first things first, here's what happened:

1.) I started the web based updater: I get until step 3 then I get the following Error:

<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

On clicking Retry Update I get:

Step 3 is currently in process. Please reload this page later.

If i delete the .step file I get back to the first problem.

2.) So I tried: 

docker exec -it nextcloud sudo -u abc php /config/www/nextcloud/updater/updater.phar

I get an error at Point 6

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[ ] Extracting ...PHP Warning:  require(/config/www/nextcloud/updater/../version.php): failed to open stream: No such file or directory in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 658
PHP Fatal error:  require(): Failed opening required '/config/www/nextcloud/updater/../version.php' (include_path='.:/usr/share/php7') in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 658

I tried copying the version.php into that folder but that did not work either

3.) The occ command does not work at all at least I can't get it to work

 

SOLUTION (i found while typing this - i am leaving everything so others with the same error can find it easier)

I copied the missing file (version.php) from the nextcloud/update_somerandomstring/downloads/nextcloud/ to the  appdata/nextcloud/www/nextcloud/ folder and also the shipped.json to the /core/ subfolder. Then 

docker exec -it nextcloud sudo -u abc php /config/www/nextcloud/updater/updater.phar

works just fine...

 

Hey I am unable to figure out where shipped.json should be moved to. I found it in the "nextcloud/update_somerandomstring/downloads/nextcloud/core" folder but dont know where it needs to be copied to. Appreciate any help.

 

edit: i figured it out. you make a new folder called core and move the shipped.json file into it at appdata/nextcloud/www/nextcloud

Edited by hmoney007
Link to comment

I've just finished setting up nextcloud as per the latest tutorial from Spaceinvador One, and I have everything working, except that my router does not support NAT loopback. This means I cannot access nextcloud via the domain name I set up from within my local network, but can still use the local ip address along with port 444. This obviously creates problems with devices that move in and out of my local network as I cannot have both addresses setup on them (as far as I know).

 

Does anyone here know of a workaround for no NAT loopback?  (Other than buying a new router as this isn't an option right now)

 

From my research on it people have been able to get around this issue by running a local DNS which resolves the domain name used for external access into a local IP address, so the router never has to deal with it. I installed pihole to see if I could do this, but DNS doesn't resolve an IP address with a port number, just an IP. So this would only get me as far as having my domain name point to my server IP, but not to the nextcloud docker on port 444. I saw one or two people on other forums mention SRV records as a way to include ports, but information on that starts getting very technical and quickly goes over my head.

 

Any help/suggestions would be great!

 

 

Link to comment

Tried updating to 24.0.1 using docker exec -it nextcloud updater.phar in a terminal.

 

All seemed to run ok and then I get the following error about an unhandled exception when the occ upgrade is executed

 

Update of code successful.

Should the "occ upgrade" command be executed? [Y/n] 
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Repair step: Repair MySQL collation
Repair info: All tables already have the correct collation -> nothing to do
Repair step: Repair SQLite autoincrement
Repair step: Copy data from accounts table when migrating from ownCloud
Repair step: Drop account terms table when migrating from ownCloud
Updating database schema
Updated database
An unhandled exception has been thrown:
TypeError: fwrite() expects parameter 1 to be resource, bool given in /config/www/nextcloud/lib/private/Security/CertificateManager.php:161
Stack trace:
#0 /config/www/nextcloud/lib/private/Security/CertificateManager.php(161): fwrite()
#1 /config/www/nextcloud/lib/private/Security/CertificateManager.php(247): OC\Security\CertificateManager->createCertificateBundle()
#2 /config/www/nextcloud/lib/private/Http/Client/Client.php(127): OC\Security\CertificateManager->getAbsoluteBundlePath()
#3 /config/www/nextcloud/lib/private/Http/Client/Client.php(74): OC\Http\Client\Client->getCertBundle()
#4 /config/www/nextcloud/lib/private/Http/Client/Client.php(218): OC\Http\Client\Client->buildRequestOptions()
#5 /config/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(120): OC\Http\Client\Client->get()
#6 /config/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php(87): OC\App\AppStore\Fetcher\Fetcher->fetch()
#7 /config/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(192): OC\App\AppStore\Fetcher\AppFetcher->fetch()
#8 /config/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php(188): OC\App\AppStore\Fetcher\Fetcher->get()
#9 /config/www/nextcloud/lib/private/Installer.php(422): OC\App\AppStore\Fetcher\AppFetcher->get()
#10 /config/www/nextcloud/lib/private/Updater.php(413): OC\Installer->isUpdateAvailable()
#11 /config/www/nextcloud/lib/private/Updater.php(274): OC\Updater->upgradeAppStoreApps()
#12 /config/www/nextcloud/lib/private/Updater.php(133): OC\Updater->doUpgrade()
#13 /config/www/nextcloud/core/Command/Upgrade.php(235): OC\Updater->upgrade()
#14 /config/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
#15 /config/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#16 /config/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#17 /config/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#18 /config/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#19 /config/www/nextcloud/console.php(99): OC\Console\Application->run()
#20 /config/www/nextcloud/occ(11): require_once('/config/www/nex...')
#21 {main}
Keep maintenance mode active? [y/N] 
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Maintenance mode disabled

Maintenance mode is disabled

 

Then when trying to log into the web UI I get:

Quote

 

Nextcloud will be updated to version 24.0.1

Please make sure that the database, the config folder and the data folder have been backed up before proceeding.

 

 

Where do I even begin?

 

EDIT:

Tried the OCC Upgrade command and have the same error

Also tried sudo -u abc php occ maintenance:repair and running upgrade again but still getting the same error

 

 

Edited by Yak
Updates to actions taken
Link to comment

@Yak What happens if you just run the command again? I have found that in most cases, it should just resume from where it left off.

 

For the web interface message, is there not a button to continue or accept?

 

Just having a look at that error part, you may want to make sure php is up to date, just run `php occ updater.phar` in terminal and see if php is up to date, then give the update another try. I find when I get issues to try running the update again as sometimes a spotty network can cause issues.

Link to comment
On 8/8/2020 at 12:16 PM, Serenity_Duck said:

Hi,

 

did someone found a solution for this Error?

Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		36 minutes ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		13 hours ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		a day ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		2 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		2 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		3 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		3 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		4 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		4 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		5 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		5 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		6 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		6 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		7 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		7 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158		8 days ago
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 4096 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php#158

I have it multiple times a day, it's always exactly the same Error.

I already tried to fix it, but I can't figure it out.

 

Can someone help me out? Thank you

Did anyone find a solution to this? It doesn't seem that anyone has answered/fixed this...

 

I'm having the same issue:

Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 22855560 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T23:40:07+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 19880320 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T23:35:06+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 26600048 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T23:33:42+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 24337880 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T23:10:07+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 25542576 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T23:08:49+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 25456520 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T22:45:05+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 28203736 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T22:40:10+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 25581824 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T22:35:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 24426640 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T22:30:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 24615896 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T22:25:08+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 25445312 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T22:20:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 22121840 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T22:15:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 65536 bytes) at /config/www/nextcloud/apps/maps/lib/Service/PhotofilesService.php#380		2022-06-09T22:10:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 23537504 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T22:05:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 65536 bytes) at /config/www/nextcloud/apps/maps/lib/Service/PhotofilesService.php#380		2022-06-09T22:00:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 24188184 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:55:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 19824288 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:50:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 25270688 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:45:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 21466912 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:40:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 22498872 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:35:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) at /config/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php#92		2022-06-09T21:30:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 21053904 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:25:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20654040 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:20:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20363784 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:15:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 65536 bytes) at /config/www/nextcloud/apps/maps/lib/Service/PhotofilesService.php#380		2022-06-09T21:10:08+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 21279744 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:05:08+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 22897184 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T21:00:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 20482400 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T20:50:10+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 18536088 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T20:45:10+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 23697816 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T20:40:10+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 26471248 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T20:35:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 26551456 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T20:30:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 26054920 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T20:25:10+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 26136152 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T20:20:09+0200
Error	PHP	Allowed memory size of 536870912 bytes exhausted (tried to allocate 29632704 bytes) at /config/www/nextcloud/lib/private/Files/Storage/Local.php#291		2022-06-09T20:15:09+0200

 

I set up Nextcloud using Spaceinvader Ones new two-part videos:

 

 

 

I'm using the dockers cloudflare ddns, mariadb, swag, and obviously nextcloud.

 

/etc/php/php.ini setting "memory_limit = 2G" didn't help

/appdata/nextcloud/www/nextcloud/.htaccess setting this didn't help either:

# PHP 7.x
<IfModule mod_php7.c>
  php_value mbstring.func_overload 0
  php_value default_charset 'UTF-8'
  php_value output_buffering 0
  php_value memory_limit 2G
  php_value upload_max_filesize 16G
  php_value post_max_size 16G
  php_value max_input_time 3600
  php_value max_execution_time 3600
  <IfModule mod_env.c>
    SetEnv htaccessWorking true
  </IfModule>
</IfModule>

# PHP 8+
<IfModule mod_php.c>
  php_value mbstring.func_overload 0
  php_value default_charset 'UTF-8'
  php_value output_buffering 0
  php_value memory_limit 2G
  php_value upload_max_filesize 16G
  php_value post_max_size 16G
  php_value max_input_time 3600
  php_value max_execution_time 3600
  <IfModule mod_env.c>
    SetEnv htaccessWorking true
  </IfModule>
</IfModule>

 

This didn't help either:

/appdata/swag/nginx/proxy-confs/nextcloud.subdomain.conf "proxy_max_temp_file_size 2048m;"

 

I'm going out of ideas to fix this and can't find any other place to  check. Is there something in Cloudflare that I must set up differently?

Link to comment

Hello all,

I'm unable to get this image running. I can get to the setup page of Nextcloud but after entering the info I get a 504 error and then redirected to the setup page. I have to manually clear the AppData for nextcloud each time because if I keep trying it tells me the user already exists. The logs have this repeating message:

 

Exception: Not installed in /config/www/nextcloud/lib/base.php:282
Stack trace:
#0 /config/www/nextcloud/lib/base.php(663): OC::checkInstalled()
#1 /config/www/nextcloud/lib/base.php(1104): OC::init()
#2 /config/www/nextcloud/cron.php(43): require_once('/config/www/nex...')
#3 {main}

 

I've searched and haven't come up with any solutions. I did notice the download from Community Applications was quite slow but maybe the servers are just under load. Thanks!

Link to comment
On 4/17/2021 at 5:15 PM, gustomucho said:

After tinkering with this for a while, it seems the solution is much simpler than I thought.

For some reason, the only step required is to modify the config.php file.

No need to install ffmpeg or even to enable the app "Preview Generator" inside Nextcloud.

 

I'll leave what I did here if it can help anyone looking to generate thumbnails for video files :

1. Go to your config.php file located at /mnt/user/appdata/nextcloud/www/nextcloud/config/config.php

2. Just before the end of your config file, add the following lines (after the 'installed' => true,) :

  'installed' => true,
  'enable_previews' => true,
  'enabledPreviewProviders' =>
 array (
    0 => 'OC\\Preview\\TXT',
    1 => 'OC\\Preview\\Image',
    2 => 'OC\\Preview\\MP3',
    3 => 'OC\\Preview\\Movie',
    4 => 'OC\\Preview\\MP4',
 ),
);

You can also add other file types that you require (mkv, avi, etc.)

Thanks man! Awesome you put a working solution here! Was looking for an solution on github and other sites for hours, and was suffering for months!

  • Like 2
Link to comment

Need some help regarding MariaDB. So I've had my Nextcloud docker running smoothly for a couple years now. I've just realized that I do not have the credentials to the MariaDB root password or the database password saved. It's been a while since I set it all up, so I'm sure I'm fuzzy on the details.

 

1. Is my data in Nextcloud at risk?

2. is it possible to reset these passwords? Does resetting those passwords put my data at risk?

 

 

Thanks,

 

Chris

Link to comment
On 6/26/2022 at 6:32 PM, Ccheese4 said:

Need some help regarding MariaDB. So I've had my Nextcloud docker running smoothly for a couple years now. I've just realized that I do not have the credentials to the MariaDB root password or the database password saved. It's been a while since I set it all up, so I'm sure I'm fuzzy on the details.

 

1. Is my data in Nextcloud at risk?

2. is it possible to reset these passwords? Does resetting those passwords put my data at risk?

 

 

Thanks,

 

Chris

Did you ever find a solution for this?

Link to comment

Upgraded to Linuxserver latest image this morning; 24.0.2 from .1 I believe; seeing some 502's. Anyone else with issues? going to try to roll container back to 24.0.1...

 

EDIT/UPDATE: My Nextcloud itself is on 24.0.2; I try to keep up with it being updated and the container itself. Container update today I definitely do believe something is wrong with; I'll give it a few days and try again 🙂

Edited by blaine07
Link to comment
10 hours ago, Flemming said:

Did you ever find a solution for this?

Not yet. I’ve found a couple other sources stating how to reset the database password, but I’m still not sure if that puts my existing data at risk. I’m not 100% sure what the relationship between Nextcloud and MariaDB is, just that everyone says to use MariaDB to make Nextcloud run better. 

Link to comment

I'm having an issue. I have followed Space Invader's video up until the installation of NextCloud via the login page. I have ensured the DB password is correct for user: 'nextcloud'. However, I am receiving the following error: "Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'***.**.*.*' (using password: YES)". I suspect possibly the settings for the created nextcloud share might not be correct. What are the correct security settings for this share? I have set the security to Public, have tried Export/Yes, Export/Yes (hidden), Export/No options. I'm unsure how to proceed.

 

There is nothing in the logs accessed via the docker page for both mariadb and nextcloud that indicate any errors.  From there, everything looks fine.

Edited by diehardbattery
Link to comment

I was playing with Authelia the other day and the guide(Ibracorp) had me define a host path for Redis. Made me wonder-- I have Redis setup in Nextcloud. The Redis container I am using with Nextcloud does NOT have a host/storage path defined. Should I have a storage path defined for Redis that is being used with Nextcloud?

Link to comment

Hi everyone,

 

I'm looking for help, and I hope this is the right thread.

 

I've got NextCloud installed on Unraid, being proxied via Swag, as per Spaceinvader's videos.  I also have the "external storage" app installed.

 

When I go into files and try to share a file or folder via the "share link" command, it works perfectly if the folder/file I'm trying to share resides in the NextCloud Data directory, however if I try to share a folder from an SMB share connected via "external storage" it displays a page (when trying to access via the link created under "share link") that appears to be trying to load the directory contents.  It spins and spins forever.  If I go to the top right side and select "download all files" I do indeed download the contents of the directory.

 

Only files and folder shared from the SMB share connected via the "external storage" app have this issue.

 

Permissions in the "share link" function are set to read only.

 

So what's preventing NextCloud from listing directory contents when I use the "share link" function for a folder residing on an SMB share? 

 

EDIT:

Found the solution.  In the settings for external storage I missed that under the 3 dots by "available for" is a checkbox called "enable sharing".  Checking this resolved my issue.

 

Edited by calvados
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.