New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporary directory /var/www/nextcloud/data/tmp is not present or writable #617
Comments
that's weird, that setting is in nc-nextcloud.sh, and the directory is created there. how did you import your old instance? if your old instance wasn't NCP then that's the reason. thanks for reporting! |
As mentioned above, I used the backup of a previous installation which I did manually. Which means I had the config.php and a DB dump My files are residing on NFS mount, which I mount using fstab outside the nextcloud (var/ww) directory and the config.php references this. I still like that damn script you wrote, this was so hazzle free 👍 |
But did you copy your old NC folder to the new location? if that's the case, then that's why you don't have the Otherwise, please details the step that took you to a situation with no Thanks |
Yes this tmp directory is not located at |
Great, thanks for the detailed answer So it makes sense... you pointed your instance to a data dir not created by NCP, therefore the expected Nothing to fix ;) |
What I do not understand is, why it raises an error? |
Actually it would be better to use config.php now that I think about it, I am trying not to modify global files where possible (like So you tried
, and it didn't work? did you do any research on the topic? |
I know, reading code makes life so much easier 😄 need to get used to it 😉 I did not do any research on the issue. I saw the error in the logs, created the folder and changed the rights and was just happy. The Perhaps setting the tempdirectory via NCP would be great, or automatically create it on the data directory mentioned in the config.php. I just do not know the best solution, I am happy that mine is on the local disk ;) and the data directory is on the NFS share I have mounted. THANKS FOR YOUR HELP |
Please, let us know if the config.php option works for you. You are on a very specific case with your NFS setup and that is not supported, obviously. In your case it is normal that you have to make some adjustments here and there. I think that for the average user it is good the way it is ;) |
its working |
I have thousands of this, number is permanently growing:
It's a new nextcloudpi-installation but data has been moved to an external storage. Any suggestions? Thanks SMichel |
Did you try adding:
to your config.php ? |
Thanks for the answer. And where can I find the config.php in a nextcloudpi installation? |
/var/www/nextcloud/config/config.php |
Only the warning |
Did you restart webserver?
|
Yes, but the message apears about 3 times per sec. |
You may have to create it first:
then restart webserver |
Yesss! That's it. No warning or error left in the protocol. |
Hi, I have the same problem on my NextcloudPI. I get up to three times a second the error "Temporary directory / var / www / nextcloud / data / tmp is not present or writable" What can I do exactly here. Unfortunately, I do not really know much about Linux. The error is posted after the automatic update to the newest Nextcloud 15.0.2. Can someone help me please. Thank you |
|
The solution from @nachoparker works but after an upgrade you run into the same issue, if you moved you data directory manually to a NFS share os another disk etc without using NCP options. What I did to avoid it was creating a directory somewhere on the disk. I my case it was |
thank you very much. That's it. Mistakes are gone. |
Thanks for the information. I'll remember if it happens to me too. |
well i discovered the same problem today after a fresh install of NC 14.0.4. (restored old data from backup) and updated to NC15.0.4 and i AM pretty sure that I once did the moving of the data-dir with an early version of ncp-web. so it's not really that I didn't use our wonderful tool it is just that ncp-web forgot about it on it's development ;-) |
I would like to have a option to set the tmp path via ncp |
I installed a Debian 9.5 64BIT on a dedicated hardware and ran the script to get NextcloudPi installed.
Everything worked fine so far.
I activate the installation and tried to login using the ncp user.
Afterwards I migrated from my existing installation. Imported the database, imported the "old" config.php and merged it with the settings for the existing.
Using config.php I moved the data path to a NFS mount (via fstab).
It went smooth like hell :) Thanks for that.
But I felt the system was slower than the old Ubuntu 16 32BIT where I tinkered a lot. So I searched and found the following error in the Nextcloud protocol
I created the directory data/tmp and assigned it to www-data and now it is smooth like hell :)
But why was the directory not there from the beginning and where is this "setting" coming from anyhow.
The text was updated successfully, but these errors were encountered: