**** BEGIN LOGGING AT Fri Jan 08 02:59:57 2021 Jan 08 14:08:41 good morning webOS fans! what's new in the world of webOS? Jan 08 14:41:15 well I have some news Jan 08 14:41:50 the excellent Apollo Pandora Client apps for Pre2, Veer and Pre3 have been recovered, thanks to the original author. They're listed in Pre ware, but the links are dead. Jan 08 14:42:00 I have them available in App Museum II now! Jan 08 14:42:38 Would love it if someone outside the US who is using the Proxy service could confirm if they work internationally, since the Proxy routes all traffic through a MS data center in the US Jan 08 16:14:48 hey nomad84 I'm almost ready for self-hosting, you around to discuss? Jan 08 16:15:27 nomad84: is this how I mention you? Jan 08 16:32:08 yes Jan 08 16:33:07 codepoet80: I have 30 mins, let's see if we can work with that :) Jan 08 16:36:40 so you'd need a host that can run a Docker container, and a PHP app Jan 08 16:36:59 I have a dockerhost Jan 08 16:37:05 *docker host Jan 08 16:40:32 ok, if you run alexta69/metube (both on git and docker) you'll have the base Jan 08 16:41:00 then you could pull codepoet80/metube-PHP-servicewrapper and run it on top of that Jan 08 16:41:22 nice Jan 08 16:41:30 finally, in the latest version of the MeTube you can point the client to your server Jan 08 16:46:56 ok, I've got the first container up and running, I've exposed port 8081 Jan 08 16:47:17 any specific options for your container? Jan 08 16:52:07 docker run -d --name metube-wrapper --v /home/metube:/play --user 1004:1004 codepoet80/metube Jan 08 16:52:57 uid/gid will have access to /home/metube, which is the download dircetory for metube Jan 08 16:54:59 ooh, run Alex's container not mine Jan 08 16:55:10 mine was a fork, and yesterday he agreed to take my changes into the mainline Jan 08 16:55:51 ah Jan 08 16:58:00 OK, so I've got his container up and running using these parameters: docker run -d --name metube -p 8081:8081 -v /home/metube:/downloads --user 1004:1004 alexta69/metube Jan 08 16:58:25 wow, awesome Jan 08 16:58:26 I can access it with my browser Jan 08 16:58:43 if you can get the PHP layer running on top of it, you'll be done Jan 08 16:58:57 OK, how do I do that? Jan 08 16:59:01 sorry there's not good docs for that yet -- but everything you need to set goes in config.PHP -- and there's an example Jan 08 16:59:08 its not dockerized Jan 08 17:00:01 I see Jan 08 17:00:27 I would be more than happy to use your example if you can share it with me Jan 08 17:01:02 its in that git hub I posted above. sorry on my touchpad, can't get a direct link Jan 08 17:01:14 I'm codepoet80 on git, and the repo is metube-php-servicewrapper Jan 08 17:01:28 I found it Jan 08 17:01:57 I gotta walk my dog now before the movement control starts, I'll try that once I'm back Jan 08 17:02:04 thank you very much for your help so far! Jan 08 17:02:42 I really appreciate the work that you are doing Jan 08 20:55:54 nomad84: i updated the read me on the service wrapper with muvh more detail Jan 08 20:56:35 let me know if you get stuck anywhere so i can update the docs Jan 08 21:07:05 let me check Jan 08 21:07:48 I managed to get search working but it does not seem to download the videos zet Jan 08 21:07:54 (yet Jan 08 21:09:00 wow, that's a neat readme.md Jan 08 21:15:00 I think it is not a permission issue in my case, I've even tried both containers to be run as root without luch Jan 08 21:15:04 *luck Jan 08 21:18:28 does metube by itself get videos? Jan 08 21:18:39 just to isolate the problem Jan 08 21:19:11 yes, it works with your server Jan 08 21:19:40 sorry the docker servicd on your server Jan 08 21:19:52 can it get videos? Jan 08 21:20:02 yes, that one works too Jan 08 21:20:11 go to http://yourserver:8081 Jan 08 21:20:13 I've downloaded a 480p video and it showed up Jan 08 21:20:23 in /downloads Jan 08 21:20:25 ok...hmm Jan 08 21:20:33 docker run -d --name metube_wrapper -p 8083:80 -v /home/metube/metube-php-servicewrapper:/var/www/html -v /home/metube:/var/www/html/downloads newdeveloper/apache-php Jan 08 21:20:42 this is my apache+php container Jan 08 21:21:07 ever used postman? Jan 08 21:21:13 http://dockerhost:8083/search.php?test <-- I've tried this and it seem to return stuff too Jan 08 21:21:51 ya search requests are simple... add is a little harder to debug, hold on Jan 08 21:22:26 do you have a client id set in your config.php? Jan 08 21:24:12 no Jan 08 21:25:26 brb Jan 08 21:27:24 ok, am i back? Jan 08 21:27:31 yes Jan 08 21:27:42 postman let's you make POST requests without building a client... Jan 08 21:27:55 https://www.postman.com/downloads/ Jan 08 21:28:01 i'll show you how to debug add.php Jan 08 21:29:06 let me know when you've got postman up Jan 08 21:29:26 or i'll see if i can find a web tool to do the same thing... Jan 08 21:29:53 ya, i found one. this might be easier... Jan 08 21:29:54 https://reqbin.com/ Jan 08 21:30:51 ya, it works perfect. go to that site and fill in these fields... Jan 08 21:31:19 I've got postman Jan 08 21:31:40 ok, same deal. in Postman, do a new POST request Jan 08 21:32:04 put in the address as http://yourserver.whatever/add.php Jan 08 21:32:41 click on Body, and hit the little circle next to "raw" Jan 08 21:32:53 Then paste this into the text box below: aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g/dj03cHB4NHRVa09pdw== Jan 08 21:34:16 just a moment Jan 08 21:34:44 should look kinda like this screenshot: http://home.jonandnic.com/postman-example.png Jan 08 21:35:46 (except use your own server's address -- not mine) Jan 08 21:37:04 let me switch to my desktop Jan 08 21:43:08 OK Jan 08 21:43:25 sending request for a while... Jan 08 21:43:34 Request error:Connection timed out after 30012 milliseconds Jan 08 21:43:44 ya it should be instant Jan 08 21:44:04 what kinda desktop do you have? let's try another test Jan 08 21:44:24 OS, i mean. windows? mac? Jan 08 21:44:29 it's a windows 10, but I have an ubuntu 20.04 as well Jan 08 21:45:05 windows 10 is good Jan 08 21:45:17 start powershell and type: wget http://yourserver/add.php Jan 08 21:46:02 do you get a 200 response -- of any kind? Jan 08 21:46:20 I assume no, but it hasn't timed out yet Jan 08 21:46:32 StatusCode : 200 Jan 08 21:46:33 StatusDescription : OK Jan 08 21:46:33 Content : Request error:Connection timed out after 30010 milliseconds Jan 08 21:46:47 weird. if you do the same thing with search.php it comes back right away? Jan 08 21:47:08 yep Jan 08 21:47:10 StatusCode : 200 Jan 08 21:47:10 StatusDescription : OK Jan 08 21:47:10 Content : { Jan 08 21:47:10 "kind": "youtube#searchListResponse", Jan 08 21:47:10 "etag": "zQqDMBqFcc-NuR3j6YLClYCYUlU", Jan 08 21:47:10 "nextPageToken": "CAUQAA", Jan 08 21:47:30 ok, so its dying in the curl request from add.php to the metube docker then.. Jan 08 21:47:46 line 57, or thereabouts Jan 08 21:48:01 so the issue is not connectivity from you (the client) to the php Jan 08 21:48:10 its not between the php and internet (since you can search youtube) Jan 08 21:48:22 its between your PHP container and your MeTube container Jan 08 21:48:57 i don't know much about docker networking, but if you have them in two seperate containers, that's probably the problem... Jan 08 21:49:08 what do your config.php say for the php service? Jan 08 21:49:40 the metube_url line Jan 08 21:50:03 'metube_url' => 'http://192.168.1.5:8081', Jan 08 21:50:21 I think it works as the search goes through this as well Jan 08 21:50:31 no Jan 08 21:50:35 search goes: Jan 08 21:50:43 client > php > google Jan 08 21:50:45 ah Jan 08 21:50:45 add goes: Jan 08 21:50:52 client > php > metube > google Jan 08 21:51:13 (where metube is the alex69 docker container in this example) Jan 08 21:51:15 let me launch a shell in the container and see if I can get to this url Jan 08 21:51:22 ya Jan 08 21:51:26 alternatively Jan 08 21:52:01 bingo Jan 08 21:52:01 if you can expose the alex69 docker container to the internet, then set the config.php to point to your public Internet IP address Jan 08 21:52:34 ok, cool. i'm a total newb at Docker. I've never tried Docker container to Docker container networking before Jan 08 21:53:41 so my curl http://192.168.1.5:8081 is stuck for a good minute now :) Jan 08 21:54:33 right :) Jan 08 21:54:42 weird Jan 08 21:55:06 I have a couple of other docker instances that seem to play nice when interfacing with eachother Jan 08 21:55:38 its totally possible Jan 08 21:55:43 but i don't know how to help you Jan 08 21:56:03 you could try the suggestion -- at least temporarily -- of exposing the MeTube Docker port directly to the Internet Jan 08 21:56:21 then pointing the PHP to your Internet IP address -- instead of a local IP address Jan 08 22:00:17 I can't really expose anything to the public internet from that network but I'll try something else and let you know if it worked Jan 08 22:00:50 understood Jan 08 22:01:11 you can probably test the other functions Jan 08 22:01:41 list.php and play.php don't interact with the MeTube container... it would be hard to test with the webOS client, but you could use Postman to make sure they work Jan 08 22:02:41 hey, i gotta run. its date night, taking the wifey out for dinner. let me know if you make any progress. Jan 08 22:03:02 i have a docker book i've been meaning to read, i'll try to learn about container-to-container networking at some point too, try see if i can help better Jan 08 22:03:19 i'd love to dockerize the php service, but i lack the skillz Jan 08 22:07:45 OK Jan 08 22:08:14 I've got the postman request to return {"status": "ok"} Jan 08 22:08:47 I've changed the config.php to use the docker bridge IP address (internal address) of the metube container **** ENDING LOGGING AT Sat Jan 09 02:59:57 2021