XTension Beta 9.4.28 and database folder location problem!

Philippe SCHMUCK philippe-schmuck at orange.fr
Sat Feb 22 05:38:09 EST 2020


Hi James,

I’m on Mojave 10.14.6 for several months.
I tried to upgrade from 9.4.27 to 9.4.28 with no luck.
The 9.4.28 did not find my Database which is, as I always had, here: /Applications/Domestique/Domotique/X4X/XTension\ Database.xtdatabase

I can see in the log window that XTension is trying to create the database in a completely different folder now:

22 Feb 2020 11:28:14  XTension v9.4.28 (build:1017) Starting Up...
22 Feb 2020 11:28:15  Creating database at: /private/var/folders/tm/9c_66vq94bd50npsssw3wkf00000gn/T/AppTranslocation/CCC9E70B\-5F94\-4254\-9186\-12227D7059FE/d/XTension\ Database.xtdatabase
22 Feb 2020 11:28:15  unable to hide the extension for file at: /private/var/folders/tm/9c_66vq94bd50npsssw3wkf00000gn/T/AppTranslocation/CCC9E70B\-5F94\-4254\-9186\-12227D7059FE/d/XTension\ Database.xtdatabase
22 Feb 2020 11:28:15  app nap and system sleep are disabled
22 Feb 2020 11:28:15  error: IOException: startup error: 038
22 Feb 2020 11:28:15  RuntimeRaiseException
22 Feb 2020 11:28:15  BinaryStream.!Create%o<BinaryStream>%o<FolderItem>b
22 Feb 2020 11:28:15  CApplication.delayedStartup%%o<CApplication>o<Timer>
22 Feb 2020 11:28:15  CApplication.Event_Open%%o<CApplication>
22 Feb 2020 11:28:15  _Z29CocoaFinishApplicationStartupv
22 Feb 2020 11:28:15  XojoFramework$4687
22 Feb 2020 11:28:15  -[NSApplication _doOpenFile:ok:tryTemp:]
22 Feb 2020 11:28:15  -[NSApplication finishLaunching]
22 Feb 2020 11:28:15  -[NSApplication run]
22 Feb 2020 11:28:15  RuntimeRun
22 Feb 2020 11:28:15  REALbasic._RuntimeRun
22 Feb 2020 11:28:15  _Main
22 Feb 2020 11:28:15  main
22 Feb 2020 11:28:15  error: IOException: Attachments: unable to save script to file: /private/var/folders/tm/9c_66vq94bd50npsssw3wkf00000gn/T/AppTranslocation/CCC9E70B\-5F94\-4254\-9186\-12227D7059FE/d/XTension\ Database.xtdatabase/Attachments/Attachments
22 Feb 2020 11:28:15  RuntimeRaiseException
22 Feb 2020 11:28:15  BinaryStream.!Create%o<BinaryStream>%o<FolderItem>b
22 Feb 2020 11:28:15  OSAScript.Save%b%o<OSAScript>b
22 Feb 2020 11:28:15  AppleScriptSupportModule.LoadAttachmentScript
22 Feb 2020 11:28:15  CApplication.delayedStartup%%o<CApplication>o<Timer>
22 Feb 2020 11:28:15  CApplication.Event_Open%%o<CApplication>
22 Feb 2020 11:28:15  _Z29CocoaFinishApplicationStartupv
22 Feb 2020 11:28:15  XojoFramework$4687
22 Feb 2020 11:28:15  -[NSApplication _doOpenFile:ok:tryTemp:]
22 Feb 2020 11:28:15  -[NSApplication finishLaunching]
22 Feb 2020 11:28:15  -[NSApplication run]
22 Feb 2020 11:28:15  RuntimeRun
22 Feb 2020 11:28:15  REALbasic._RuntimeRun
22 Feb 2020 11:28:15  _Main
22 Feb 2020 11:28:15  main
22 Feb 2020 11:28:15  error: IOException: error loading Attachment script

Any idea?

Philippe


> Le 19 févr. 2020 à 19:16, James Sentman <james at sentman.com> a écrit :
> 
> Hello My Friends!
> 
> I’ve spent some time futzing with the bugs Amazon added to their Alexa implementation back in October and I believe I have a couple of potential fixes for everyone.
> 
> The simplest fix is the one that most other HA systems are recommending. If you get yourself a gen 1 echo device off ebay or whever, it’s too old to accept the firmware that breaks every home automation plugin system out there and will continue to work with the plugin the way that it is. Make sure to only do your discovery of new devices through this older echo and then any newer echo will go through that to reach them and they will keep working.
> 
> The second fix is in the new beta version of XTension that i’ve just posted. This is a version of the Alexa plugin that can actually listen on port 80 and therefore work around the problems they introduced with this new firmware. This requires some mucking about with the command line and setting up the user that you run XTension as to be able to run the Alexa plugin as root otherwise OSX will not allow it to listen on those lower ports. It also requires that you not need anything else or any other regular web server running on port 80. I’m running that version now on my own system and it’s working again! I am beside myself with joy over that ;) Instructions for setting it up are on the wiki here:
> 
> http://machomeautomation.com/doku.php/supported_hardware/alexasudo
> 
> If that is not to your liking, or you need port 80 for other web services then you will be happy to hear of yet another solution. I have the plugin code running on a raspberry pi that you can use to talk to XTension as long as the 2 are on the same internal network. I do not have a release of this code yet as it needs some cleanup and removal of lots of debug logging as well as instructions to make it run automatically on the raspberry pi. If you need port 80 on your XTension server for other things, or if you simply don’t want to run the Alexa plugin as root then this is the solution for you. This will happily run on even the oldest Pi’s out there or a $10 Raspberry Pi Zero. If you need this solution drop me a note and I’ll send you links to the files as soon as I’ve finalized them.
> 
> This XTension version also contains the most recent fixes for the xBee, Philips Hue and TPLink plugins. All still contain LOTS of debug logging as well as the above plugins for Alexa. I have not removed it all just in case people have difficulties so it will properly collect the info I need to fix it. So please excuse the spamming of the logs in each case. As long as things are working to your satisfaction you do not need to report anything that might look like an error. Especially with the TP link plugin it logs a lot of things that look like errors but really are not. This also has the fix for the unit icon selection window now presenting the files in alphabetical order, some various minor UI glitches fixed, and a new “server events” plugin that will be able to update units based on data that might come to you from an http server events stream. There exists so far no documentation for that but if it’s something that sounds interesting to you drop me a note and I’ll get that finished sooner rather than later.
> 
> The beta version makes no changes to database layout or anything else so if you do have new problems with it you can return to a previous build just by replacing the program, you do not need to revert to an earlier database version or any such gymnastics.
> 
> 
> https://MacHomeAutomation.com/files/xtension/xtension_9.4.28b2.zip
> 
> 
> Thanks,
> James
> 
> 
> James Sentman                       http://www.PlanetaryGear.org		http://MacHomeAutomation.com
> 
> 
> 
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist



More information about the XTensionList mailing list