Comments (26)
I am trying to give a full bug report here.
environment
- OS: Debian 10
- phpversion(): 7.3.19-1~deb10u1
- nginx vesion: 1.14.2-2+deb10u3
- mariadb version: 1:10.3.23-0+deb10u1
steps to reproduce
- download and extracted nextcloud 18.0.8 from https://nextcloud.com/changelog/#latest18
- installed into a clean database - settings left to default in web installer including apps
- started
occ log:watch
- logged in, downloaded and activated app suspicious_login in web-interface
- browsed to /apps/files/ - error page is shown "internal server error"
The following error has been loggend 5 times in a row:
Error index Exception: Argument 1 passed to 2020-09-01T11:13:07+00:00
"Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()"
must be an object, string given. at
lib/private/AppFramework/Http/Dispatcher.php line 109
0. .../App.php line 125
OC\AppFramework\Http\Dispatcher->dispatch(
OCA\Fil ... {},
"index"
)
1. .../RouteActionHandler.php line 47
OC\AppFramework\App::main(
"OCA\\Files\\Controller ... r",
"index",
OC\AppFramework\Depende ... {},
{_route:"files.view.index"}
)
2. <<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke(
{_route:"files.view.ind ... "}
)
3. lib/private/Route/Router.php line 299
call_user_func(
OC\AppFramework\Routing\RouteActio ... {},
{_route:"files.view.index"}
)
4. lib/base.php line 1013
OC\Route\Router->match("\/apps\/files\/")
5. index.php line 38
OC::handleRequest(
)
further information for sudo -u www-data php occ app:list
Enabled:
- accessibility: 1.4.0
- activity: 2.11.0
- bruteforcesettings: 2.0.1
- calendar: 2.0.4
- cloud_federation_api: 1.1.0
- comments: 1.8.0
- contacts: 3.3.0
- dav: 1.14.0
- documentserver_community: 0.1.7
- federatedfilesharing: 1.8.0
- federation: 1.8.0
- files: 1.13.1
- files_pdfviewer: 1.7.0
- files_rightclick: 0.15.2
- files_sharing: 1.10.1
- files_trashbin: 1.8.0
- files_versions: 1.11.0
- files_videoplayer: 1.7.0
- firstrunwizard: 2.7.0
- logreader: 2.3.0
- lookup_server_connector: 1.6.0
- mail: 1.4.1
- nextcloud_announcements: 1.7.0
- notifications: 2.6.0
- oauth2: 1.6.0
- onlyoffice: 4.3.0
- password_policy: 1.8.0
- photos: 1.0.0
- privacy: 1.2.0
- provisioning_api: 1.8.0
- recommendations: 0.6.0
- serverinfo: 1.8.0
- settings: 1.0.0
- sharebymail: 1.8.0
- support: 1.1.1
- survey_client: 1.6.0
- suspicious_login: 3.2.0
- systemtags: 1.8.0
- text: 2.0.0
- theming: 1.9.0
- twofactor_backupcodes: 1.7.0
- updatenotification: 1.8.0
- viewer: 1.2.0
- workflowengine: 2.0.0
Disabled: - admin_audit
- encryption
- files_external
- spreed
- user_ldap
After occ app:disable suspicious_login
its working again.
from suspicious_login.
v3.2.1 released: https://github.com/nextcloud/suspicious_login/releases/tag/v3.2.1
You can update via the apps settings of your Nextcloud, though due to caching of the latest releases you might not see the update immediately there.
from suspicious_login.
Disabled everything that I can disable - still not working, same issue. Note that I checked the log and nextcloud after each disabled app.
I can't play around too much, as this system is in production and classes start today in france.
`
var/www/html # ./occ app:list
Enabled:
- cloud_federation_api: 1.1.0
- dav: 1.14.0
- federatedfilesharing: 1.8.0
- federation: 1.8.0
- files: 1.13.1
- lookup_server_connector: 1.6.0
- oauth2: 1.6.0
- provisioning_api: 1.8.0
- settings: 1.0.0
- suspicious_login: 3.2.0
- twofactor_backupcodes: 1.7.0
- user_external: 0.10.0
- viewer: 1.2.0
- workflowengine: 2.0.0
Disabled: - accessibility
- activity
- admin_audit
- calendar
- circles
- comments
- contacts
- encryption
- files_external
- files_pdfviewer
- files_rightclick
- files_sharing
- files_trashbin
- files_versions
- files_videoplayer
- firstrunwizard
- geoblocker
- logreader
- nextcloud_announcements
- notes
- notifications
- password_policy
- photos
- privacy
- quota_warning
- recommendations
- serverinfo
- sharebymail
- socialsharing_email
- spreed
- support
- survey_client
- systemtags
- tasks
- text
- theming
- updatenotification
- user_ldap
`
from suspicious_login.
I also had a conflict with the following error-message:
> sudo -u www-data php occ log:tail
PHP Fatal error: Declaration of Symfony\Component\Console\Style\OutputStyle::write($messages, bool $newline = false, int $type = self::OUTPUT_NORMAL) must be compatible with Symfony\Component\Console\Output\OutputInterface::write($messages, $newline = false, $options = 0) in /var/www/nextcloud/apps/suspicious_login/vendor/symfony/console/Style/OutputStyle.php on line 52
I disabled the app via occ for now.
My enabled apps:
- accessibility: 1.4.0
- activity: 2.11.0
- admin_audit: 1.8.0
- analytics: 2.4.1
- audioplayer: 2.11.2
- audioplayer_editor: 0.2.2
- audioplayer_sonos: 1.1.1
- calendar: 2.0.4
- camerarawpreviews: 0.7.8
- checksum: 0.4.5
- cloud_federation_api: 1.1.0
- comments: 1.8.0
- contacts: 3.3.0
- dav: 1.14.0
- deck: 1.0.5
- extract: 1.2.4
- federatedfilesharing: 1.8.0
- federation: 1.8.0
- files: 1.13.1
- files_accesscontrol: 1.8.1
- files_automatedtagging: 1.8.3
- files_external: 1.9.0
- files_markdown: 2.3.0
- files_pdfviewer: 1.7.0
- files_rightclick: 0.15.2
- files_sharing: 1.10.1
- files_trashbin: 1.8.0
- files_versions: 1.11.0
- files_videoplayer: 1.7.0
- firstrunwizard: 2.7.0
- groupfolders: 6.0.7
- logreader: 2.3.0
- lookup_server_connector: 1.6.0
- mail: 1.4.1
- maps: 0.1.6
- news: 14.2.1
- nextcloud_announcements: 1.7.0
- notifications: 2.6.0
- oauth2: 1.6.0
- ocr: 6.0.55
- onlyoffice: 4.3.0
- password_policy: 1.8.0
- photos: 1.0.0
- privacy: 1.2.0
- provisioning_api: 1.8.0
- recommendations: 0.6.0
- serverinfo: 1.8.0
- settings: 1.0.0
- sharebymail: 1.8.0
- spreed: 8.0.10
- support: 1.1.1
- survey_client: 1.6.0
- systemtags: 1.8.0
- text: 2.0.0
- theming: 1.9.0
- twofactor_backupcodes: 1.7.0
- twofactor_totp: 5.0.0
- twofactor_u2f: 6.0.0
- updatenotification: 1.8.0
- user_ldap: 1.8.0
- user_saml: 3.1.2
- viewer: 1.2.0
- workflow_pdf_converter: 1.3.2
- workflow_script: 1.3.2
- workflowengine: 2.0.0
from suspicious_login.
You can't. Download the tarball, replace everything in the apps dir. Run the upgrade procedure. Done.
from suspicious_login.
Hmmmm. Smells like a conflict with another app. Could you disable all optional apps, then try again? If that works re-enable the now disabled apps step by step and always retry occ
, as soon as it breaks we know the conflicting app.
from suspicious_login.
I had the same issue and just solved it by disabling Suspicious Login via occ. I didn't test to see if it was a specific app conflict, but I know that most optional apps were already disabled at that point.
from suspicious_login.
I also have this issue. Version 3.2 seems to completely break Nextcloud 18. Shown in the log: "Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an object, string given."
Reverting to version 3.1 fixes it.
from suspicious_login.
Here to report that I also had this issue after the latest update to suspicous_login. @mhbates suggestion to disable it via occ worked.
from suspicious_login.
+1
back online after disabled
from suspicious_login.
Okay, so here's the deal: if nobody helps locate the conflict, we won't be able to fix the bug.
from suspicious_login.
Okay thanks. In that case the conflict might be between Nextcloud and the app, which is … a bummer and really hard to fix. Let me see if I can delete the release, drop Nextcloud 18 support, and re-release.
Please downgrade to the previous version. Thanks.
from suspicious_login.
Can we downgrade on the CLI? I don't know how to actually do that.
from suspicious_login.
Interesting though, a pure installation of Nextcloud 17/18/19/20 with this app installed does not cause any errors. So I think it might be caused by one other app.
from suspicious_login.
@Coffeeri @grimSBZ would you have a few mins to try disable all of your many apps, see if the problem remains and then re-endable them one after the other until your installation breaks?
from suspicious_login.
@Coffeeri @grimSBZ would you have a few mins to try disable all of your many apps, see if the problem remains and then re-endable them one after the other until your installation breaks?
As mentioned these are all default apps (and recommended). But just for fun i did disabled all enabled apps - at least those who can be disabled. I dont get any error page.
- enable suspicious_login and the nextcloud shows an internal server error
- enable another app via
occ
- lets saysupport
- i get a stack trace
$ sudo -u www-data php occ app:enable support
An unhandled exception has been thrown:
TypeError: Argument 1 passed to "Symfony\Component\EventDispatcher\EventDispatcherInterface::dispatch()" must be an object, string given. in /var/www/testcloud2/3rdparty/symfony/event-dispatcher/EventDispatcher.php:63
Stack trace:
#0 /var/www/testcloud2/lib/private/EventDispatcher/SymfonyAdapter.php(70): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('\\OC\\Repair::ste...', Object(Symfony\Component\EventDispatcher\GenericEvent))
#1 /var/www/testcloud2/lib/private/Repair.php(204): OC\EventDispatcher\SymfonyAdapter->dispatch('\\OC\\Repair::ste...', Object(Symfony\Component\EventDispatcher\GenericEvent))
#2 /var/www/testcloud2/lib/private/Repair.php(103): OC\Repair->emit('\\OC\\Repair', 'step', Array)
#3 /var/www/testcloud2/lib/private/legacy/app.php(981): OC\Repair->run()
#4 /var/www/testcloud2/lib/private/Installer.php(160): OC_App::executeRepairSteps('support', Array)
#5 /var/www/testcloud2/core/Command/App/Enable.php(117): OC\Installer->installApp('support', false)
#6 /var/www/testcloud2/core/Command/App/Enable.php(91): OC\Core\Command\App\Enable->enableApp('support', Array, false, Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/testcloud2/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\App\Enable->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/testcloud2/3rdparty/symfony/console/Application.php(915): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/testcloud2/3rdparty/symfony/console/Application.php(272): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\App\Enable), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/testcloud2/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/testcloud2/lib/private/Console/Application.php(214): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/testcloud2/console.php(99): OC\Console\Application->run()
#13 /var/www/testcloud2/occ(11): require_once('/var/www/testcl...')
from suspicious_login.
Got it. So it might the difference between default apps (the ones that are packaged) and shipped apps (the ones that live in https://github.com/nextcloud/server). Thanks for testing!
from suspicious_login.
Landed here because update of this app from 3.1.0 to 3.2.0 broke my nextcloud 18.0.8 installation raising the mentioned error in nextcloud log. Manually downgrading to 3.1.0 through download of tarball fixed it. So there's something obvious: Changes from 3.1.0 to 3.2.0 throws the Symphony execption and therefore breaks nextcloud 18.0.8 in total.
from suspicious_login.
So there's something obvious
How is it obvious?
from suspicious_login.
So there's something obvious
How is it obvious?
When one has a working system (for years) and simply upgrades one (this) app and it does not work, then downgrades to previous version and it works again, this is what I would call "obvious". Don't agree?
from suspicious_login.
Well, if you only check the size of the archives 3.1 vs 3.2 - there is a substantial difference.
smurphy@pandora:~/Downloads$ ls -lh suspicious_login-3.* -rw-rw-r-- 1 smurphy smurphy 1,2M sept. 2 09:51 suspicious_login-3.1.tar.gz -rw-rw-r-- 1 smurphy smurphy 1,8M sept. 2 09:51 suspicious_login-3.2.tar.gz
600K compressed in difference? And - 3.1 did not have the vendor/symfony inside.
Question: Which PHP Version are you folks running?
Having PHP 7.3.21 (as provided by the official nextcloud docker image).
from suspicious_login.
And - 3.1 did not have the vendor/symfony inside.
Bingo! There is a new dev dependency that was accidentally added as production dependency. Let me fix that …
from suspicious_login.
See #319. It also contains a test build without this dependency.
from suspicious_login.
See #319. It also contains a test build without this dependency.
This one works fine with me. Also show's as 3.2.0 so is confirmed to be proper installed :)
from suspicious_login.
Question: Which PHP Version are you folks running?
Having PHP 7.3.21 (as provided by the official nextcloud docker image).
PHP 7.4.9 working as a charm
from suspicious_login.
@ChristophWurst Let us know when you released the last one in the official app-store :)
Thx :)
from suspicious_login.
Related Issues (20)
- Add button to email notifications to get more info about the suspicious ip HOT 1
- A new login into your account was detected - really a login, or just a try? HOT 1
- Drop support for PHP 7.4 HOT 2
- PHP unserialize(): Error at offset HOT 5
- 0 rows on login_address table HOT 1
- Version on app store and compatible versions HOT 1
- Investigate feasibility of use in 32-bit environments HOT 2
- Email Notification: New login location detected HOT 2
- Huge database table due to login attempts/reconnects from Thunderbird client CalDAV HOT 1
- Datasets must have the same number of columns HOT 27
- All logins reported as suspicious - underlying DataLoader.php bug HOT 1
- Can not start training HOT 1
- Suspicious Login notification whenever logged in (thousands of warnings) HOT 2
- ValueError during IPv4 background training HOT 1
- Notification was not parsed by any notifier HOT 10
- Restriction to GEO location
- Transaction rolled back stacktrace during cron job HOT 1
- [security] polyfill.io included via outdated RubixML fork HOT 3
- Rephrase info, so that user knows that IP address is sent to 3rd party website HOT 5
- Whitelist server IP needed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suspicious_login.