-
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
File Sharing stack overflow, memory issue, crash, CSRF issue on 9.1.0 #25557
Comments
I have the same issue. deactivating files_sharing via occ solved the issue of not being able to log in, but now the file sharing feature is missing. |
hello, happens to me ... when I activate the ldap module, an answer to this problem? |
Please all tell us how did you update. From looking at the messages above it looks like the source code hasn't been properly replaced. |
Hello, Thanks for help |
@Revisor01 did you delete the old source code before extracting ? |
Yes. |
In an Otter Installation i tried to replace files. Same Error. |
@Revisor01 can you confirm that there are no errors on this page: http://example.com/index.php/settings/integrity/failed and on the admin page (setup check) ? |
I'm not at the pc right now. But there were no errors or integrity massages after disabling files_sharing. |
Could all the reporters answer the same questions ? The more details we have about the different setups, the closer we can get to a soluton. Thank you ! |
Does clearing the cookies make the CSRF failed message disappear ? So far I don't see any correlation between this and the files_sharing app. |
Deleted the cache, tried different browsers (safari, Firefox, chrome) users, computers, tablets. |
I updated from a working latest 9.0.x release to 9.1 via apt-get update & apt-get upgrade. After that I could not log in to owncloud anymore via web. CSRF check failed message. After disabling files_sharing via occ it works again. Cookies are always turned on. integrity check page shows: No errors have been found. |
And I guess there is no specific error in owncloud.log or error_log when you get the CSRF failed page ? Even with "loglevel" set to 0 ? |
nothing specific, just: |
Hmmm... the way how CSRF check works: whenever the login page is rendered, it will first generate the token and then store it into the current session. Also it will append the token into a hidden field "requesttoken". You can see it if you inspect the source code of the login page. Not sure yet where the files_sharing app would disturb this process. |
Hi, I had written the post above about ldap, after testing off the modules one by one, Ldap works ok, but the module "sharing files" does not work. I have 1500 users, 64GB of RAM, Xeon g4 |
Are you guys using the standard PHP session or did you deploy clustered environments ? In the latter case the session management might be slightly different. |
It should be standard, I do not cluster. |
In my particular case apache generates a "segmentation fault". if one of the modules is on and the other is active. |
@wmeneses @cipher2k can you guys please post a full report ? See https://raw.githubusercontent.com/owncloud/core/master/issue_template.md I'd like to see if there is anything similar in your reports. So far there isn't enough information to be able to either reproduce the issue or understand where it's coming from. |
Unfortunately I can not, my owncloud has many active users now, if I activate this module the server crashes, :(. "Sharing files" will be off because it is more important that users can be authenticated. |
@Revisor01 You might want to remove your smtp credentials. |
Steps to reproduce
Expected behaviourAll users should be able to log in Actual behaviourUser can not log in because CSRF check failed when file sharing app is enabled. Server load goes very high. Server configurationOperating system: Web server: Database: PHP version: ownCloud version: (see ownCloud admin page) Updated from an older ownCloud or fresh install: Where did you install ownCloud from: Signing status (ownCloud 9.0 and above):
|
Did some testing and found something that might help. I created a test user and then enabled the file share app. All old users got the same CSRF error but this new test user was able to log in and create file shares. Maybe things will start to work if I delete all user accounts and create them again and restore their data? I'm not willing to do that because most likely they will lose all calendar data and file share information. |
@gekoul are any files or folders shared from that local storage ? Or is there no sharing involved ? |
I think not. It is most definitely the same use case. The problem starts as soon as the user tries to share the file/folder. G. ----- Original Message ----- From: "Vincent Petry" notifications@github.com @gekoul are any files or folders shared from that local storage ? Or is there no sharing involved ? |
9.1.1 RC1 is out, you can use it for testing: You can help testing with the 9.1.1 RC1: http://download.owncloud.org/community/testing/owncloud-9.1.1RC1.tar.bz2 |
Hey there, we are having massive issues this week since we migrated our server. We updated from OC 8 to 9.0 and then 9.1. But since the update the share plugin is causing problems. We tried updating to the 9.1.1RC1 but it's still not working. Some users are able to login and some are not (we are not sure about why, but disabling the plugin works). I get an internal server error when I try to login. SQL Exception when trying to insert into oc_mounts. Any thoughts or more info I could provide to help?
|
@scroach mind raising this in a separate issue and ping me there ? Your symptoms look completely different. Or are you also having memory errors and server crashes ? |
I applied the patch and i still experiencing the problem with CSRF; however, as i explained before, this server has SSL enabled in Apache, so the CSRF problem only happens when accessing without SSL. SSL version of the site works flawlessly. Here is the log after a failed login attemp in the non-SSL version of the site It looks as if the arguments for login were not being passed correctly ----- log ----- ------- log in the SSL version of the site that actually works (LDAP scheme hand changed to someorg.es)------ [.... goes on with successful after-login activity ---- ] |
After upgrading to 9.1 users (from ldap) who shared files hang php-fpm process. It runs at 100% until timeout. Disabling file sharing resolves the problem. Tried with php-fpm 5.4.45 and 7.0.9. |
After Patching upgraded 9.1 we have an issue with sophos Antivirus, which scans new and changed files on our CentOS 7 Server: |
I'm getting this error and I just installed OwnCloud on my server yesterday and have not shared any links, thus there isn't any data in the oc_share table. I'm getting kind of nervous because I uploaded every single photo I have of my son on there to clear space on my computer. |
@wobemh Please make new tickets for any new issues observed on 9.1.1RC1 or patched instances. @derekbtw https://owncloud.org/faq/#backup |
@PVince81 I figured it out. The problem was my max file upload size was set to 1KB for some reason. So when I typed in my username and password, it was over 1kb. |
We have tested the latest patch mentioned above (https://patch-diff.githubusercontent.com/raw/owncloud/core/pull/25754.patch) and found it working.
However, we're using the .deb package from your repository and 9.1.1 is not yet available here, is that known?
|
You might find 9.1.1RC1 in the testing repositories |
Hello there, I had login problems with my apps since I updated to 9.1. I solved this problem by adding App passwords for said apps. BUT I get this error when I try to log in with my mobile Firefox. The normal desktop Firefox (both are same version and nearly same addons) doesn't have a login problem. It's not urgend because I use the mobile forefox login twice per year. |
Hi there, I encountered this problem after upgrading to 9.1 by repository (Ubuntu 16.04). After the info in this thread, I waited patiently to 9.1.1 being released via repository, yet still the bug remains. I'm unable to login via Web Interface with the "Zugriff verboten", "CSRF check failed" error. |
Hi, for what it might be worth I have a slightly different path to the same issue, and it might be useful to someone :-) This doesn't just happen with upgrades. It appears that only users in the group 'family' (in my case) are affected. (I have not done extensive testing as I am fairly novice in this and I don't have a test set-up, (and I don't want to break it ;-)) If some log files are of use to anyone, let me know which ones. Since I only have a small system and my oc_share table only had one line in it, I solved it using the above suggested workaround of disabling the File Share and removing that entry. I then rebooted, enabled File Sharing, shared the folder again, and I am up and running. |
By the way, 9.1.1 was released which contains this fix. So I encourage anyone coming here with the same issue to try 9.1.1 first. |
OC 9.1.1 new installation on ubuntu 16. Got error CSRF check failed |
Trying to find smaller steps to reproduce this locally. Goal is being able to test this automatically to avoid regressions in the future. Steps to recreate one level of recursion on v9.1.0:
At some point the
This is only a single-level recursion. Goal is to use a similar scenario to achieve infinite recursion with group shares. |
Steps for infinite recursion on v9.1.0:
How the recursion occurs:
|
Steps to reproduce
Expected behaviour
Login and works
Actual behaviour
shows CSRF check failed
Server configuration
Operating system:
Web server:
all-inkl.com
Database:
5.6.30
PHP version:
5.6.23
ownCloud version: (see ownCloud admin page)
9.1
Updated from an older ownCloud or fresh install:
updated from 9.0.3
Where did you install ownCloud from:
Install from tar.bz2
Signing status (ownCloud 9.0 and above):
List of activated apps:
Enabled:
Disabled:
The content of config/config.php:
$CONFIG = array (
'trusted_domains' =>
array (
0 => 'owncloud..de',
1 => 'owncloud..de',
2 => '.de',
3 => 'www.owncloud..de',
4 => 'www.owncloud..de',
5 => '.de',
),
'datadirectory' => '/www/htdocs///ownclouddata/data',
'tempdirectory' => '/www/htdocs///ownclouddata/tmp',
'overwrite.cli.url' => 'http://.de/cloud/owncloud',
'dbtype' => 'mysql',
'version' => '9.1.0.15',
'dbname' => 'd01cd1d3',
'dbhost' => '127.0.0.1',
'dbtableprefix' => 'oc_',
'filesystem_check_changes' => 0,
'dbuser' => 'd01cd1d3',
'dbpassword' => '',
'installed' => true,
'forcessl' => true,
'theme' => '',
'maintenance' => false,
'loglevel' => 3,
'mail_smtpmode' => 'smtp',
'appstore.experimental.enabled' => true,
'mail_from_address' => 'info',
'mail_domain' => 'owncloud.de',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => 'w01078ba.kasserver.com',
'mail_smtpport' => '465',
'mail_smtpauth' => 1,
'mail_smtpname' => '',
'mail_smtppassword' => '',
'trashbin_retention_obligation' => 'auto',
'enabledPreviewProviders' =>
array (
0 => 'OC\Preview\Image',
1 => 'OC\Preview\MP3',
2 => 'OC\Preview\TXT',
3 => 'OC\Preview\MarkDown',
4 => 'OC\Preview\Epub',
5 => 'OC\Preview\PDF',
6 => 'OC\Preview\OpenDocument',
7 => 'OC\Preview\StarOffice',
8 => 'OC\Preview\MSOfficeDoc',
9 => 'OC\Preview\MSOffice2003',
10 => 'OC\Preview\MSOffice2007',
),
'updater.secret' => '',
'mail_smtpsecure' => 'ssl',
);
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Client configuration
Browser:
Chrome
Operating system:
Mac OSX 10.11.6
Logs
Web server error log
{"reqId":"V5DHUlUNh8EAAC3bt5kAAAAk","remoteAddr":"217.93.9.75","app":"core","message":"starting upgrade from 9.0.1.3 to 9.1.0.15","level":0,"time":"2016-07-21T13:00:03+00:00","method":"GET","url":"/core/ajax/update.php?requesttoken=%3D%%3D","user":"--"}
{"reqId":"V5DHUlUNh8EAAC3bt5kAAAAk","remoteAddr":"217.93.9.75","app":"core","message":"Exception: {"Exception":"Exception","Message":"Die Anwendung konnte nicht installiert werden, weil Sie nicht mit dieser Version von ownCloud kompatibel ist.","Code":0,"Trace":"#grity(Array, '\/www\/htdocs\/w01...', '\/www\/htdocs\/w01...', false)\n#1 \/www\/htdocs\/w01078ba\/simon\/cloud\/owncloud\/lib\/private\/Installer.php(263): OC\Installer::updateApp(Array)\n#2 \/www\/htdocs\/w01078ba\/simon\/cloud\/owncloud\/lib\/private\/Updater.php(454): OC\Installer::updateAppByOCSId('164356')\n#3 \/www\/htdocs\/w01078ba\/simon\/cloud\/owncloud\/lib\/private\/Updater.php(254): OC\Updater->upgradeAppStoreApps(Array)\n#4 \/www\/htdocs\/w01078ba\/simon\/cloud\/owncloud\/lib\/private\/Updater.php(150): OC\Updater->doUpgrade('9.1.0.15', '9.0.1.3')\n#5 \/www\/htdocs\/w01078ba\/simon\/cloud\/owncloud\/core\/ajax\/update.php(193): OC\Updater->upgrade()\n#6 {main}","File":"\/www\/htdocs\/w01078ba\/simon\/cloud\/owncloud\/lib\/private\/Installer.php","Line":377}","level":3,"time":"2016-07-21T13:02:21+00:00","method":"GET","url":"/core/ajax/update.php?requesttoken=I3g2NToLJgUlehQpPikjBWMvOQMBV2wbOgQyOzwgN2U%3D%3AfSRxkQHLRIfSJLAsZFmNMb4BcfhZfNO5pfFUDm96pio%3D","user":"--"}
ownCloud log (data/owncloud.log)
Browser log
The text was updated successfully, but these errors were encountered: