Forum archive
Failure to restore CSV backup in latest TRACKS appliance (14.2-jessie)
Hello, first of all, thank you! Thanks for such a great job at turnkey linux. Really appreciated!
Well, I've just downloaded and tested the latest tracks appliance in VirtualBox.
File: turnkey-tracks-14.2-jessie-amd64.ova.
It works, but can't restore tasks from a CSV backup. It's quite easy to reproduce the problem.
1) Create a new project with a couple of tasks.
2) Export it: admin -> export -> CSV file containing all of your actions, with named contexts and projects.
3) Use the same file to import it again.
Admin -> import -> Browse... -> (select file) -> Upload.
The expected behavior would be to upload it and restore the new project, with its tasks. However, the observed behavior it an error message, complaining about not being able to upload the file.
Error message:
"Could not save uploaded CSV (/var/www/tracks/public/uploads/csv/todos.csv). Can Tracks write to the upload directory? No such file or directory @ rb_sysopen - /var/www/tracks/public/uploads/csv/todos.csv"
By the way, there is no "uploads" folder inside /var/www/tracks/public.
Here is what I see:
root@tracks tracks/public# pwd
/var/www/tracks/public
root@tracks tracks/public# ls -la
total 68
drwxr-xr-x 4 root root 4096 May 28 18:15 .
drwxr-xr-x 15 root root 4096 May 3 2017 ..
-rw-r--r-- 1 root root 1360 Jun 18 2015 .htaccess
-rw-r--r-- 1 root root 1564 Jun 18 2015 404.html
-rw-r--r-- 1 root root 1547 Jun 18 2015 422.html
-rw-r--r-- 1 root root 1477 Jun 18 2015 500.html
drwxr-xr-x 4 root root 20480 May 28 20:11 assets
-rwxr-xr-x 1 root root 477 Jun 18 2015 dispatch.cgi
-rwxr-xr-x 1 root root 461 Jun 18 2015 dispatch.fcgi
-rwxr-xr-x 1 root root 477 Jun 18 2015 dispatch.rb
-rw-r--r-- 1 root root 1150 Jun 18 2015 favicon.ico
-rw-r--r-- 1 root root 198 Jun 18 2015 robots.txt
I've even tried to create a "uploads/csv/" folder structure manually, but without
any luck. Most probably, there is something (permissions, maybe?) that needs
to be properly configured, before it works correctly.
I'm quite comfortable with the shell, but know almost nothing about ruby.
Can you please help?
Regards,
Paulo
It does seem like the directory not existing (and permissions of it) are clearly issues - well worth resolving. But it sounds like there may be something more to it than that?!
I'm pretty tied up with development for our upcoming v15.0 release, so can't look into this further right now. But please don't take my lack of further testing etc to mean lack of interest. Please post back once you've had another look at it and we may well open a new issue against the appliance if you can confirm it's an issue (especially if you can document how to reliably reproduce the issue).
Having said that, it does sound as if it may actually be an upstream issue (i.e. an issue with the actual software itself, as opposed to our specific install/implementation). FWIW I did have a browse of the upstream issue tracker and couldn't find anyone else reporting your exact problem. So perhaps it is somewhat unique to our install?
Also another thing I noticed was that whilst the version we install (v2.3.0) is still the latest stable release, that was released nearly 3 years ago! The master branch has had an additional ~360 commits since then! From what I gather, their master branch is their development branch, so I'm unclear on whether trying to install that (or upgrade to that) would be a worthy exercise or not, but perhaps worth keeping in mind.
If you wish to try that, I'm open to assisting as best I can, but can only offer "best effort". And as I hinted earlier, Ruby is not something I'm at all familiar with.