# CONNECTION REQUEST PROBLEM - EasyCWMP and GenieACS

**URL:** <https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245>\
**Category:** Uncategorized\
**Created:** [August 23, 2019, 9:48am UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245 "2019-08-23T09:48:13Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![samsam](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@samsam](https://forum.genieacs.com/u/samsam)\
**Post date:** [August 23, 2019, 9:48am UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/1 "2019-08-23T09:48:13Z")

</div>

Hi everyone!  
I’ve got a very stange problem and I really can’t figure out what is causing it.  
My setup:  
GenieASC on VM: v.1.1 with GenieACS-GUI  
OpenWrt router with EasyCWMP: v.1.8.1

Issue:  
I’'ve successfully registered the CPE to Genie, but I when I press “Refresh” on the device’s page I get “Task queued but not processed”. The stange thing is that if I refresh or edit just one parameter everything works as expected!  
I also had to disable ACS to CPE authentication in order to archieve this, otherwise it would throw at me the “Incorrect connection request credentials” error, another mistery.  
API requests work, with password too!  
I also tried opening the following url in a browser in order to trigger a CONNECTION REQUEST event so that it made the request to Genie and by refreshing the page I could see that the last inform time was updated too. -\> url: “http://CPE\_IP:7547”. This works event with authentication.

Configurations:  
-\>easyCWMP

```
config local
        option enable '1'
        option interface 'eth0'
        option port '7547'
        option ubus_socket '/var/run/ubus.sock'
        option authentication 'Digest'
        option logging_level '3'
        option provisioning_code '456'

config acs
        option scheme 'http'
        option url 'http://172.16.1.165:7547'
        option periodic_enable '1'
        option periodic_interval '100'
        option periodic_time '0001-01-01T00:00:00Z'

config device
        option oui 'FFFFFF'
        option serial_number 'FFFFFF123456'
        option product_class 'Generic'
        option hardware_version 'v0'
        option software_version 'SHRW-0.2_04-2019'
        option manufacturer 'OpenWrt
http___openwrt.org_'

```

-\> GenieACS  
{  
“MONGODB\_CONNECTION\_URL” : “mongodb://127.0.0.1/genieacs”,  
“CWMP\_INTERFACE” : “0.0.0.0”,  
“CWMP\_PORT” : 7547,  
“CWMP\_SSL” : false,  
“NBI\_INTERFACE” : “0.0.0.0”,  
“NBI\_PORT” : 7557,  
“NBI\_SSL” : “false”,  
“NBI\_LOG\_FILE” : “/var/log/genieacs/nbi.log”,  
“NBI\_ACCESS\_LOG\_FILE” : “/var/log/genieacs/nbi-access.log”,  
“FS\_INTERFACE” : “0.0.0.0”,  
“FS\_PORT” : 7567,  
“FS\_LOG\_FILE” : “/var/log/genieacs/fs.log”,  
“FS\_ACCESS\_LOG\_FILE” : “/var/log/genieacs/fs-access.log”,  
“FS\_HOSTNAME” : “172.16.1.165”,  
“DEBUG” : true,  
“LOG\_INFORMS” : true,  
“CWMP\_ACCESS\_LOG\_FILE” : “/var/log/genieacs/cwmp-access.log”,  
“CWMP\_LOG\_FILE” : “/var/log/genieacs/cwmp.log”,  
"GET\_PARAMETER\_NAMES\_DEPTH\_THRESHOLD " : “1”,  
“SESSION\_TIMEOUT” : “40”,  
“CWMP\_KEEP\_ALIVE\_TIMEOUT” : “10000”  
}

Additional info:  
-\> GenieACS debug file for CPE  
Procedure followed:

1. Start easycwmp on OpenWrt, wait for PERIODIC inform
2. Press Refresh on Genie and wait for response from CPE (genie thows the “Task queued…” error)
3. Rrefresh Device.DeviceInfo.ProvisioningCode, no problem here

File:  
[[https://pastebin.com/v6Vwen8c](https://pastebin.com/v6Vwen8c)](link to file)

-\>cwmp-access log from Genie

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/0ab5aea807293c77c533b6e904c3db8e8f85ba13.png)

I really hope someone can figure this out and help me.  
Also, I’ve already tested GenieACS with MikroTik and never had problems like this one.

Thanks in advance, have a good day!

–Sam

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [August 24, 2019, 2:23am UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/2 "2019-08-24T02:23:57Z")

</div>

I suspect the device is just too slow to initiate a session after a connection request and/or taking too long to process the queued requests. Try setting ‘DEVICE\_ONLINE\_THRESHOLD’ to a value higher than 4000 which is the default. That’s how long the API will wait for the device from the start of the connection request until the TR-069 session should have closed successfully.

---

<div class="post-metadata">

**Author:** ![samsam](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@samsam](https://forum.genieacs.com/u/samsam)\
**Post date:** [August 24, 2019, 7:18am UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/3 "2019-08-24T07:18:02Z")

</div>

Sure, as soon as I can I’ll try and let you know the results!  
Than you very much!

---

<div class="post-metadata">

**Author:** ![samsam](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@samsam](https://forum.genieacs.com/u/samsam)\
**Post date:** [August 26, 2019, 8:33am UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/4 "2019-08-26T08:33:31Z")

</div>

Hi, I’ve finally checked!

The problem is not solved. If I press the refresh button the same error shows up: “Task queued but not processed”. By refreshing the page (F5) (after 10s or so) I can see that the CPE refreshed the parameters and went online.  
I tried using Wireshark to see what is happening but I never used it and I don’t really know much about http connections/protocols, etc…

CPE’s IP: 172.16.1.167  
ACS’s IP: 172.16.1.165

[Wireshark output](https://drive.google.com/file/d/1X3MeIl3IQhnZR8AeIehidaRePMIYyTd0/view?usp=sharing)

I’ve also got an authentication problem:  
I get the error: “Incorrect connection request credentials”.  
By looking at Wireshark’s output I saw that when it said “username” there was an empty string. So my suspect is that maybe Genie isn’t authenticating to the CPE.

[Wireshark output](https://drive.google.com/file/d/15aXgYcmhX1aOHNdp97XDAStPQcJq_2hj/view?usp=sharing)

Thanks for the support, I really hope you can figure out this mess.

Have a good day

---

<div class="post-metadata">

**Author:** ![zaidka](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/zaidka/32/9_2.png) [@zaidka](https://forum.genieacs.com/u/zaidka)\
**Post date:** [August 27, 2019, 12:08am UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/5 "2019-08-27T00:08:46Z")

</div>

> [@samsam](#):
>
> The problem is not solved.

What value did you use for DEVICE\_ONLINE\_THRESHOLD? Looking at the pcap file I see the session is taking over 8 seconds in total. So maybe set that to 10000.

> [@samsam](#):
>
> I tried using Wireshark to see what is happening but I never used it and I don’t really know much about http connections/protocols, etc…

You kinda need to get your hands dirty with HTTP and TR-069 to troubleshoot device issues. I can only maybe provide tips but I can’t troubleshoot issues for you, especially CPE issues.

> [@samsam](#):
>
> I’ve also got an authentication problem:  
> I get the error: “Incorrect connection request credentials”.

Create a preset to set ConnectionRequestUsername and ConnectionRequestPassword params.

---

<div class="post-metadata">

**Author:** ![samsam](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@samsam](https://forum.genieacs.com/u/samsam)\
**Post date:** [August 27, 2019, 5:37am UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/6 "2019-08-27T05:37:37Z")

</div>

> [@zaidka](#):
>
> What value did you use for DEVICE\_ONLINE\_THRESHOLD? Looking at the pcap file I see the session is taking over 8 seconds in total. So maybe set that to 10000.

I’ve tried setting it to 30000 too.

> [@zaidka](#):
>
> You kinda need to get your hands dirty with HTTP and TR-069 to troubleshoot device issues. I can only maybe provide tips but I can’t troubleshoot issues for you, especially CPE issues.

Sure, I’ll see what I can manage to do.

> [@zaidka](#):
>
> Create a preset to set ConnectionRequestUsername and ConnectionRequestPassword params.

Didn’t think about this.

I’ll try everything and if I can find a solution I’ll let you know!

Thanks for your beautiful work!

---

<div class="post-metadata">

**Author:** ![tajs](https://avatars.discourse-cdn.com/v4/letter/t/9de0a6/32.png) [@tajs](https://forum.genieacs.com/u/tajs)\
**Post date:** [February 24, 2020, 5:32pm UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/7 "2020-02-24T17:32:57Z")

</div>

Hi Zaid,

Using 1.2-beta, we are losing contact to CPEs that are online but being pooled into the “Other” online status. GenieACS will not respond to the “inform” request, and does not complete a “summon”. I can see the device respond to the 30005 summon request, but the summon still fails.

Also, I see a constant request being sent to my GenieACS server from the CPE, but the server is not responding.

Where can I find the “DEVICE\_ONLINE\_THRESHOLD” configuration in version 1.2-beta?

Thanks Zaid,

Taj

---

<div class="post-metadata">

**Author:** ![ioan.simon](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ioan.simon](https://forum.genieacs.com/u/ioan.simon)\
**Post date:** [April 15, 2020, 10:18am UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/8 "2020-04-15T10:18:20Z")

</div>

Hello all,

Having the same issue I would like to know where the “DEVICE\_ONLINE\_THRESHOLD” can be modified in version 1.2-beta.  
Someone has the answer?

Thanks.  
Regards,  
Ioan

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [April 15, 2020, 4:40pm UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/9 "2020-04-15T16:40:52Z")

</div>

I don’t have v1.2 installed to be able to point you to the exact screen. But somewhere in the UI for 1.2 you can set config parameters, this is where you’d add/change this option.

-dan

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [April 15, 2020, 4:44pm UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/10 "2020-04-15T16:44:08Z")

</div>

This post describes how to change the parameter you desire:

> [@Unable to refresh InternetGatewayDevice root tree](https://forum.genieacs.com/t/unable-to-refresh-internetgatewaydevice-root-tree/680/2):
>
> Try to add in config tab a value for this parameters and test playing with some values. There is no much documentation about how it works… im a begginer for this… cwmp.connectionRequestTimeout “512” cwmp.deviceOnlineThreshold “32768” cwmp.downloadTimeout “32768” cwmp.maxCommitIterations “128”

---

<div class="post-metadata">

**Author:** ![ioan.simon](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ioan.simon](https://forum.genieacs.com/u/ioan.simon)\
**Post date:** [April 16, 2020, 8:20am UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/11 "2020-04-16T08:20:05Z")

</div>

Yes that’s it! Thank you a lot.

Regards

---

<div class="post-metadata">

**Author:** ![topeqin](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@topeqin](https://forum.genieacs.com/u/topeqin)\
**Post date:** [September 5, 2020, 4:05pm UTC](https://forum.genieacs.com/t/connection-request-problem-easycwmp-and-genieacs/245/12 "2020-09-05T16:05:08Z")

</div>

Hello acoder

Thanks your useful tips about these 3 configurations deviceOnlineThreshold & connectionRequestTime. I am a new user to genieACS 1.2. but seems these configuration and another connectionRequestAuth provided by zaidka. it can resolve the “server is unrearchable” issue i meet afternoon.

at here, really thanks your valuable tips. Would you mind tell me why these 3 parameters via config/tab can fix “server is unreachable” issue. which source file in genieacs will use the 3 parameters? I want to understand root cause.

Thanks  
QG
