- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2019 11:12 AM
I was trying to edit device template for multiple devices, while I was crosschecking the new configs with existing, vManage timed out and logged out my session.
Now when I try to edit the template again, I get following message:
Template locked in edit mode.: Template is locked by user: since:2019-12-11 18:46:39,218
How can I clear the lock?
Will it be cleared by itself?
Solved! Go to Solution.
- Labels:
-
Other SD-WAN
-
SD-WAN vManage
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2019 02:28 PM
you can use the API call to clear the stuck process for template push
https://<vmanage-ip>/dataservice/device/action/status/tasks
Find the process id and then clear it
https://<vmanage-ip>/dataservice/device/action/status/tasks/clean?processId=<Process-id>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2019 02:28 PM
you can use the API call to clear the stuck process for template push
https://<vmanage-ip>/dataservice/device/action/status/tasks
Find the process id and then clear it
https://<vmanage-ip>/dataservice/device/action/status/tasks/clean?processId=<Process-id>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2020 07:33 PM
This didn't work for me - I have no processes running but still get the msg?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2020 11:28 PM
Not for me either. I have vManage verion 18.4.4 and have no task running but still get the message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 10:51 PM
Yeah I gave up,b just copied the locked feature templates and moved the device templates over to the new ones and trashed the old ones.
Have hit this in production as well as lab so I think there's some niche scenario with your browser and not logging out properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 11:18 PM
Hi Johann Lo,
When template gets locked, then in this case you just have to logged out from vManage and login again or you can wait for 60 second to expire the session.
There is nothing you can do about it. I have faced many time with the same issue.
Rohit Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 11:09 PM
This worked for me.
Thanks a lot for sharing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2020 05:29 AM
You can either wait for the session to expire or just logged out from vmanage and refresh the web url and login again. It will automatically clear the session. I have faced many time with the template locked issue. By default timer is 60 second.
If this post has answered your query, please mark as a solve and hit helpful button.
Regards,
Rohit Raj
Rohit Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2020 11:48 PM
This time waiting for 60 seconds doesn't help. Rebooting the vManage doesn't help either. It is still locked. Someting weird is going on in vManage in general. Loading feature template page takes ages. I opened TAC case about this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 07:23 PM - edited 10-08-2020 07:27 PM
Hi ,
Has TAC Reverted on this on how to remove the Lock ?
Rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2020 07:20 AM
You may need a TAC case. But can check the possible reason by following below steps
Step 1 : Login to vManage
Step 2 : Go to https://vManage_IP/logsettings.html
Step 3 : Enable viptela.enable.query.builder.log
Step 4 : Recreate the issue
Step 5 : Check logs in vmanage-server.log
If you see similar to below logs, then get TAC's assistance to clear the lock
21-Apr-2019 06:08:29,309 UTC INFO [EMSUROVMA1] [Neo4JDBQueryBuilder] (default task-505) |default| Executing builtQuery :MATCH (n:vmanagedbTEMPLATELOCKNODE) WHERE (n.`templateId` in ['7332ae09-c00e-4038-9197-ee2609a0f0c3']) RETURN n._rid as _rid, id(n) as _id, n.`userSessionUserName` as `userSessionUserName` ,n.`startTime` as `startTime` , calledBy : com.viptela.vmanage.server.deviceconfig.template.lock.DeviceTemplateLock.isTemplateLocked:75 21-Apr-2019 06:08:29,312 UTC INFO [EMSUROVMA1] [DeviceTemplateLock] (default task-505) |default| Template lock is present for templateId:7332ae09-c00e-4038-9197-ee2609a0f0c3 21-Apr-2019 06:08:29,312 UTC ERROR [EMSUROVMA1] [RestfulDefaultExceptionMapper] (default task-505) |default| Exception while processing request : com.viptela.vmanage.server.deviceconfig.template.TemplateException: Template is locked by user:afaragya since:2019-04-21 04:31:28,172 21-Apr-2019 06:08:29,306 UTC INFO [EMSUROVMA1] [Neo4JDBQueryBuilder] (default task-505) |default| Executing builtQuery :MATCH (n:vmanagedbTEMPLATELOCKNODE) WHERE (n.`sessionId` = '136QKqtWTU3_upOV3NvzqWwiRbqhKpIM3Jbd1MnT') RETURN n, id(n) as _id, calledBy : com.viptela.vmanage.server.deviceconfig.template.lock.TemplateLock.isUserAlreadyEditing:153
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2020 09:07 PM
Hi Hasham,
Thanks for your response . Is there any way to remove the Lock or some doc for the same ? I have done a temporary Workaround but wanted to know the solution on how to unlock/release a Locked Template as will be very useful in Production Scenarios. Currently i do not have TAC access so unable to raise a Case. Any help will be appreciated . Thanks.
Rgds,
Saji Samuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2022 07:45 AM
I found a workaround for this. If your template is locked in edit mode while editing as the user xxxx, log out user xxxx and log in using admin and try to edit. Then vManage allows you to edit.
