[Ubuntu Server 18.04] Config Web-UI does not save to config file
New issue I stumbled upon: I have gotten everything setup and working (using MyHarmony instead of the mobile app). However, I can't save any webhooks I enter into the web interface on port 8060. I have manually been able to get it to work by editing the config-file by hand instead. It is a pain when using ssh however.
The issue manifests itself like this: When I have entered the name, and the URL, I then hit "Submit Settings". A small popup window appear, but it is so small I cant see what it tries to show me. It then disappears within a second as well.
I have manually given the config file a 777 chmod just to make sure it has nothing to do with permissions. Well, at least that is how I have understood how it works. I assume the web server can write to everything that I have given a 777 treatment.
Sidenote: In the web-UI I can't see "New Integration" in the name field of any of the buttons, and I cant see "Localhost" in the other field either. By looking at the config file I assume that is how it is supposed to look like, but it does not.
I have tried using the latest Chrome on both Mac and PC, and I have also tried Safari on the Mac. No dice.
Thank you for opening this issue!
Very interesting, I'll look into this.
Thanks again for opening this issue.
Sadly I haven't been able to reproduce this problem on my machine - what folder are you running HarmonySpan from? Do you have full read and write permissions in that directory? Worst-case scenario you can run it as root to see what happens.
I have tried from both /usr/local/bin/ and from my home directory. And I have tried both using sudo and using my user. And I have tried chmoding the Harmony Span folder to 775, and all the files to 777 (just for the heck of it). Still no dice. So running as root still does not help. I also restarted the nginx web server (but I suspect you are not utilizing my web server as I can'¨t see anything logged in the log-file).
Lets hope someone sees this and can figure it out.
Would be awesome if it could be run with some heavier logging to see what happens (if you find time that is).
Hello, I am having the same issue. The web ui is not saving any on my config I submit.
I have exactly the same problem with the small white window.
Tested on Windows and it worked well, want to use on Linux but was having same problem.
I noticed the config.html is hardcoded to localhost, I was accessing remotely on a headless server: function updateValues() { getJSON("http://localhost:8060/config/config.json", function(err, data) { document.getElementById("webhookname").value = data.Buttons[document.getElementById("buttons").selectedIndex].label; document.getElementById("webhookurl").value = data.Buttons[document.getElementById("buttons").selectedIndex].url; document.getElementById("webhookheader").value = data.Buttons[document.getElementById("buttons").selectedIndex].header; document.getElementById("webhookcontent").value = data.Buttons[document.getElementById("buttons").selectedIndex].query; document.getElementById("requesttypes").value = data.Buttons[document.getElementById("buttons").selectedIndex].requesttype; }) }
Using Remote X Firefox reading and writing the json worked fine.
I manually edited config.json and everything also looked good, however, even though std out shows proper capture as well as the updated Integration Name in config.json, the URL didnt seem to fire. Testing the same webhook call using CURL on same system worked fine though.
Attempted strace on binary and see several "interesting" bits, but didn't find anything particularly useful. Using tcpdump comparing the curl and span calls I found curl was doing a GET and span was doing a POST causing HTTP/1.1 405 Method Not Allowed.
I found in the Advanced setting (or editing the config.json I could change to GET method and it works great now.
This should be fixed now.