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

PHP processes crashing when uploading files to Nextcloud server #1413

Open
kuznetsofmann opened this issue Mar 3, 2025 · 8 comments
Open
Labels
help wanted Extra attention is needed

Comments

@kuznetsofmann
Copy link

Describe the bug

When Memories app is enabled and you uploading files to Nextocloud server (no matter webDAV or mobile app), PHP processes crashes:

php-fpm.log

When Memories app is disabled and you uploading files to server, all works fine. I tried to get core dump to solve this problem, but without success. I compiled PHP with --DEBUG option, but in this case Nextcloud server didn't worked at all (may be I did something wrong).

Steps To Reproduce

  1. Install Nextcloud
  2. Install and enable Memories app
  3. Start uploading files to server
  4. Watch php-fpm.log

Platform

- OS: FreeBSD jail (Host version 13.3 and 14.1)
- Browser: -
- Memories Version: 7.5.2
- Nextcloud Version: 31.0.0
- PHP Version: 8.3.15

Screenshots

No response

Additional context

  • Any errors in the Nextcloud server logs? No
  • Nextcloud running on Apache 2.4.62 with php-fpm and PostgeSQL
@kuznetsofmann kuznetsofmann added the needs triage To be triaged label Mar 3, 2025
@pulsejet
Copy link
Owner

pulsejet commented Mar 3, 2025

Anything in nextcloud logs? This should never really happen, so might be a php bug

@kuznetsofmann
Copy link
Author

No, there is no errors in nextcloud logs. Very strange situation. I need to get core dump.

@kuznetsofmann
Copy link
Author

Only android app returns 'server in maintenace mode'

@pulsejet
Copy link
Owner

pulsejet commented Mar 4, 2025

The only thing memories does on upload is index the file. Does it also crash if you do occ memories:index?

Are you memory bound? OOM maybe?

@kuznetsofmann
Copy link
Author

kuznetsofmann commented Mar 4, 2025

No, when I run command occ memories:index, all works fine. I have 16G memory on my server. Memory used mostly by ZFS ARC. Swap is emty

@pulsejet pulsejet added help wanted Extra attention is needed and removed needs triage To be triaged labels Mar 4, 2025
@kuznetsofmann
Copy link
Author

kuznetsofmann commented Mar 5, 2025

When uploading files to server memories running script /lib/Service/Index.php?

@pulsejet
Copy link
Owner

pulsejet commented Mar 5, 2025

Yes it will index the file, but not "run the script" (gets called through nextcloud hooks)

@kuznetsofmann
Copy link
Author

kuznetsofmann commented Mar 8, 2025

Good morning! I traced system calls with truss yesterday and find out that php craches happen in various places of code with various signals (sigsegv, sigabrt, sigbus) each time. But only when memories is enabled. I don't understand what's happening. Maybe it is incompatible versions of php extensions or incorrect build. My php installed from packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants