sergix44 / XBackBone

A lightweight file manager with full ShareX support and more
https://xbackbone.app
GNU Affero General Public License v3.0
993 stars 81 forks source link

Videos won't play, raw page sending error 500 #472

Closed Spencer-0003 closed 2 years ago

Spencer-0003 commented 2 years ago

System Info

Describe the bug The file can be downloaded but will not play on the website.

To Reproduce Steps to reproduce the behavior:

  1. Upload a video
  2. Try play the video
  3. Gets stuck loading
  4. Error 500 appears in console

Expected behavior Video should play.

Screenshots 2022-06-18_17-09

Logs PHP error logs are empty Nginx error logs

2022/06/18 06:10:23 [error] 381#381: *114 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.17.0.1, server: _, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomainhere"
2022/06/18 06:10:24 [error] 380#380: *132 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.17.0.1, server: _, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomainhere"
sergix44 commented 2 years ago

Try to put debug => true and try again, you should be able to get an error log

Spencer-0003 commented 2 years ago

I've added debug to my config

<?php
return array (
  'base_url' => 'https://cdn.mydomain',
  'debug' => true,
  'db' => 
  array (
    'connection' => 'sqlite',
    'dsn' => '/config/www/xbackbone/resources/database/xbackbone.db',
    'username' => NULL,
    'password' => NULL,
  ),
  'storage' => 
  array (
    'driver' => 's3',
    'path' => '/',
    'key' => 'keyId',
    'secret' => 'keySecret',
    'region' => 'UK',
    'endpoint' => 'https://s3.eu-central-003.backblazeb2.com',
    'bucket' => 'CDN-Spencer0003',
  ),
);

but I'm not getting any logs other than

2022/06/18 06:10:23 [error] 381#381: *114 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.17.0.1, server: _, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomainhere"
2022/06/18 06:10:24 [error] 380#380: *132 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.17.0.1, server: _, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomainhere"
2022/06/18 17:14:51 [error] 382#382: *500 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.17.0.1, server: _, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "mydomainhere"
sergix44 commented 2 years ago

There is anything in the /logs directory of xbb? If not, is probably something wrong with your current configuration: the info.php script that your log mention is not even present in xbackbone 🤷 Maybe is something related to your nginx conf: https://serverfault.com/questions/517190/nginx-1-fastcgi-sent-in-stderr-primary-script-unknown