Please forgive me for not going the canonical path with either Drush or Composer. I tried, but could not find documentation to get me started. I'm coming from a Debian installation of Drupal 7 that used Debian packages.
I have had bad experiences with skipping major releases with several software product, so I did not want to skip from Drupal 7 to 9. Please correct me if you think this is a bad idea. So I downloaded the latest Drupal 8 tarball and installed that. I configured a basic site and started
Most of the migration went OK, but I could not get it to import the files from Drupal 7. I had kept them in
/var/lib/drupal6/files. The log mentioned files, but with the path like
//varlibdrupal6filessomething.jpeg. So I copied the files to / with the prefixed name, but no dice.
I can't find why there is a lot of error messages (but less than one per file) like this:
Source ID 1022: Could not create or write to directory 'private:'
I straced apache but could not find anything that looked like a problem with the private files path. The top level directory is owned by www-data:www-data is is set to 0777 anyway. The strace does not show any access involving that directory, accept for a few to PHP files like this:
The apache access.log shows this:
172.17.6.1 - - [14/Mar/2022:21:13:37 +0100] "POST /buexeCMS8/node/add/rezept?element_parents=upload/widget&ajax_form=1&_wrapper_format=drupal_ajax&_wrapper_format=drupal_ajax HTTP/1.1" 200 6292 "https://drudev.lupe-christoph.de/buexeCMS8/node/add/rezept" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0"
So it looks like it the POST has succeeded. Except it hasn't.
I tried diving into the PHP code but had to give up when I got to a file with very complex Entity-related code.
I installed the File (Field) Paths module and built a new content type using both the old and the new File widgets. The old one refuses to upload, the new one presumably using File (Field) Paths, does its job.
Now I'm completely confused, and have no idea where to look next. Any nudge in the hopefully right direction would be very welcome.