# Invalid Session" Errors, URL Decoding, and Time Discrepancies

**URL:** <https://forum.genieacs.com/t/invalid-session-errors-url-decoding-and-time-discrepancies/5734>\
**Category:** Uncategorized\
**Created:** [July 16, 2024, 12:08am UTC](https://forum.genieacs.com/t/invalid-session-errors-url-decoding-and-time-discrepancies/5734 "2024-07-16T00:08:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![momothefox](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/momothefox/32/1913_2.png) [@momothefox](https://forum.genieacs.com/u/momothefox)\
**Post date:** [July 16, 2024, 12:08am UTC](https://forum.genieacs.com/t/invalid-session-errors-url-decoding-and-time-discrepancies/5734/1 "2024-07-16T00:08:52Z")

</div>

Hello  
I am currently experiencing three issues with my GenieACS setup and would appreciate any assistance or guidance:

### Issue 1: Invalid Session Errors

I am frequently seeing “Invalid session” errors in the ACS logs, despite the device appearing to register correctly:

```auto
2024-07-15T06:45:34.724Z [INFO] 41.xx.xx.xx 000789-X31-00%3A07%3A89%3A83%3A8C%3A46: Inform; cpeRequestId="3" informEvent="0 BOOTSTRAP" informRetryCount=2
2024-07-15T06:45:34.809Z [ERROR] 41.xx.xx.xx 000789-X31-00%3A07%3A89%3A83%3A8C%3A46: Invalid session
2024-07-15T06:45:34.815Z [INFO] 41.xx.xx.xx 000789-X31-00%3A07%3A89%3A83%3A8C%3A46: New device registered
2024-07-15T06:45:35.559Z [ERROR] 41.xx.xx.xx: Invalid session
2024-07-15T06:45:36.301Z [ERROR] 41.xx.xx.xx: Invalid session

```

### Issue 2: URL Decoding of Device ID

The device IDs are URL-encoded when sent to the ACS and need to be correctly decoded. For example:

- Encoded Device ID: `000789-X31-00%3A07%3A89%3A83%3A8C%3A46`
- Decoded Device ID: `000789-X31-00:07:89:83:8C:46`

### Issue 3: Time Discrepancies

There is a discrepancy between the timestamps stored by the device in ACS and the timestamps of the error codes. This might be contributing to the “Invalid session” errors.

### Request for Assistance

1. **Invalid Session Handling:**

2. **URL Decoding Confirmation:**

3. **Time Discrepancy Resolution:**

I appreciate any guidance or suggestions from the community on how to address these issues.

GenieACS v1.2.13+240606fc80

Thank you!

Best regards,  
Muhammad

---

<div class="post-metadata">

**Author:** ![momothefox](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/momothefox/32/1913_2.png) [@momothefox](https://forum.genieacs.com/u/momothefox)\
**Post date:** [July 24, 2024, 11:28pm UTC](https://forum.genieacs.com/t/invalid-session-errors-url-decoding-and-time-discrepancies/5734/2 "2024-07-24T23:28:48Z")

</div>

After all i found out that the devices are not updating timedate

this is clearly stated in the https POST request to CWMP server.  
`<CurrentTime>1970-01-01T09:01:05+09:00</CurrentTime>`

any way i could update the time with GenieACS ?  
As NTP seems to fail on all these devices.

---

<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:** [July 26, 2024, 4:32pm UTC](https://forum.genieacs.com/t/invalid-session-errors-url-decoding-and-time-discrepancies/5734/3 "2024-07-26T16:32:44Z")

</div>

Unless the device is using a vendor extension; or not following the spec; then the answer is no.  
`Time.CurrentLocalTime` is marked as read only in both the [TR-069](https://cwmp-data-models.broadband-forum.org/tr-069-1-0-0.html#D.InternetGatewayDevice:1.InternetGatewayDevice.Time.CurrentLocalTime) and [TR-181](https://cwmp-data-models.broadband-forum.org/tr-181-2-14-1-cwmp.html#D.Device:2.Device.Time.CurrentLocalTime) specs.

You should reach out to your vendor to resovle **why** NTP isn’t working.

---

<div class="post-metadata">

**Author:** ![momothefox](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/momothefox/32/1913_2.png) [@momothefox](https://forum.genieacs.com/u/momothefox)\
**Post date:** [July 27, 2024, 1:07am UTC](https://forum.genieacs.com/t/invalid-session-errors-url-decoding-and-time-discrepancies/5734/4 "2024-07-27T01:07:06Z")

</div>

Thank you for clarification

it is too complicated.  
simply i am trying to setup my own ACS to change devices firmware with my custom one.

so vendor will not be happy

i will use another method if TR-069 is too complicated.

Thanks.
