-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
str_repeat(): Second argument has to be greater than or equal to 0 #31304
Comments
I googled around and the only hint i have found about this message together with symfony was in sebastianbergmann/phpunit#1976 but that was more related to test runs not happening here during the update. The fix there was done with: sebastianbergmann/environment@22aa49b ownCloud related issues: Seems there are a few closed issues discussing other problems but which contains the same message as well so this seems to be there since quite some time: #30120, #26297, #28763 Similar on central: https://central.owncloud.org/t/custom-theme-deleted-after-uprade-10-0-6-10-0-7/12113/9 https://central.owncloud.org/t/update-10-0-3-3-to-10-0-6-stuck/11734 https://central.owncloud.org/t/http-error-500-after-upgrade-to-owncloud-9-1/2259/3 |
Based on investigation its been found that the error related to |
@sharidas reproducible ? |
It is reproducible. |
I just noticed this also, ended up at Sebastian's PHP unit thread, which led me back here to ownCloud!
|
can we get a full stack ? maybe hack the symfony helper code, add an if statement there and throw an exception so we see the stack |
It is in
comment that line out, and the log messages go away, and of course the progress bar starts at 0% and suddenly jumps to 100% after all the |
Great, thanks. That should be enough to debug. |
I'm able to reproduce this on stable10 by simply increasing the fourth digit in version.php then running After debugging a bit I still don't understand what is going on. The DropOldTables job initializes the progress bar with the correct max value then advances only as many times as the max value. It could be a problem related to indentation of the messages. Maybe the progress bar code from Symfony isn't compatible with outputting timestamps ?
|
The simplest fix would be to remove the progress bar for this job. It seems that other jobs do not have a progress bar, or maybe they just don't have anything to repair so the bug isn't always visible. |
Deleted code is debugged code :) |
Steps to reproduce
Expected behaviour
No message about str_repeate() should be shown in the owncloud.log
Actual behaviour
Many messages about str_repeate() are shown in the owncloud.log (26 times). The same messages where showing up in previous versions as well so this is nothing 10.0.8 specific.
Server configuration
Operating system: Debian 9
Web server: Nginx
Database: MariaDB
PHP version: 7.0.27
ownCloud version: 10.0.8
Updated from an older ownCloud or fresh install: Updated from 10.0.7
Where did you install ownCloud from: Manual install via tar.bz2 file
Signing status (ownCloud 9.0 and above): No issues found
The content of config/config.php:
List of activated apps:
Are you using external storage, if yes which one: No
Are you using encryption: No
Are you using an external user-backend, if yes which one: No
Logs
ownCloud log (data/owncloud.log)
Repeated 26 times:
The text was updated successfully, but these errors were encountered: