Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[BUG] [API] Double script execution... again...

1426073403

Edited 1426073639
As the subject says, I logged on to my scripts campaign on the dev server and it had the following error. Tried to run a powercard macro, nothing in chat. Saved the script and now it is activating the script twice. Only two scripts on the campaign and one is disabled. events.js:72 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE at errnoException (net.js:904:11) at Server._listen2 (net.js:1023:19) at listen (net.js:1064:10) at Server.listen (net.js:1132:5) at Sandbox.start (/home/symbly/www/d20-api-server/sandcastle/lib/sandbox.js:35:15) at Object.<anonymous> (/home/symbly/www/d20-api-server/sandcastle/bin/sandcastle.js:11:9) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)
1427536572

Edited 1427536687
I'm getting the same traceback on the production server. I wonder if this is a legit port conflict or just a socket in need of SO_REUSEADDR. Edit: Actually, in light of HB's double-execution symptom, I'll place my bet on the former.
manveti said: I'm getting the same traceback on the production server. I wonder if this is a legit port conflict or just a socket in need of SO_REUSEADDR. Edit: Actually, in light of HB's double-execution symptom, I'll place my bet on the former. I thought we had this problem solved...are you seeing it on a regular basis or just occassionally?
Was reproducing 100% in my one active campaign from Friday until a moment ago, when I re-saved my scripts to try to restart the sandbox. The result was the double-execution mentioned above. However, the same scripts are working as expected in another campaign (one which never exhibited the EADDRINUSE problem, although I hadn't been on it in a few weeks and hadn't done any API stuff on it for a few months). I'm not sure if it's related, but the "Disable Script" button no longer seems to function for either of the campaigns (the only apparent result of clicking it is a page reload), although the "Enable Script" button does work as expected. Campaign exhibiting double-execution: <a href="https://app.roll20.net/campaigns/details/415911" rel="nofollow">https://app.roll20.net/campaigns/details/415911</a> Campaign exhibiting normal execution: <a href="https://app.roll20.net/campaigns/details/543881" rel="nofollow">https://app.roll20.net/campaigns/details/543881</a>
1427988213
Natha
KS Backer
Sheet Author
API Scripter
I had occasionnal "double execution" symptoms lately. I just have to resave the script/relaunch the sandbox to make it disapeear. But it's there sometimes.