-
Notifications
You must be signed in to change notification settings - Fork 25
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
ValueError: random_int(): Argument #1 ($min) must be less than or equal to argument #2 ($max) #745
Comments
Issues back on NC 26.0.2 |
Hey @ChristophWurst sorry to bug you. Do you have any quick idea what this can be ? root@cloud:~# sudo -u www-data php /var/www/nextcloud/occ suspiciouslogin:optimize Epoch 0: epochs= 330 layers= 2 shuffledRate=0.005 randomRate=2.000, learningRate=0.0070 |
fallback to empty array if the array of IP addresses contains nothing when using "random_int($min, $max)" .
fallback to empty array if the array of IP addresses contains nothing when using "random_int($min, $max)" . Signed-off-by: furplag <furplag@furplag.jp>
Still an issue NC 27.0.1 |
Also, an issue in NC 27.0.2 with Suspicious Login App version 5.0.0 Here are my logs: [suspicious_login] Error: ValueError: random_int(): Argument #1 ($min) must be less than or equal to argument #2 ($max) at <>
at 2023-09-04T06:20:20+00:00 |
I hade the same Problem on 27.1.2 [suspicious_login] Fehler: ValueError: random_int(): Argument #1 ($min) must be less than or equal to argument #2 ($max) at <>
at 2023-10-19T09:57:08+00:00 |
Still in 27.1.3... /var/www/html/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php - line 74: random_int("*** sensiti ... *", -1) /var/www/html/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php - line 114: OCA\SuspiciousLogin\Service\NegativeSampleGenerator->generateFromRealData([ "*** sensi ... "], []) <> OCA\SuspiciousLogin\Service\NegativeSampleGenerator->OCA\SuspiciousLogin\Service{closure}("*** sensiti ... *") /var/www/html/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php - line 112: array_map([ "Closure"], [ "*** sensi ... "]) /var/www/html/apps/suspicious_login/lib/Service/DataLoader.php - line 123: OCA\SuspiciousLogin\Service\NegativeSampleGenerator->generateShuffledFromPositiveSamples([ "Rubix\ML ... "], 1) /var/www/html/apps/suspicious_login/lib/Service/TrainService.php - line 71: OCA\SuspiciousLogin\Service\DataLoader->generateRandomShuffledData([ "OCA\Susp ... "], [ "OCA\Susp ... "], [ "OCA\Susp ... "]) /var/www/html/apps/suspicious_login/lib/BackgroundJob/TrainJobIpV4.php - line 69: OCA\SuspiciousLogin\Service\TrainService->train([ "OCA\Susp ... "], [ "OCA\Susp ... "], [ "OCA\Susp ... "]) /var/www/html/lib/public/BackgroundJob/Job.php - line 81: OCA\SuspiciousLogin\BackgroundJob\TrainJobIpV4->run(null) /var/www/html/lib/public/BackgroundJob/TimedJob.php - line 103: OCP\BackgroundJob\Job->start([ "OC\BackgroundJob\JobList"]) /var/www/html/lib/public/BackgroundJob/TimedJob.php - line 93: OCP\BackgroundJob\TimedJob->start([ "OC\BackgroundJob\JobList"]) /var/www/html/cron.php - line 152: OCP\BackgroundJob\TimedJob->execute([ "OC\BackgroundJob\JobList"], [ "OC\Log"])
This project is dead, right? So many dependencies to fix.... :( |
I wonder if the maintainer @ChristophWurst care about this issue, has it remained in that state for so long now... For now, I'll just disable that plugin, I'm annoyed to get email notification while always connecting from the same location (no IP changes). |
Hi @Athar42 there's a pull request regarding this. Looks like it under review. |
I tried to apply this fix manually already, and... this pop another issue (saying the dataset isn't correct, didn't write down the error). Also, on at least one of my 3 instances, one didn't report any entries in the DB, so maybe the tables are wrong too, but as we can't remove the app (only disable it), hard to "force reinstall it" without breaking anything. So for now, as this issue remain, the plugin will also stay in a disabled state. |
Hi This error message appeared while i manually updated my nextcloud (aio/docker) to 28.0.1rc1. It is still there now that I'm back to 28.0.1 through automatic update. This error comes every day at the same hour. here is the log :
I never had any errors before this manual update. please help |
fallback to empty array if the array of IP addresses contains nothing when using "random_int($min, $max)" . Signed-off-by: furplag <furplag@furplag.jp>
NC 25.02
App 4.3.0
The text was updated successfully, but these errors were encountered: