You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->logger->error('Error while checking the available disk space of temporary PHP path or no free disk space returned. Temporary path: ' . $tempPath);
$this->logger->warning('Checking the available space in the temporary path resulted in ' . round($freeSpaceInTempInGB, 1) . ' GB instead of the recommended 50GB. Path: ' . $tempPath);
return SetupResult::error('The temporary directory of this instance points to an either non-existing or non-writable directory.');
81
+
}
82
+
83
+
if (!is_dir($phpTempPath)) {
84
+
return SetupResult::error($this->l10n->t('Error while checking the temporary PHP path - it was not properly set to a directory. Returned value: %s', [$phpTempPath]));
return SetupResult::error($this->l10n->t('Error while checking the available disk space of temporary PHP path or no free disk space returned. Temporary path: %s', [$phpTempPath]));
90
+
}
91
+
92
+
/** Build details data about temporary directory, either one or two of them */
return SetupResult::error($this->l10n->t('Error while checking the available disk space of temporary PHP path or no free disk space returned. Temporary path: %s', [$nextcloudTempPath]));
$spaceDetail .= "\n".$this->l10n->t('- %.1f GiB available in %s (Nextcloud temporary directory)', [round($freeSpaceInNextcloudTempInGB, 1),$nextcloudTempPath]);
102
+
}
103
+
104
+
if (!$this->isPrimaryStorageS3()) {
105
+
return SetupResult::success(
106
+
$this->l10n->t("Temporary directory is correctly configured:\n%s", [$spaceDetail])
107
+
);
108
+
}
109
+
110
+
if ($freeSpaceInTempInGB > 50) {
111
+
return SetupResult::success(
112
+
$this->l10n->t(
113
+
"This instance uses an S3 based object store as primary storage, and has enough space in the temporary directory.\n%s",
114
+
[$spaceDetail]
115
+
)
116
+
);
117
+
}
118
+
119
+
return SetupResult::warning(
120
+
$this->l10n->t(
121
+
"This instance uses an S3 based object store as primary storage. The uploaded files are stored temporarily on the server and thus it is recommended to have 50 GiB of free space available in the temp directory of PHP. To improve this please change the temporary directory in the php.ini or make more space available in that path. \nChecking the available space in the temporary path resulted in %.1f GiB instead of the recommended 50 GiB. Path: %s",
msg: t('core','This instance uses an S3 based object store as primary storage. The uploaded files are stored temporarily on the server and thus it is recommended to have 50 GB of free space available in the temp directory of PHP. Check the logs for full details about the path and the available space. To improve this please change the temporary directory in the php.ini or make more space available in that path.'),
195
-
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
196
-
})
197
-
}
198
-
if(!data.temporaryDirectoryWritable){
199
-
messages.push({
200
-
msg: t('core','The temporary directory of this instance points to an either non-existing or non-writable directory.'),
msg: t('core','You are accessing your instance over a secure connection, however your instance is generating insecure URLs. This most likely means that you are behind a reverse proxy and the overwrite config variables are not set correctly. Please read {linkstart}the documentation page about this ↗{linkend}.')
0 commit comments