Skip to content
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

training error. Not quite sure what im doing. #616

Closed
psyciknz opened this issue Mar 4, 2022 · 2 comments
Closed

training error. Not quite sure what im doing. #616

psyciknz opened this issue Mar 4, 2022 · 2 comments
Labels
0. to triage bug Something isn't working

Comments

@psyciknz
Copy link

psyciknz commented Mar 4, 2022

I was playing in nextcloud trying to get it to resolve client ips properly. But in doing so looked in the logs and saw some errors about suspicion logins.

so I started digging into suspicion login app.

I then jumped into my container to run the train command. But that generates the following error. I couldn’t find anything pertaining to the error.

Any pointers I can look up?
Using ipv4 strategy
An unhandled exception has been thrown:
Error: Minimum value must be less than or equal to the maximum value in /config/www/nextcloud/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php:74
Stack trace:
#0 /config/www/nextcloud/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php(74): random_int()
#1 /config/www/nextcloud/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php(114): OCA\SuspiciousLogin\Service\NegativeSampleGenerator->generateFromRealData()
#2 [internal function]: OCA\SuspiciousLogin\Service\NegativeSampleGenerator->OCA\SuspiciousLogin\Service{closure}()
#3 /config/www/nextcloud/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php(115): array_map()
#4 /config/www/nextcloud/apps/suspicious_login/lib/Service/DataLoader.php(123): OCA\SuspiciousLogin\Service\NegativeSampleGenerator->generateShuffledFromPositiveSamples()
#5 /config/www/nextcloud/apps/suspicious_login/lib/Command/Train.php(174): OCA\SuspiciousLogin\Service\DataLoader->generateRandomShuffledData()
#6 /config/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\SuspiciousLogin\Command\Train->execute()
#7 /config/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#8 /config/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#9 /config/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#10 /config/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()
#11 /config/www/nextcloud/console.php(100): OC\Console\Application->run()
#12 /config/www/nextcloud/occ(11): require_once('/config/www/nex...')

@ChristophWurst ChristophWurst added 0. to triage bug Something isn't working labels Mar 4, 2022
@eibex
Copy link

eibex commented Mar 27, 2022

#492

@joshtrichards
Copy link
Member

Duplicate of #745
Fixed in #810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. to triage bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants