[18:24:25] &ip 99.55.234 [18:24:25] Unknown error: invalid query [18:24:35] &ip 99.1.344 [18:24:35] Unknown error: invalid query [18:24:46] &ip 99.553.125.67 [18:24:47] Unknown error: invalid query [21:38:23] are you done setting my bot up or no? tom29739 [21:38:33] Not yet :( [21:39:19] My workload has increased loads in the past couple weeks, so I can't dedicate as much time as I'd like to interesting stuff like the bot. [21:39:29] ack [21:39:53] no rush what geolocator do you use on piaget2 the default or did you config your own one? [21:44:31] I coded my own. [21:44:48] You can see it on piagetbot's repo. [21:45:13] tom29739 weird then is it grabbing data via https or something that is protected by ssl? [21:45:47] It was suggested to me by someone that I use HTTPS for everything. [21:46:04] tom29739 hmmm the error its giving me is an ssl (https) error [21:46:15] At the time the WMF was clamping down on those accessing the APIs through HTTP. [21:46:21] "/data/project/piagetbot/sopelvenv1/local/lib/python2.7/site-packages/requests/adapters.py" [21:46:48] sopelbot 1 1 1 1 50d [21:46:56] is it vital that it be accessed via https? [21:47:00] Rather [21:47:01] tools.piagetbot@tools-bastion-03:~$ kubectl get deployments [21:47:01] NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE [21:47:01] piagetbot 1 1 1 1 131d [21:47:01] sopelbot 1 1 1 1 50d [21:47:10] why is there 2? [21:48:14] tools.piagetbot@tools-bastion-03:~$ kubectl get pods [21:48:14] NAME READY STATUS RESTARTS AGE [21:48:14] piagetbot-3953634219-p1e0r 1/1 Running 0 7d [21:48:14] sopelbot-3637851172-d8hqd 1/1 Running 1 7d [21:48:29] It's been running maybe 4 days now? [21:48:38] piagetbot is the webserver. [21:49:02] can you kill the job for it i think maybe with all the changes to the servers thats been going on maybe its just on a bad node or something [21:49:04] The one that serves up cat facts at https://tool.wmflabs.org/piagetbot/ [21:49:08] sopelbot is the IRC bot. [21:49:16] That wouldn't be affected. [21:49:21] It runs on kubernetes. [21:49:58] Traceback (most recent call last): [21:49:59] File "/data/project/piagetbot/sopel/sopel/tools/jobs.py", line 142, in _call [21:49:59] func(self.bot) [21:49:59] File "/data/project/piagetbot/sopel/sopel/modules/find_updates.py", line 45, in check_version [21:50:00] info = requests.get(version_url).json() [21:50:01] File "/data/project/piagetbot/sopelvenv1/local/lib/python2.7/site-packages/requests/api.py", line 71, in get [21:50:03] File "/data/project/piagetbot/sopelvenv1/local/lib/python2.7/site-packages/requests/api.py", line 57, in request [21:50:06] File "/data/project/piagetbot/sopelvenv1/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request [21:50:09] File "/data/project/piagetbot/sopelvenv1/local/lib/python2.7/site-packages/requests/sessions.py", line 606, in send [21:50:12] File "/data/project/piagetbot/sopelvenv1/local/lib/python2.7/site-packages/requests/sessions.py", line 179, in resolve_redirects [21:50:14] File "/data/project/piagetbot/sopelvenv1/local/lib/python2.7/site-packages/requests/sessions.py", line 585, in send [21:50:17] File "/data/project/piagetbot/sopelvenv1/local/lib/python2.7/site-packages/requests/adapters.py", line 477, in send [21:50:22] SSLError: [Errno 2] No such file or directory [21:50:24] It runs automatic update checks every so often. [21:50:34] tom29739 is it vital that the ip DB be accessed via http? [21:50:47] htttps* [21:51:30] *HTTPS [21:52:05] No, but I doubt changing it to http would solve the problem. [21:52:11] There's a bigger problem here. [21:52:55] I think this is the problem: -bash: /data/project/piagetbot/sopelvenv1/bin/activate: No such file or directory [21:53:01] tom29739 i dont know what then, honestly shell/bash for me is hard for me to comprehend so im still semi-learning my way around though i sorta have it figured out [21:53:15] umm yes [21:53:17] i would say so too [21:53:20] wtf [21:53:41] Practically the entire tools.piagetbot@tools-bastion-03:~/sopelvenv1$ ls [21:53:41] lib [21:53:46] tom29739 if you need the activate you may be able to copy from my bots env folder [21:54:07] Practically the entire virtualenv folder is missing. [21:54:21] It's no wonder the entire bot isn't down. [21:55:27] tom29739 actually help cmd works [21:55:34] and wplink [21:55:39] That'll be in RAM. [21:55:45] true [21:56:03] I won't be able to start the bot again if it stops. [21:56:04] want me to throw my bot up temporaly until you fix yours, [21:56:38] its not approved but there almost identical [21:57:22] I configured the bot to be able to survive this type of thing. [21:58:06] All I need to do is reclone/pull the latest version of my fork (just in case that's missing anything) and create a new virtualenv. [21:58:18] It'll install all the stuff when I start the bot. [21:58:36] ok [21:58:50] wonder why the hell it deleted itself though [21:58:52] The lesson to be learned from this is that I shouldn't use my phone to SSH in to manage the bot. [21:59:05] It didn't. [21:59:39] tom29739 ill keep my eye on it if i notice it crash or something ill instantly boot my up until piaget gets fixed [21:59:49] Looking through the history I did `rm -rf /data/piagetbot`, when I meant to do `rm -rf /shared/piagetbot` [21:59:55] lmfao [22:00:07] And that was last week. [22:00:58] tom29739 damn piaget2 is a rebel [22:01:29] tom29739 can you teach comcast (my isp) to do that similar thing to my internet to make it actually stable xD [22:02:36] It's called an immutable service. [22:02:46] It's not fully immutable though. [22:03:08] If it was, then it'd be able to automatically recover without any human intervention. [22:04:13] I don't have the resources on Tool Labs to make it fully immutable. [22:05:20] tom29739 actually technically you could semi do that [22:05:33] That's my goal. [22:05:39] have it run a check to be sure it has all the vital files to run [22:05:47] * tom29739 loves immutable services. [22:05:57] and if not then it would attempt to recover from say a different dir or something [22:06:06] Less maintenance work for me. [22:23:42] tom29739 uh oh [22:23:47] tom29739 you restart it? [22:24:05] Done. [22:24:09] Restarting.. [22:24:16] oh phew i thought it crashed [22:24:31] i was just about to login to ssh to start my bot up xD [22:24:36] sopelbot-3637851172-ocdpc 1/1 Running 0 32s [22:24:52] I had to create the virtualenv in Jessie. [22:24:56] &ip 50.234.125.70 [22:25:25] hmm [22:25:36] I'm looking at the logs. [22:25:50] thats a valid ip (its what was earlier before i got home) [22:26:36] That's a good one. [22:26:59] ? [22:27:08] IPv4 IPs have to be written in dotted decimal with 4 dots and no numbers above 255. [22:27:24] Certain internal ranges are blocked. [22:27:24] ok? [22:27:33] That's a good IP. [22:27:37] i dont understand hows that a good ip [22:27:52] If the bot was working, it wouldn't show any errors. [22:28:09] tom29739 whats the logs say? [22:30:08] can i not open up kubectl logs from my shell account (zppix1) [22:32:13] question is my bot able to be ran or does files need to be moved still? [22:32:23] if all it needs is configged and such i can attempt to do that [22:32:52] I don't know what's wrong with it. [22:33:16] mine or urs [22:33:23] There's something wrong with requests. [22:33:45] mind adding me to piagetbot tools group (see if i cannot figure it out [22:33:51] ? [22:38:26] It's this: OSError: [Errno 13] Permission denied: '/.pip' [22:43:15] tom29739 whats the chmod on /.pip? [22:43:22] in human lang pls [22:43:52] .pip doesn't exist. [22:44:10] why the hell does it need that dir anyway? [22:44:43] Oh. [22:44:45] tom29739 what all is left to do for my bot to be ready i may be able to finish it for you. [22:44:51] I know what it is. [22:45:07] /.pip [22:45:25] / is the system's root directory. [22:45:35] You need root to write to it. [22:46:21] Uh... why are you writing to a hidden file on the system root? [22:47:30] Matthew_ because hes the nsa xD [22:47:38] Wow [22:47:42] tom29739 see my above msg to you :P [22:48:05] Matthew_ he be looking into your windows watching your ever move [22:48:06] xD [22:48:09] Ohhhhhhh pip. yes I'm no longer surprised. [22:48:28] Zppix: Thats... creepy [22:49:22] Matthew_, because kubernetes doesn't set the home dir correctly. [22:49:30] Storing debug log for failure in /data/project/piagetbot/.pip/pip.log [22:49:36] I really need to go. [22:49:49] tom29739: That makes too much sense. [22:49:52] Go on, have fun :) [22:51:08] Wasn't there a bug in steam that did the exact same thing? [22:51:13] I'll see if I can find a link. [22:52:44] https://github.com/ValveSoftware/steam-for-linux/issues/3671 [22:58:06] god damnit tom29739 what is left todo for my bot ill attempt to finish my bot for you :D