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

Internal Server Error with MediaDC #246

Open
kanwarplaha opened this issue Jul 16, 2024 · 8 comments
Open

Internal Server Error with MediaDC #246

kanwarplaha opened this issue Jul 16, 2024 · 8 comments

Comments

@kanwarplaha
Copy link

I tried to install MediaDC manually when automated install via app store fails to work. I still see "Internal Server Error".

$ php -f /var/www/html/occ app:enable mediadc
mediadc 0.3.9 enabled

I am running NextCloud AIO v29.0.3. Cloud-API was installed and enabled before running the above.

@andrey18106
Copy link
Member

Hi! @kanwarplaha is there any log error messages after attempt to enable the app?

@kanwarplaha
Copy link
Author

Hello @andrey18106 thanks for quick reply. Since I'm running nextcloud aio (all docker containers), which one should I check for logs? is it nextcloud, apache or another one?

@andrey18106
Copy link
Member

The error should be in nextcloud log

@kanwarplaha
Copy link
Author

No, there is no error in nextcloud log:

[16-Jul-2024 03:44:01] NOTICE: fpm is running, pid 409
[16-Jul-2024 03:44:01] NOTICE: ready to handle connections
Error: Not a valid JPG - /tmp/0de1366b887e062898f274753d03fb2b.jpg
Error: Not a valid JPG - /tmp/755264b439bc3b10144e840caf9aa992.jpg
Error: Not a valid JPG - /tmp/5289e2f86206cb024af4e1b34b67acec.jpg
Error: Not a valid JPG - /tmp/587ff1abed099c2065a36d18a71c7dbb.jpg




^C

The time right now is 6:51 PM which would be 8:51 AM UTC (as I am not sure what timezone the logs are written in)

@andrey18106
Copy link
Member

Can't confirm locally with AIO and NC 29.0.3. Could you have a look at logs, there should be logreader app installed and corresponding section in admin settings (Logging).

@kanwarplaha
Copy link
Author

Thanks @andrey18106 here are the two errors I get in the Log Reader once I enable MediaDC:

Error	no app in context	
Exception
Repair step 'OCA\MediaDC\Migration\AppDataInitializationStep' can't be instantiated: Could not resolve OCA\Cloud_Py_API\Service\UtilsService! Class "OCA\Cloud_Py_API\Service\UtilsService" does not exist
Exception thrown: Exception
---
Error	no app in context	
Exception
Repair step 'OCA\MediaDC\Migration\AppUpdateStep' can't be instantiated: Could not resolve OCA\Cloud_Py_API\Service\UtilsService! Class "OCA\Cloud_Py_API\Service\UtilsService" does not exist
Exception thrown: Exception
---

@kanwarplaha
Copy link
Author

Okay, I resolved it by Installing Cloud Python API. I had thought it was installed but apparently not! MediaDC loads now but I get the following PHP error in the logs:

scandir(/mnt/ncdata/appdata_ocikk9f7zjl2/mediadc/binaries/mediadc_musllinux_amd64): Failed to open directory: No such file or directory at /var/www/html/custom_apps/cloud_py_api/lib/Service/UtilsService.php#494

and

scandir(): (errno 0): No error information at /var/www/html/custom_apps/cloud_py_api/lib/Service/UtilsService.php#494

Should I worry about these?

@andrey18106
Copy link
Member

Try to re-enable MediaDC after you've installed CloudPyAPI, the binaries download done during the enabling of the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants