Missing audio.svg file?

Steps to reproduce

  1. Upload some music file
  2. show the content of this dir on the web ui
  3. See this error in the logfile

Expected behaviour

Tell us what should happen
No errors

Actual behaviour

Tell us what happens instead

{“reqId”:“12C275DC-764A-464B-B05C-943403B08C0D”,“level”:3,“time”:“2019-10-16T17:20:43+02:00”,“remoteAddr”:“SOMEIP”,“user”:“SOMEUSER”,“app”:“PHP”,“method”:“GET”,“url”:"/owncloud/remote.php/dav/files/SOMEUSER/CVJM/Musik/Frieden%20Finden%20-%20Lied%20zur%20Jahreslosung%202019.mp3?y=120&preview=1&x=120&c=%229620104c392b02dab778db75845283a9%22&a=1",“message”:“imagecreatefromstring(): Empty string or invalid image at /var/www/html/owncloud/lib/private/legacy/image.php#573”}
{“reqId”:“E5C8FB2F-9DA1-465D-8D58-9A97E359AA91”,“level”:3,“time”:“2019-10-16T17:20:44+02:00”,“remoteAddr”:“SOMEIP”,“user”:“SOMEUSER”,“app”:“PHP”,“method”:“GET”,“url”:"/owncloud/remote.php/dav/files/SOMEUSER/CVJM/Musik/God%20-%20of.mp3?y=120&preview=1&x=120&c=%225639b4ca3ca3ee757907d3956eb4881b%22&a=1",“message”:“file_get_contents(/media/owncloud/data/SOMEUSER/files/var/www/html/owncloud/core/img/filetypes/audio.svg): failed to open stream: No such file or directory at /var/www/html/owncloud/lib/private/Files/Storage/Local.php#227”}
{“reqId”:“E5C8FB2F-9DA1-465D-8D58-9A97E359AA91”,“level”:3,“time”:“2019-10-16T17:20:44+02:00”,“remoteAddr”:“SOMEIP”,“user”:“SOMEUSER”,“app”:“PHP”,“method”:“GET”,“url”:"/owncloud/remote.php/dav/files/SOMEUSER/CVJM/Musik/God%20-%20of.mp3?y=120&preview=1&x=120&c=%225639b4ca3ca3ee757907d3956eb4881b%22&a=1",“message”:“imagecreatefromstring(): Empty string or invalid image at /var/www/html/owncloud/lib/private/legacy/image.php#573”}

Server configuration

Operating system:
Raspbian Stretch
Web server:
Apache2
Database:
MariaDB
PHP version:
PHP7.0
ownCloud version: (see ownCloud admin page)
10.2.1
Updated from an older ownCloud or fresh install:
Updated from older
Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

The content of config/config.php:

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:
Enabled:

  • activity: 2.5.0
  • audioplayer: 2.8.4
  • brute_force_protection: 1.0.1
  • calendar: 1.6.3
  • comments: 0.3.0
  • configreport: 0.2.0
  • contacts: 1.5.5
  • dav: 0.4.0
  • extract: 1.2.0
  • federatedfilesharing: 0.4.0
  • federation: 0.1.0
  • files: 1.5.2
  • files_clipboard: 0.7.1
  • files_external: 0.7.1
  • files_mediaviewer: 1.0.0
  • files_pdfviewer: 0.11.0
  • files_sharing: 0.11.0
  • files_texteditor: 2.3.0
  • files_trashbin: 0.9.1
  • files_versions: 1.3.0
  • firstrunwizard: 1.2.0
  • market: 0.5.0
  • metadata: 0.9.0
  • notifications: 0.5.0
  • password_policy: 2.0.2
  • provisioning_api: 0.5.0
  • systemtags: 0.3.0
  • templateeditor: 0.4.0
  • theme-blindbaucloud: 2.0.0
  • updatenotification: 0.2.1
    Disabled:
  • encryption
  • external
  • files_videoplayer
  • user_external
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

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:

Operating system:

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

Hey,

this looks very strange to me:

Could it be possible that you have moved the data directory from /var/www/html/owncloud/data to /media/owncloud/data/ in the past without following the documentation on how to update the database entries?

Ok, i just had the idea to search for this error:

in the ownCloud bugtracker to see if this was reported to the ownCloud team and it looks to me that indeed something was already reported to them:

1 Like

I move the data dir after installing owncloud. So this is two years ago.

So this look like the issue from individual-it but the oc version is 10.2.1