Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27065] Single run generates different processes that throw the "Address in use, retrying..."

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-09-24T17:00:44.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsliveview
ReporterAlberto Marcone
AssigneeAlan Hutton
Created2019-05-06T14:50:16.000+0000
Updated2019-09-24T17:00:44.000+0000

Description

if I try to run the following command:
appc run --platform ios --target simulator --log-level info --liveview --project-dir myProject --device-id deviceid
I have different processes
amarcone         55965   8,4  0,2  4947528  25708   ??  Ss    4:47pm   0:01.84 /usr/local/bin/node /Applications/AppceleratorStudio.app/Contents/Eclipse/plugins/com.appcelerator.titanium.liveview.core_1.1.0.201806130730/node_modules/liveview/bin/liveview-server start --project-dir myProject --platform ios
amarcone         55901   4,4  0,5  5208888  84464 s011  S+    4:46pm   0:23.00 /usr/local/bin/node /Users/amarcone/.appcelerator/install/7.0.11-1/package/node_modules/titanium/lib/titanium.js build --sdk 8.1.0.v20190501103405 --no-banner --liveview --config-file /var/folders/hq/km1drj0141v1bf195s13yq740000gp/T/build-1557153990748.json --platform iphone --project-dir myProject --log-level info --device-id BB117487-173D-426B-AC20-4D9AA751700B --target simulator --no-banner
amarcone         55869   0,0  0,3  5040268  53424 s011  S+    4:46pm   0:02.91 /usr/local/bin/node /Users/amarcone/.appcelerator/install/7.0.11-1/package/bin/appc run --platform ios --target simulator --log-level info --liveview --project-dir myProject --device-id BB117487-173D-426B-AC20-4D9AA751700B
amarcone         55868   0,0  0,1  4911000  15784 s011  S+    4:46pm   0:00.27 node /usr/local/bin/appc run --platform ios --target simulator --log-level info --liveview --project-dir myProject --device-id BB117487-173D-426B-AC20-4D9AA751700B
therefore I get the spamming log:
[INFO]  Finished building the application in 27s 876ms
[LiveView] version 1.5.0
[LiveView] Alloy project monitor started
[INFO]  Launching iOS Simulator
[LiveView] File Server Started on 0.0.0.0:8324
[LiveView] Event Server Started on 0.0.0.0:8323
 [LiveView]  version 1.2.2
 [LiveView]  Alloy project monitor started
Address in use, retrying...
Address in use, retrying...
Address in use, retrying...
Address in use, retrying...
Address in use, retrying...
Address in use, retrying...
Address in use, retrying...
Address in use, retrying...
Address in use, retrying...
Address in use, retrying...
Address in use, retrying...
This started happening only lately.

Comments

  1. Sharif AbuDarda 2019-05-06

    Hello, I can verify this also in an Android device (9.0) using the 8.0.0.GA SDK. The log keeps showing the "Address in use, retrying..." but liveview works fine. [~a.marcone], did liveview works for you when you make changes to the code and save the file? Thanks.
  2. Alberto Marcone 2019-05-06

    Yes, live view works, but the console log is flooded by those messages and it’s unusable.
  3. Alberto Marcone 2019-05-07

    This is happening on different computers with different configurations. Switching back to 7.5.x didn't make any difference. It's only been happening for the past week or so.
  4. Sharif AbuDarda 2019-05-07

    Hello, What is your studio version?
  5. Alberto Marcone 2019-05-07

    I haven’t used Studio for a while. This happens even if I simply run it from the command line.
  6. Rodolfo Perottoni 2019-05-10

    Can confirm this issue when using LiveView. Console won't stop printing "Address in use, retrying...".
  7. Sandro Lain 2019-05-10

    Hello! I confirm the presence of the problem after upgrading to SDK 8.0.0.GA, running on the iOS Simulator from Visual Studio Code with "axway.vscode-titanium" extension. Making changes, liveview executes the loading of a long list of files, and after the refresh of the app an "Invalid type passed to function" error occurs
  8. Alberto Marcone 2019-05-13

    any workaround on this? reading through the logs is unbearable, plus the app is refreshed multiple times and it crashes after a few updates.
  9. Alberto Marcone 2019-05-22

    could anyone give us an update on this ticket? *any* workaround if a solution is not on the way?
  10. Alberto Marcone 2019-06-19

    I updated everything to the latest: Appcelerator Studio version 5.1.2.201903111843 , Titanium CLI 7.0.11, Ti SDK 8.1.0. It's still giving the same error. This is driving us insane, we can't update to the latest sdk version and we're still stuck with Ti SDK 7.x. It's not only one workstation but all of the workstations in the company. It's ridiculous that we don't get an update AT ALL.
  11. Eric Merriman 2019-09-20

    Hello [~a.marcone] I'll ask the team to take at look at this one. I'll let you know if we need any additional info to reproduce.
  12. Alan Hutton 2019-09-20

    Hello [~emerriman] [~a.marcone] Looking at the log, there are two versions of liveview installed. It looks like there is a globally installed liveview that's fighting against the SDK installed liveview
        *[LiveView] version 1.5.0*
        [LiveView] Alloy project monitor started
        [INFO]  Launching iOS Simulator
        [LiveView] File Server Started on 0.0.0.0:8324
        [LiveView] Event Server Started on 0.0.0.0:8323
        * [LiveView]  version 1.2.2*
         [LiveView]  Alloy project monitor started
        
    Should be able to correct this issue by [sudo] npm uninstall liveview -g and then use the liveview distributed in the SDK as of 8.0.0.GA. Please let me know if this solves your issue.
  13. Alberto Marcone 2019-09-24

    thank you, this shed light on what was going on.. It wasn't a global package, but I looked for all the /bin/liveview and removed them. Now it looks like it's working! thank you!

JSON Source