Anyone using node-red-contrib-tts-ultimate inside a docker container?
I have assigned ports 1400 and 1980 to the docker container but I still get the error
"Sonos down ECONNREFUSED:1400".
Any hint?
thanks!
Anyone using node-red-contrib-tts-ultimate inside a docker container?
I have assigned ports 1400 and 1980 to the docker container but I still get the error
"Sonos down ECONNREFUSED:1400".
Any hint?
thanks!
Hi.I am using node-red inside docker container in synology DS920+ and sonos is connected but I can see always some meassages in Sonos app as you can see in below pictures.
Default Host port 1980 in ttsultimate-config node should be port of node-red becasue I have nodered running on port 6335 please?
Thanks for any help...
Hey! What kind of networking are you using?
I didn't get it working inside a docker with forwarded ports as it seems to require Multicast as well which you cannot easily forward into the container.
So I changed my container to use host networking and now it works.
Helo jaeti01. Thanks for reply and help!
As you can see in attached picture in nodered is Bridge and same in Docker is Bridge.
These both I have to change to host or? How to change please?
Manty thanks for each help
Sorry, I don't know anything about that UI.
I run mine on commandline:
docker run \
-dit --restart unless-stopped \
-v /var/lib/nodered:/data \
--network host \
--name nodered nodered/node-red
I am lost in comandline
So I have to change to host in docker and also in nodered ?
Or if I change in docker it will automaticaly change in nodered?
Any idea how to do it please?
Thanks a lot
It’s a pure docker config thing. Nothing needs to be done on nodered side for that change.
Ok Thanks. So I have to change only in docker side. Do you have any idea how to do it please?
re-create the container with a different network type
I'm running TTS-Ultimate and Node-Red in docker and it works fine. The network mode is HOST and the used port is 1880 (Defined in Docker-setup)
I had a similar problem as you have, but mine was access related. I had to setup the shared folder in Node-Red settings.js
// By default, all user data is stored in a directory called `.node-red` under
// the user's home directory. To use a different location, the following
// property can be used
userDir: '/data',
The same directory I use in my flow and point the TTS directory to it
The easiest way is to check is to access your "Hailing_VintageSpace.mp3" via a browser. Only if you can play the file via the browser than it will work with TTS-Ultimate.
Just a few more comments:
I hope this helps a bit
Finally I reinstal nodered and have to setup in advanced settings during instalation : use same network as host and it is working and nodered run as host network.
Before reinstal I was able to see all TTS mp3 files in shared folder docker in folder nodered as you can see:
Please check you log details when node-red is starting .. the log details will tell you where the user-data folder is located.
the folder of "sonospollyttsstorage" should be located within your user-data folder
Thanks a lot xx_Nexus_xx for help!
I have stoped nodered and start and I suppose you mean log as terminal in docker and I can see this:
You can see in your log-file
in my docker setup I have mounted the /data directory to a qnap share drive... but you have to check how that works with your docker and Synology.
independant to your file location .. you should be able to access your files via the browser
BUT .. it is saying that your TTS endpoint is http://192.168.1.219:1980/tts ... try this in your browser .. you should be able to copy mp3 files there (/data/sonospolyttsstorage) and play via browser
Comment:
your log file is showing that you have not defined a TTS service
Thanks xx_Nexus_xx for help!
How I can check /var/lib/nodered ?
Problem is I didnt mapped anything I just did instalation and looks like it did automatically somehow during instalation but I have no idea where all folders and files are ?
I cant see any folder or anything in filestation in synology where it should be:
Maybe this is telling something (nodered detailed information in docker)
Yes, as per the log info it should be setup properly ... but I don't know where your /data folder is .. all conte nt should be in there.
How did you generate your docker ... there must be the volume definition for /data .... on command line it is done with the -v parameter
docker run
-dit --restart unless-stopped
*-v /YOUR_DATA_FOLDER /data *
--network host
--name nodered nodered/node-red
The path you are showing in you screenshots are the Node-Red path and location but does not show where the /data path or volume is ... there must be a section in your docker config where you can configure the volumes .. sorry your UI is not English/German so I cannot read the details
Exactly all content should be there but there is nothing...
I have change language of my synology to English for you to understand
If you asking how I genarate docker, I have instaled in synology package center just download and thats all...no setup option is there for instalation as you can see in below picture:
But it was also bridge network after instalation so I have to delete it and install again from downloaded image to setup host network in advanced configuration during instalation.
I am not familiar with command line
Here is my docker and nodered in English but looks like there is no option to configure volume even if nodered is off:
So as you can see I have change and instaled many times so maybe it is good option to uninstall all and install again from the begining.What do you think?
Do I need to also uninstal docker in synology and start instalation again from docker or only uninstal all nodered versions I have and reinstal nodered only?
More info interesting...I have found how to edit nodered.
If I start nodered in configuration WITHOUT volume (no defined folder and path for data):
If I start nodered in configuration WITH volume (Defined folder docker/nodered/data and path /data):
There are some errors so maybe you can see there something to help me Thanks a lot
The error says that is doesn't have the permission to copy the settings.js to /data/settings.js
.
I see that you have mounted your docker/nodered/data
folder to /data
.
So I am guessing that docker/nodered/data
folder already has a settings.js file and node-red container user doesn't have permissions to overwrite this settings.js file.
So I suggest that you move the file docker/nodered/data/settings.js
to another location and restart the container.