Netboot/SUS Server

itsops
New Contributor II

Does anybody else have issues with checkmarking updates in SUS? For one thing, when I "select all" and then hit apply, they all come back as unchecked when the page refreshes. For a second issue, I seem to only be able to checkmark 995 updates total. Any additional updates that are checked will not apply properly.

1 ACCEPTED SOLUTION

itsops
New Contributor II

I noticed this in the /etc/httpd/logs/ssl_error_log:

PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

So I changed /etc/php.ini and set max_input_vars = 10000

After that change and restarting httpd, I can checkmark all of the updates.

View solution in original post

11 REPLIES 11

mattware
Contributor

I've noticed that as well. Not a huge deal, I just leave one of the updates from 2005 unchecked.

itsops
New Contributor II

I noticed this in the /etc/httpd/logs/ssl_error_log:

PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

So I changed /etc/php.ini and set max_input_vars = 10000

After that change and restarting httpd, I can checkmark all of the updates.

mattware
Contributor

@itsops You should add this change to the netsus github.

itsops
New Contributor II

There was an issue opened on github that seemed to be related, and I posted the same solution response there. Is that what you meant?

leadtrombone
New Contributor

Are you guys using the OVA or installing your own NetSUS? Because I'm not seeing this files you are looking at.

itsops
New Contributor II

We are not running the OVA. We're running the NetSUS package on Redhat, and maybe that was why we had the issue in the first place.

If you are running the OVA and have this problem as well, you probably just need to find where php.ini is on the system and update it. Try this command:

find / -name php.ini

krusej23
New Contributor

@itsops I did the find command and it found two different php.ini files. I found the max_input_vars in /etc/php5/cli/php.ini and changed it from 1000 to 10000. Then I did the service apache2 restart command to restart httpd. It still does not apply my select all. Did I do everything correctly?

itsops
New Contributor II

@krusej23 The /etc/php5/apache2/php.ini file is the correct one. Remember to restart apache after updating it:

sudo service apache2 restart

krusej23
New Contributor

@itsops I am not finding a max_input_vars in the apache2 php file. There is a max_input_time that is set to 3600 but that is the only thing that is max_input.

I am running Ubuntu 14.04 if that makes a difference.

itsops
New Contributor II

@krusej23 Add these lines below the max_input_time line then:

; How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 10000

krusej23
New Contributor

@itsops That worked now. Thank you very much for the help!