NextcloudPi - Cannot create temporary file when trying to upload

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 29.0.5): 28.0.5.1
Operating system and version (eg, Ubuntu 29.04): Armbian-unofficial 24.2.1 Bookworm \l . 6.6.18-current-bcm2711 (aarch64)
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 8.3): replace me

The issue you are facing:
Nextcloudpi version 1.54.0 new installation
data dir is located on external USB SSD and nc datadir points correctly to it
desktop client syncs OK
On mobile client I can access the data. I can delete exiting files and everything syncs but when trying to upload a file I get the following:


The same message appears repeatedly for every file trying to sync

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

  1. Fresh install
  2. setup using wizard
  3. create user
  4. Open ports on router ports forwarding
  5. Try to sync from mobile client

The output of your Nextcloud log in Admin > Logging:

the snapshot above repeats for every file trying to sync

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'passwordsalt' => '****************',
  'secret' => '*****************',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    7 => 'nextcloudpi',
    5 => 'nextcloudpi.local',
    8 => 'nextcloudpi.lan',
    3 => 'nextcloudpi',
    11 => '*******my_public_ip',
    1 => '192.168.0.103',
    14 => 'nextcloudpi',
  ),
  'datadirectory' => '/media/USBdrive/ncdata/data',
  'dbtype' => 'mysql',
  'version' => '28.0.5.1',
  'overwrite.cli.url' => 'https://nextcloudpi/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => '***************',
  'installed' => true,
  'instanceid' => 'ocnb9vfp73bk',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => '*************',
  ),
  'tempdirectory' => '/media/USBdrive/ncdata/data/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'noreply',
  'mail_domain' => 'nextcloudpi.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'logfile' => '/media/USBdrive/ncdata/data/nextcloud.log',
  'trusted_proxies' =>
  array (
    11 => '127.0.0.1',
    12 => '::1',
  ),
  'loglevel' => '2',
  'log_type' => 'file',
);

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE[Tue Jun 11 01:34:12.847488 2024] [proxy_fcgi:error] [pid 314314:tid 281472124317984] [client 192.168.0.101:50650] AH01071: Got error 'PHP message:
PHP Notice:  Unknown: file created in the system's temporary directory in Unknown on line 0PHP message: PHP Warning:  Unknown: Unable to create temp
orary file, Check permissions in temporary files directory. in Unknown on line 0PHP message: PHP Warning:  Unknown: POST data can't be buffered; all
 data discarded in Unknown on line 0'
[Tue Jun 11 03:34:19.308461 2024] [proxy_fcgi:error] [pid 314314:tid 281473046724896] [client 192.168.0.101:53997] AH01071: Got error 'PHP message:
PHP Notice:  Unknown: file created in the system's temporary directory in Unknown on line 0PHP message: PHP Warning:  Unknown: Unable to create temp
orary file, Check permissions in temporary files directory. in Unknown on line 0PHP message: PHP Warning:  Unknown: POST data can't be buffered; all
 data discarded in Unknown on line 0'
[Tue Jun 11 03:34:19.421931 2024] [proxy_fcgi:error] [pid 314314:tid 281471721664800] [client 192.168.0.101:54000] AH01071: Got error 'PHP message:
PHP Notice:  Unknown: file created in the system's temporary directory in Unknown on line 0PHP message: PHP Warning:  Unknown: Unable to create temp
orary file, Check permissions in temporary files directory. in Unknown on line 0PHP message: PHP Warning:  Unknown: POST data can't be buffered; all
 data discarded in Unknown on line 0'
[Tue Jun 11 05:20:53.900169 2024] [proxy_fcgi:error] [pid 314314:tid 281472912716064] [client 192.168.0.101:57061] AH01071: Got error 'PHP message:
PHP Notice:  Unknown: file created in the system's temporary directory in Unknown on line 0PHP message: PHP Warning:  Unknown: Unable to create temp
orary file, Check permissions in temporary files directory. in Unknown on line 0PHP message: PHP Warning:  Unknown: POST data can't be buffered; all
 data discarded in Unknown on line 0'
[Tue Jun 11 05:20:54.092388 2024] [proxy_fcgi:error] [pid 314332:tid 281471939899680] [client 192.168.0.101:57064] AH01071: Got error 'PHP message:
PHP Notice:  Unknown: file created in the system's temporary directory in Unknown on line 0PHP message: PHP Warning:  Unknown: Unable to create temp
orary file, Check permissions in temporary files directory. in Unknown on line 0PHP message: PHP Warning:  Unknown: POST data can't be buffered; all
 data discarded in Unknown on line 0'