# Background Tasks not working

**URL:** <https://forum.pydio.com/t/background-tasks-not-working/1047>\
**Category:** Pydio 8\
**Tags:** centos\
**Created:** [April 23, 2018, 11:34pm UTC](https://forum.pydio.com/t/background-tasks-not-working/1047 "2018-04-23T23:34:03Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiggerific](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tiggerific](https://forum.pydio.com/u/tiggerific)\
**Post date:** [April 23, 2018, 11:34pm UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/1 "2018-04-23T23:34:03Z")

</div>

I’m not having any luck getting background tasks to run. I have recently upgraded to Pydio 8.02, which didn’t fix the problem.

I have confirmed CLI is enabled and working.

Regardless, handling of files over 10Mb require a background task which never completes. The popup appears but no error messages. Diagnostics are all ok.

The main task I’m trying to complete is emptying the Recycle Bin!

Can someone advise where to look. Thanks.

Running on CentOS 7 - cPanel/WHM

---

<div class="post-metadata">

**Author:** ![charles](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/charles/32/3_2.png) [@charles](https://forum.pydio.com/u/charles)\
**Post date:** [April 26, 2018, 10:21am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/2 "2018-04-26T10:21:26Z")

</div>

Hi! did you try to set the absolute path to php cli in the settings? Or checking the default value is correct for your system?

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [April 27, 2018, 8:45am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/3 "2018-04-27T08:45:15Z")

</div>

Hi, Make sure that php-cli use the same (configuration of ) php.ini with php cgi

---

<div class="post-metadata">

**Author:** ![tiggerific](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tiggerific](https://forum.pydio.com/u/tiggerific)\
**Post date:** [April 27, 2018, 10:39am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/4 "2018-04-27T10:39:37Z")

</div>

> [@charles](#):
>
> Hi! did you try to set the absolute path to php cli in the settings? Or checking the default value is correct for your system?

Hi. Thanks for your reply. Yes, that was one of the first things I did to set the absolute path.  
As I said, it’s reporting that CLI is working

---

<div class="post-metadata">

**Author:** ![tiggerific](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tiggerific](https://forum.pydio.com/u/tiggerific)\
**Post date:** [April 27, 2018, 10:40am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/5 "2018-04-27T10:40:38Z")

</div>

> [@c12simple](#):
>
> Hi, Make sure that php-cli use the same (configuration of ) php.ini with php cgi

Um… I’m not exactly sure what you’re referring to here?

---

<div class="post-metadata">

**Author:** ![tiggerific](https://avatars.discourse-cdn.com/v4/letter/t/e9c0ed/32.png) [@tiggerific](https://forum.pydio.com/u/tiggerific)\
**Post date:** [July 24, 2018, 1:24am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/6 "2018-07-24T01:24:33Z")

</div>

Just wondering if anyone has any further information about this error. It’s been a couple of months and I still don’t have background tasks running successfully.

In particular, deleting files over 10Mb raises a background task - which never runs. My client is unable to Empty Recycle bin or delete files larger than 10Mb due to this.

Everything else appears to be functioning correctly.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![SHLelieveld](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@SHLelieveld](https://forum.pydio.com/u/SHLelieveld)\
**Post date:** [October 17, 2018, 11:35am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/7 "2018-10-17T11:35:54Z")

</div>

I have the same issue here with 8.2.2 on CentOS 7.5.  
Background tasks notifies that a background task is launching but actually it will never start.  
(nor finish).  
This is absolutely required for operation on our end, as we use it as big remote file management tool (not as cloud storage).

---

<div class="post-metadata">

**Author:** ![zayn](https://avatars.discourse-cdn.com/v4/letter/z/a87d85/32.png) [@zayn](https://forum.pydio.com/u/zayn)\
**Post date:** [October 18, 2018, 7:46am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/8 "2018-10-18T07:46:10Z")

</div>

Hi,  
what did you put for the php-cli here,

 ![58](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/1X/a4d901e49434c32cb14b5f237c3309242d36466b.png)  
in the file did you put your php-cli absolute path ?  
you should take a look in the file.

---

<div class="post-metadata">

**Author:** ![Waseem](https://avatars.discourse-cdn.com/v4/letter/w/9dc877/32.png) [@Waseem](https://forum.pydio.com/u/Waseem)\
**Post date:** [December 10, 2018, 9:21am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/9 "2018-12-10T09:21:27Z")

</div>

Hello,

I would like to know how do you change the absolute path?

Best.

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [December 10, 2018, 10:05am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/10 "2018-12-10T10:05:29Z")

</div>

Hi,

You can set in it conf/conf.core.ajaxplorer.inc or (/etc/pydio/conf.core.ajaxplorere.inc)

---

<div class="post-metadata">

**Author:** ![Waseem](https://avatars.discourse-cdn.com/v4/letter/w/9dc877/32.png) [@Waseem](https://forum.pydio.com/u/Waseem)\
**Post date:** [December 10, 2018, 10:21am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/11 "2018-12-10T10:21:26Z")

</div>

Hi c12simple,

Sorry im quite new to this, so if i give the path to the php file location, for eg “C:\ampps\conf\original-php-7.1.ini” will it be sufficient?

---

<div class="post-metadata">

**Author:** ![Waseem](https://avatars.discourse-cdn.com/v4/letter/w/9dc877/32.png) [@Waseem](https://forum.pydio.com/u/Waseem)\
**Post date:** [December 10, 2018, 10:22am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/12 "2018-12-10T10:22:32Z")

</div>

Becasue im not sure what path to give, i havent done this before.  
can i know what correct directory he mentions here, i tried changing to all mentioned directory possibiliites still no success. maybe im doing it wrong…

> [@Pydio 8 background task not working](https://forum.pydio.com/t/pydio-8-background-task-not-working/775/7):
>
> Sorry for the late reply. It seems the directory was the problem. After placing the correct directory, diagnostics show Command-Line was enabled. Background task now works properly. Thank You very much for your help and patience!

---

<div class="post-metadata">

**Author:** ![Waseem](https://avatars.discourse-cdn.com/v4/letter/w/9dc877/32.png) [@Waseem](https://forum.pydio.com/u/Waseem)\
**Post date:** [December 10, 2018, 11:31am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/13 "2018-12-10T11:31:23Z")

</div>

Hope this will help out

Client : Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 UBrowser/7.0.185.1002 Safari/537.36  
Crypto Extension Detected : OpenSSL  
Command Line Available : No :  
DOM Enabled : Yes  
Exif Enabled : Yes  
GD Enabled : Yes  
Upload Max Size : 128M  
Memory Limit : 128M  
Max execution time : 30  
Safe Mode : 0  
Safe Mode GID : 0  
Xml parser enabled : 1  
Server OS : WINNT  
Session Save Path : C:/Program Files/Ampps\tmp  
Session Save Path Writeable : Yes  
PHP Version : 7.1.2  
Locale : C  
Directory Separator :   
PHP INTL extension loaded : No  
PHP Output Buffer disabled : No  
PHP File Uploads enabled : Yes  
Magic quotes disabled : Yes  
Upload Tmp Dir Writeable : Yes  
PHP Upload Max Size : 134217728  
PHP Post Max Size : 8388608  
Users enabled : Yes  
Guest enabled : No  
Writeable Folders : [ **cache** :true,  
 **data** :true]  
Zlib Enabled : Yes

Would appreciate if someone can help me out with this…

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [December 12, 2018, 8:51am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/14 "2018-12-12T08:51:07Z")

</div>

Hi @Waseem  
In windows, it’s path to php.exe

“Use COM class” : On

> > Sorry: Use COM class should be ON when you use IIS

---

<div class="post-metadata">

**Author:** ![Waseem](https://avatars.discourse-cdn.com/v4/letter/w/9dc877/32.png) [@Waseem](https://forum.pydio.com/u/Waseem)\
**Post date:** [December 13, 2018, 4:07am UTC](https://forum.pydio.com/t/background-tasks-not-working/1047/15 "2018-12-13T04:07:10Z")

</div>

> [@Background Tasks not working](https://forum.pydio.com/t/background-tasks-not-working/1047/14):
>
> Hi @Waseem In windows, it’s path to php.exe “Use COM class” : On Sorry: Use COM class should be ON when you use IIS

hi @c12simple thanks for the reply, ok here’s what i did. reinstalled ampps on the same drive used as the file server. now the files are being copied no matter the size. although the CLI shows as disabled in the diagnostics. will CLI be needed or should i leave the system as it is since it is working alright.

i get indexing running in the background,shows as starting and stays that way, this might be due to the CLI not being enabled, hopefully it wont cause a problem…
