These are chat archives for collectiveaccess/support

20th
Apr 2016
legacyartiste
@legacyartiste
Apr 20 2016 02:28
hello , im working in pawtucket and would like to enable the option requiring registration in the app.
Kehan Harman
@kehh
Apr 20 2016 10:03
We've got a cron job for caUtils process-task-queue and some of the tasks got stuck due to an exception. Is it sensible to always run the queue with caUtils process-task-queue -r? Or should that only be run periodically?
CollectiveAccess
@collectiveaccess
Apr 20 2016 11:08
It should only be run periodically
Stefan
@stefankeidel
Apr 20 2016 11:29
What kind of exception?
Stefan
@stefankeidel
Apr 20 2016 11:36
@legacyartiste not sure if that's possible. Are you using Pawtucket2?
kaiall
@kaiall
Apr 20 2016 16:01
Is it possible to purge Pawtucket's cache? We are working with our host trying to figure out what is taking up SO MUCH space on our server, and this is one thing they've suggested. (I don't think that's the issue per se, but I figure it's worth a try.) Since we updated to 1.6, our space usage on our server has been growing dramatically - easily 800 MB a day, even when we haven't been working in CA, and this especially does not account for uploading media.
Stefan
@stefankeidel
Apr 20 2016 16:10
Yeah there's a file based cache in app/tmp that can get rather big for Pawtucket. You may want to consider switching to Redis or another caching backend that actually properly nukes the cache items after they expire (which is hard to do in a file-based caching filesystem).
Or you could just have a cron job that nukes <pawtucket>/app/tmp/<yourappname>Cache periodically
kaiall
@kaiall
Apr 20 2016 16:11
At the moment, can I just go in via ftp and delete it?
Stefan
@stefankeidel
Apr 20 2016 16:12
That'll take forever I think because FTP doesn't support recursive file operations
but it's possible
there are tons of tiny files in there in a nested file system
kaiall
@kaiall
Apr 20 2016 16:12
Ah. Okay. What about via the command line?
Stefan
@stefankeidel
Apr 20 2016 16:13
Yup, either way works. Just be prepared to wait a bit :-)
kaiall
@kaiall
Apr 20 2016 16:13
Also, it it expected behavior that the cache would be growing this much? We have just over 10,000 items in the database now, but probably less than half have any media.
(And our site doesn't get a ton of traffic.)
Stefan
@stefankeidel
Apr 20 2016 16:15
Yes and no. The cached items are not necessarily related to the size of your database. I think it's more dependent on how many people go to your website. But yeah, I've noticed huge Pawtucket cache directories before -- not entirely sure where it leaks
We should look into that at some point but I can't say that it's very high on the list
The main problem is that the cache items are never purged even when they expire, because to do that you actually have to loop through all of them, which can take forever. We do this in Providence but I believe it's been disabled in Pawtucket for performance reasons
kaiall
@kaiall
Apr 20 2016 16:20
If this is what's causing our issue (we'll see once I get it deleted), it might be worth considering more seriously. Our MySQL database is 3.5 GB. Our media folder is 11 GB. Other stuff on our server (for other websites) is maybe 2 GB. And somehow all this is currently using over 80 GB of space on the server.
Stefan
@stefankeidel
Apr 20 2016 16:21
80 seems a little excessive, indeed
can you run a du -sh on the cache dir to make sure that's the problem?
kaiall
@kaiall
Apr 20 2016 16:22
A lot excessive. At the moment, trying to run that just hangs. I think that's why they suggested purging it.
Stefan
@stefankeidel
Apr 20 2016 16:22
Nothing wrong with that. For a cache this size that'll probably take a couple of hours though
This is pawtucket2, yes?
kaiall
@kaiall
Apr 20 2016 16:25
Yes, pawtucket2. Probably from January.
tsitsibau
@tsitsibau
Apr 20 2016 20:07
hello
Stefan
@stefankeidel
Apr 20 2016 22:51
Hi