Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nextcloud AIO - Increasing PHP Memory Limit

Featured Replies

Hello friends,

 

I am running Nextcloud AIO 29 on Unraid.

 

I'm seeing two types of repeating error messages in the log:

1. for PHP application: "Allowed memory size of 536870912 bytes exhausted (tried to allocate 40960 bytes) at /var/www/html/custom_apps/recognize/lib/Classifiers/Classifier.php#360"

 

2. for recognize application: "Failed to generate preview of 275459 with dimension 1024 with nextcloud preview manager: No provider successfully handled the preview generation"

 

Screenshot2024-10-21at14_59_17.thumb.png.55f32cb2b40ebf0ffbba0a7dded7aec5.png

 

After googling these errors, I understand I should try to increase Nexcloud AIO's PHP memory limit from 512MB to 1GB.

 

Can anyone please explain how I should do this?

 

Thank you 🙏

Solved by Mainfrezzer

  • Author
41 minutes ago, szaimen said:

Thank you for the tip, @szaimen 


I tried to add the line:

--env NEXTCLOUD_MEMORY_LIMIT=1GB

in the Extra Parameters section of the nextcloud-aio-mastercontainer docker container setup page, but once I saved this change the container wouldn't start, so I had to remove this line. 

 

Should I maybe add this line as a Variable instead?

What should I write for the Key?

And what should I write for the Value?

  • Community Expert
  • Solution
57 minutes ago, mjeshurun said:

Thank you for the tip, @szaimen 


I tried to add the line:

--env NEXTCLOUD_MEMORY_LIMIT=1GB

in the Extra Parameters section of the nextcloud-aio-mastercontainer docker container setup page, but once I saved this change the container wouldn't start, so I had to remove this line. 

 

Should I maybe add this line as a Variable instead?

What should I write for the Key?

And what should I write for the Value?

You did a little mistake which is mentioned on the page.

 

Quote

It must start with a number and end with M e.g. 1024M

So =1GB is wrong. =1024M should do the trick^^

  • Author
1 hour ago, Mainfrezzer said:

You did a little mistake which is mentioned on the page.

 

So =1GB is wrong. =1024M should do the trick^^

Many thanks 🙏 🙏
It worked :)

  • 4 weeks later...

I think the difference is that you provided GB instead G

ps: sorry for old post reply

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.