Unable to Save New Piston


#8

Interesting, yep that code looks correct. So to make sure we’re on the same page, this is the test

  1. Create a new blank piston with a unique name (e.g. Broken Piston #1)
  2. When the editor opens, save the piston without making any changes
  3. Save fails

And the result of that test on the smartapps page:

  • Broken Piston #1 exists and has values for author, bin, and chunk:0 but not modifiedVersion or piston
  • Broken Piston #1 does not appear in Live Logging or does appear but logs nothing

Is all of that accurate?


#9

All correct except the last bullet. After attempting the save in the editor I get the message in live logging mentioned in post #1 above. I am not getting anything for the new debug lines. By the latter I mean nothing appears in Live Logging for those lines at all (versus debug lines present with no info).


#10

Perfect! Thanks for confirming. Unfortunately there is nothing more that I can do, but tomorrow I will try to get someone from SmartThings to take a look at your account to see if we can get more info on that error. Would you please PM me your ST username (account.smartthings.com > click your email in the upper right > Copy Username line beginning user_uuid:)?


#11

No worries. I do appreciate you trying to debug this with me this far.

PM coming.

Thanks


#12

If anyone else has this problem please post a reply and tag @ipaterson. @Nezmo was able to resolve the issue but I need to know if this affects anyone else.


#13

@ipaterson I currently am experiencing an issue with saving new and existing pistons and resuming paused pistons. I have done the following:

  • Rebooted my PC
  • Cleanup & Rebuild - success
  • Attempted to create a piston to resume one of the paused pistons - failure (could not save)
  • went to account.smartthings.com and went to my smart apps, all of my pistons have an author, but most have a bin value of “”.

Notes:

  • Pistons that are active continue to run.
  • v.0.3.113 (Latest)
  • This appears to have started 4 days ago, I found two pistons that were stuck and not reacting to new triggers. When I went to my dashboard, they appeared to have a clock indicating 4 days and growing so I assumed that was saying how long the piston had run for.

#14

Do you see any errors at account.smartthings.com > Live Logging when you try to create or resume a piston?


#15

@ipaterson If there is a cleaner way to present this please let me know, I saved a piston and here’s the output of the live logs

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:16 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:19 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:16 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:17 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[22f37ed3-e945-461d-9d9c-e088a4733c41](https://graph.api.smartthings.com/ide/logs#22f37ed3-e945-461d-9d9c-e088a4733c41) 1:50:23 PM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 282206873277781 @line -1 (error)

[e18f025d-5b86-4c1c-bbb6-166ae76b04a7](https://graph.api.smartthings.com/ide/logs#e18f025d-5b86-4c1c-bbb6-166ae76b04a7) 1:50:20 PM: debug healthPoll()

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:18 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:18 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:17 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:17 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:14 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:12 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:13 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:12 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[73615e5c-c78a-4ec9-96a1-d8253ea7407a](https://graph.api.smartthings.com/ide/logs#73615e5c-c78a-4ec9-96a1-d8253ea7407a) 1:50:19 PM: info ╔ Event processed successfully (10259ms)

[73615e5c-c78a-4ec9-96a1-d8253ea7407a](https://graph.api.smartthings.com/ide/logs#73615e5c-c78a-4ec9-96a1-d8253ea7407a) 1:50:19 PM: info ║ Setting up scheduled job for Sat, Feb 13 2021 @ 12:54:18 PM PST (in 1s), with 1 more job pending

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:13 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[73615e5c-c78a-4ec9-96a1-d8253ea7407a](https://graph.api.smartthings.com/ide/logs#73615e5c-c78a-4ec9-96a1-d8253ea7407a) 1:50:19 PM: warn ║ Piston waited at a semaphore for 10125ms

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:18 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:18 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:16 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:13 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:12 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:10 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:19 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:17 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:09 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:09 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[73615e5c-c78a-4ec9-96a1-d8253ea7407a](https://graph.api.smartthings.com/ide/logs#73615e5c-c78a-4ec9-96a1-d8253ea7407a) 1:50:19 PM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 282203818661961 @line -1 (error)

[73615e5c-c78a-4ec9-96a1-d8253ea7407a](https://graph.api.smartthings.com/ide/logs#73615e5c-c78a-4ec9-96a1-d8253ea7407a) 1:49:59 PM: info ╚ Received event [Home].time/recovery = 1613252999094 with a delay of 1ms

[2f93604f-75fc-4695-82f0-db49f767b3e4](https://graph.api.smartthings.com/ide/logs#2f93604f-75fc-4695-82f0-db49f767b3e4) 1:50:19 PM: info ╔ Event processed successfully (1708ms)

[2f93604f-75fc-4695-82f0-db49f767b3e4](https://graph.api.smartthings.com/ide/logs#2f93604f-75fc-4695-82f0-db49f767b3e4) 1:50:19 PM: info ║ Setting up scheduled job for Sat, Feb 13 2021 @ 1:54:47 PM PST (in 268s)

[2f93604f-75fc-4695-82f0-db49f767b3e4](https://graph.api.smartthings.com/ide/logs#2f93604f-75fc-4695-82f0-db49f767b3e4) 1:50:17 PM: info ╚ Received event [Hall Motion].motion = active with a delay of 80ms

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:16 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:15 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:12 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:11 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:10 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:14 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:12 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:50:11 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[1ac0dbff-3ae9-4af6-8bae-842aba16ca24](https://graph.api.smartthings.com/ide/logs#1ac0dbff-3ae9-4af6-8bae-842aba16ca24) 1:50:17 PM: info ╔ Event processed successfully (250ms)

[1ac0dbff-3ae9-4af6-8bae-842aba16ca24](https://graph.api.smartthings.com/ide/logs#1ac0dbff-3ae9-4af6-8bae-842aba16ca24) 1:50:17 PM: trace ║╔ Execution stage complete. (115ms)

[1ac0dbff-3ae9-4af6-8bae-842aba16ca24](https://graph.api.smartthings.com/ide/logs#1ac0dbff-3ae9-4af6-8bae-842aba16ca24) 1:50:17 PM: trace ║║ Executed [Hallway Lights].setLevel (34ms)

[1ac0dbff-3ae9-4af6-8bae-842aba16ca24](https://graph.api.smartthings.com/ide/logs#1ac0dbff-3ae9-4af6-8bae-842aba16ca24) 1:50:17 PM: trace ║╚ Execution stage started

[1ac0dbff-3ae9-4af6-8bae-842aba16ca24](https://graph.api.smartthings.com/ide/logs#1ac0dbff-3ae9-4af6-8bae-842aba16ca24) 1:50:17 PM: trace ║ Runtime (46604 bytes) successfully initialized in 32ms (v0.3.113.20210203) (125ms)

[1ac0dbff-3ae9-4af6-8bae-842aba16ca24](https://graph.api.smartthings.com/ide/logs#1ac0dbff-3ae9-4af6-8bae-842aba16ca24) 1:50:17 PM: info ╚ Received event [Hall Motion].motion = active with a delay of 107ms

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:49:54 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[5a4b0163-a190-45b8-b75d-0c60a429b8f0](https://graph.api.smartthings.com/ide/logs#5a4b0163-a190-45b8-b75d-0c60a429b8f0) 1:49:54 PM: info smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=77220537-36ac-4025-96c6-aa5baba263fe

[ce114cb5-3911-42be-b16e-f9f2190d319e](https://graph.api.smartthings.com/ide/logs#ce114cb5-3911-42be-b16e-f9f2190d319e) 1:50:17 PM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 282200812849228 @line -1 (error)

[ce114cb5-3911-42be-b16e-f9f2190d319e](https://graph.api.smartthings.com/ide/logs#ce114cb5-3911-42be-b16e-f9f2190d319e) 1:49:57 PM: warn ║ Piston waited at a semaphore for 252ms

#16

Experiencing this exact same problem

The inability to save pistons after edit issue just started happening to my instance of webcore. The piston I’m trying to say if 2 chucks big. I tried the following

  1. Clean up and rebuild data cache
  2. Restarted hub
  3. Tried browser in incognito mode (to make sure no browser addons were impacting webcore)
  4. Removed some devices for webcore as this just started happening after I added a light strip
  5. Updated webcore to the latest version

Live logging:
smartapp_pause called by smartAppName=webCoRE, value=250, smartAppVersionId=e1c8ae07-4041-4db1-ad33-cf88bfd24d69
keeps repeating multiple times in a row

and

java.lang.reflect.UndeclaredThrowableException @line 1166 (api_intf_dashboard_piston_set_save)

error is being displayed.

@ipaterson @Nezmo

Any assistance is greatly appreciated


#17

Out of curiosity, what version were you using when this was first noticed?


#18

Would you please try rolling back to the previous webCoRE release (v0.3.110.20191009)? You can grab the code for each of the four smart apps here just click “Raw” to get an easy-to-copy version of each file.

Rolling back fixed the timeout problem for Nezmo. There are too many changes in the latest release to guess what might be causing this, but if anyone who has been affected wants to help debug I might have time in a few weeks to experiment.


Save piston after editing stays at editing
#19

Rolling back to v0.3.110.20191009 resolved the issue so thank you for the recommendation!

Also, is there a way I can see my manual update history so I can provide you with the version where this possibly started?


#20

Not that I can think of, but if the last time you updated was this year then we can be pretty sure it was something in 0.3.111 since the follow up releases were minor.


#21

@ipaterson rolling back to v0.3.110.20191009 resolved the issue for me as well!

I can resume pistons again and confirm they are running.


#22

I have had problems with cache on all types a browsers. and also the save thing. I get to the point to where I cannot even edit a piston even if I totally clear cache in Hubitat


#23

@ipaterson, I confirm that identical behaviour to @SystemPwr’s was solved by reverting to webCoRE release (v0.3.110.20191009).


#26

@ipaterson updated smartapp and was unable to save any pistons and pistons that were paused would not resume after updating. Prior to update, all pistons were working. reverted to older version and all is working again.


#27

Hi @ipaterson,

I have been suffering from piston saves and resumes (after pausing them) for the past few days - let’s say a week or so. Prior to that, everything was running normally. However, during the last week, I have a few unexplained things (some virtual switch states changing, some boolean Global Variable states not seeming to work well, etc.). But by far the most annoying is that to save I have to pause a piston, an then resuming takes many, many attempts, and it seems to be getting worse.

So - I am pretty new to WebCoRE, and have used it only for several weeks now… I was thinking I might have hit a ceiling, reached a limit or something, but thankfully I found this thread. However, my error seems a little different to the one quoted in this thread, and is as follows:

8:14:42 AM: error java.lang.reflect.UndeclaredThrowableException @line 1308 (api_intf_dashboard_piston_resume)

Now I know there is nothing wrong with these pistons, because after many attempts, the same piston with th same code will actually resume.

So - should I try to revert to older version, and how do I go about that please?


#28

@martin.borg I know I’m not the person you addressed this too but I had all the same issues and rolling back fixed 95% of my issues.

rolling back to the previous webCoRE release (v0.3.110.20191009)? You can grab the code for each of the four smart apps here

You’ll need to replace the code in all 4 DTH/Samrtapp. Open the raw code from github and copy. In the IDE, open the DTH/Smartapp and paste in the copied code.
Hope this helps.


#29

I’m using Hubitat, and I’ve had this problem with a few pistons (not all), for a few weeks. They range in size from big to small (though they tend to be my Life360 pistons). Can I use this same code to roll back to?