These are chat archives for arenanet/api-cdi

5th
Jan 2018
David Reeß
@queicherius
Jan 05 2018 00:21
@Eearslya I work with Docker at my daytime job (we kind of build an internal container management thing with extras, at ~35 microservices), and it holds up to most basic things fairly well, but it a few annoyances when you try to do things out of the ordinary. E.g. using it as a "development container" (with mouting in your files and then file watching) can be pretty painful if you are under windows. Also the orchestration that is included with docker (docker swarm) feels more like an early alpha than production ready
The main bonus you get from Docker if you have to deploy the same container to a whole fleet of servers, it's easier to bake a container than make sure all the servers have the right dependencies
For gw2efficiency I use it because you can jail the containers farily easily - e.g. the backend workers can only ever use a maxium amount of CPU/memory, so the API running on the same server doesn't get put into a chokehold when it's doing it's crawling thing
Eearslya Sleiarion
@Eearslya
Jan 05 2018 00:50
See, and that's the thing. I know it's great for scaling and keeping things contained, but.. For the tiny little pet project that I want to do, is it worth the hassle? Or do I just use capistrano and git to pull the latest production build onto my server?
David Reeß
@queicherius
Jan 05 2018 00:53
For small projects I personally wouldn't/don't bother, but you could always do it once as a learning opportunity
Eearslya Sleiarion
@Eearslya
Jan 05 2018 01:01
I just need to come up with a good project idea that I'll have fun writing..
smiley
@codemasher
Jan 05 2018 02:12
amazing...
root@Ubuntu-1710-artful-64-minimal ~ # php -v
PHP 7.2.0-2+ubuntu17.10.1+deb.sury.org+2 (cli) (built: Dec  7 2017 20:15:31) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.2.0-2+ubuntu17.10.1+deb.sury.org+2, Copyright (c) 1999-2017, by Zend Technologies
root@Ubuntu-1710-artful-64-minimal ~ # php ./test.php
extension_loaded('sodium') bool(true)
PHP Fatal error:  Uncaught Error: Call to undefined function sodium_version_string() in /root/test.php:5
how did they fuck up that much?
The following packages have unmet dependencies:
 php7.2-common : Breaks: php7.2-sodium but 7.2.0-1+ubuntu17.10.1+deb.sury.org+1 is to be installed
 php7.2-sodium : Depends: php7.2-common (= 7.2.0-1+ubuntu17.10.1+deb.sury.org+1) but 7.2.0-2+ubuntu17.10.1+deb.sury.org+2 is to be installed
smiley
@codemasher
Jan 05 2018 12:18
ok, one thing that bothers me about KDE is the lack of a system keyring manager like gnome has. skype refuses to log in automatically >.<
what is that thing that gnome uses and can i have it under KDE?
Werdes
@werdes
Jan 05 2018 17:57
oh boy, it's reset time. let's see if the unexplainable happens again :clap:
Werdes
@werdes
Jan 05 2018 18:09
match 2-4 is missing, everything else is ok
why god
@werdes I'm seeing 2-4, is it still missing for you
Werdes
@werdes
Jan 05 2018 18:17
it's there, but the problem is:
end_time: 2018-01-05T17:58:00Z
which was 20 minutes ago
:worried:
:unhappy:
Eearslya Sleiarion
@Eearslya
Jan 05 2018 18:23
Welcome back to the :fire:
backend server says
                "start_time": "2018-01-05T18:00:00Z",
                "end_time": "2018-01-12T17:58:00Z",
hmm frontend for me is saying
start_time: "2018-01-05T18:00:00Z",
end_time: "2018-01-12T17:58:00Z",
smiley
@codemasher
Jan 05 2018 18:24
image.png
@werdes is it still happening
:(
Werdes
@werdes
Jan 05 2018 18:25
yep
"id": "2-4", "start_time": "2017-12-29T18:00:00Z", "end_time": "2018-01-05T17:58:00Z", "scores": {
"red": 467981,
"blue": 629890,
"green": 388495
}, "worlds": {
"red": 2103,
"blue": 2007,
"green": 2204
}, "all_worlds": {
"red": [
2102,
2104,
2103
],
"blue": [
2009,
2007
],
"green": [
2206,
2204
]
}, "deaths": {
"red": 73300,
"blue": 39316,
"green": 49728
}, "kills": {
"red": 46213,
"blue": 82626,
"green": 28344
}, "victory_points": {
"red": 320,
"blue": 399,
"green": 277
},
goddammit
WHY
Eearslya Sleiarion
@Eearslya
Jan 05 2018 18:27
does NA reset on saturdays?
Werdes
@werdes
Jan 05 2018 18:27
01:00 iirc
UTC at least
Archomeda
@Archomeda
Jan 05 2018 18:27
same result for 2-4 for me
well the NA half of the API is right
(as in 2-4 from DFW)
smiley
@codemasher
Jan 05 2018 18:27
@Eearslya NA reset is usually 6hours after EU reset
no I mean I'm seeing the correct data for EU
Archomeda
@Archomeda
Jan 05 2018 18:28
cross datacenter issues again?
probably
Archomeda
@Archomeda
Jan 05 2018 18:28
let me see if i can connect to the NA one
I'm restarting the backend in EU
I'm guessing there's a race condition or some garbage isn't working
I didn't see anything in the logs about it
@werdes did that change anything?
Archomeda
@Archomeda
Jan 05 2018 18:31
coming from NA seems right
EU still wrong
oh I remembered how to make requests to the EU APIs
Archomeda
@Archomeda
Jan 05 2018 18:31
i forgot, i just used Tor and hope to get a US ip
Edgar Doiron
@Coffee4cr
Jan 05 2018 18:32
lol
Archomeda
@Archomeda
Jan 05 2018 18:32
the ips are different than before anyway
we have DNS entries for each machine
so I can send HTTP requests to a specific API frontend
Archomeda
@Archomeda
Jan 05 2018 18:32
oh that's helpful
:hmm:
Archomeda
@Archomeda
Jan 05 2018 18:33
(can you expose NA/EU publicly for us? like api-eu.guildwars2.com :P)
Werdes
@werdes
Jan 05 2018 18:33
"id": "2-4",
"start_time": "2017-12-29T18:00:00Z",
"end_time": "2018-01-05T17:58:00Z",
:(
Archomeda
@Archomeda
Jan 05 2018 18:33
although i think everyone will use NA at that point then, because EU is mostly having these issues
uhh
there isn't a way to do that in the configuration file
AFAIK at least
restarted one of the JsSrvs to try to clear that cache entry, no dice
Archomeda
@Archomeda
Jan 05 2018 18:35
do the datacenters work independently?
more-or-less
Archomeda
@Archomeda
Jan 05 2018 18:35
aka they both have to receive the events themselves and don't sync up to each other
Werdes
@werdes
Jan 05 2018 18:35
sounds like a major pain
I'm honestly not sure how to fix this :|
Archomeda
@Archomeda
Jan 05 2018 18:37
reset the wvw match :P
i'm sure the wvw people will love it
...without getting fired
Archomeda
@Archomeda
Jan 05 2018 18:38
eheh
I have a meeting in a bit but I'll think about this in the meantime
Werdes
@werdes
Jan 05 2018 18:38
@Archomeda green map was already inaccessible for 20 minutes today anyways
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Jan 05 2018 18:38
¯\_(ツ)_/¯
Archomeda
@Archomeda
Jan 05 2018 18:38
:(
Archomeda
@Archomeda
Jan 05 2018 18:39
what does the y-axis mean?
wait
worlds?
smiley
@codemasher
Jan 05 2018 18:40
requests
Archomeda
@Archomeda
Jan 05 2018 18:40
i seriously doubt those are requests
Werdes
@werdes
Jan 05 2018 18:41
normal is at 54, which isn't the count of groups either
*worlds
Archomeda
@Archomeda
Jan 05 2018 18:41
indeed, it should be 24+27 right?
the drop at 10 seems to fall back to 24, which equals the NA world count
are there some ghost servers active again? :|
smiley
@codemasher
Jan 05 2018 18:43
i'm guessing that's /v2/matches and each step represents the amount of requests to a match group - matches are not started in sync across all worlds
Werdes
@werdes
Jan 05 2018 18:45
to be fair
v1 is right
Archomeda
@Archomeda
Jan 05 2018 18:46
lol
/tableflip
Quaggan BooOOoot
@QuagganBooOOoot
Jan 05 2018 18:46
(╯°□°)╯︵ ┻━┻
smiley
@codemasher
Jan 05 2018 18:46
haha
Werdes
@werdes
Jan 05 2018 18:46
{
    "wvw_match_id": "2-4",
    "red_world_id": 2006,
    "blue_world_id": 2103,
    "green_world_id": 2011,
    "start_time": "2018-01-05T18:00:00Z",
    "end_time": "2018-01-12T17:58:00Z"
}
wo the bot has a tableflip? neat
smiley
@codemasher
Jan 05 2018 18:46
/tableflip
Quaggan BooOOoot
@QuagganBooOOoot
Jan 05 2018 18:46
(╯°□°)╯︵ ┻━┻
smiley
@codemasher
Jan 05 2018 18:47
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Jan 05 2018 18:47
¯\_(ツ)_/¯
smiley
@codemasher
Jan 05 2018 18:47
:fire:
Quaggan BooOOoot
@QuagganBooOOoot
Jan 05 2018 18:47
:fire_engine:
smiley
@codemasher
Jan 05 2018 18:47
<3
Quaggan BooOOoot
@QuagganBooOOoot
Jan 05 2018 18:47
:heart:
smiley
@codemasher
Jan 05 2018 18:47
(still needs /xkcd tho)
Werdes
@werdes
Jan 05 2018 18:48
pretty sure lye will be even more confused now :thinking:
smiley
@codemasher
Jan 05 2018 18:48
i'd just copy that bit of /v1 into /v2 no regerts
@Archomeda per-map data storage buckets being sync'd by the backend server
yeah there's a cache entry somewhere that didn't expire or something
I honestly don't know how/why or how to fix it
Archomeda
@Archomeda
Jan 05 2018 18:49
oh alright
Werdes
@werdes
Jan 05 2018 19:00
oh oh oh
"id": "2-4", "start_time": "2018-01-05T18:00:00Z", "end_time": "2018-01-12T17:58:00Z",
it works :+1:
Archomeda
@Archomeda
Jan 05 2018 19:01
lol
you're right
@lye is probably even more confused now
Werdes
@werdes
Jan 05 2018 19:13
well cache probably expired
an hour lat
e
/shrug
Quaggan BooOOoot
@QuagganBooOOoot
Jan 05 2018 19:13
¯\_(ツ)_/¯
Archomeda
@Archomeda
Jan 05 2018 19:15
maybe
I'll take it
problem solved
Werdes
@werdes
Jan 05 2018 19:39
pads on shoulder
actually someone is looking into why the green BL's didn't get created
and updated some configuration files
which might have caused something to propagate
Werdes
@werdes
Jan 05 2018 19:39
:+1:
Archomeda
@Archomeda
Jan 05 2018 19:40
haha
smiley
@codemasher
Jan 05 2018 19:46
@darthmaim QuagganBooOOoot/gitter-bot#5
mrrrg plz!
hmm, something must have gone wrong with the gpg key setup - commit still not signed
smiley
@codemasher
Jan 05 2018 19:51
how do i? halp plz!
Archomeda
@Archomeda
Jan 05 2018 19:52
ehhh
i had issues with gpg too :P
but that was more windows related than anything else
unless you're on windows, i probably can't help you there
smiley
@codemasher
Jan 05 2018 19:53
no, i'm not on windows this time (i don't bother with windows anymore except for windows only stuff)
so i've created a new key like the github readme said and it's there on my laptop and on github, but something's missing
(it's also in the global .gitconfig)
i just did a commit from phpstorm, which should use the global config
Archomeda
@Archomeda
Jan 05 2018 19:58
heh, who knows what phpstorm does
smiley
@codemasher
Jan 05 2018 20:06
ok, it's not php storm, a simple git push does the same nothing
Eearslya Sleiarion
@Eearslya
Jan 05 2018 20:07
So you have user.signingkey set?
smiley
@codemasher
Jan 05 2018 20:08
yep
Eearslya Sleiarion
@Eearslya
Jan 05 2018 20:08
git config --global commit.gpgsign true
try that?
usually you need to use -S to sign, but that should make it auto
smiley
@codemasher
Jan 05 2018 20:09
ohh, let's see
smiley
@codemasher
Jan 05 2018 20:16
ok, so now the question would be: where's the gitconfig of the windows desktop app?
but then again...
Archomeda
@Archomeda
Jan 05 2018 20:28
%USERPROFILE%\.gitconfig
smiley
@codemasher
Jan 05 2018 20:28
[user]
    name = 
    email = 
    signingkey = 
[commit]
    gpgsign = true
just found it :P
Archomeda
@Archomeda
Jan 05 2018 20:28
nice
smiley
@codemasher
Jan 05 2018 20:28
just have gpg installed globally, otherwise phpstorm will error
Eearslya Sleiarion
@Eearslya
Jan 05 2018 20:29
It's nice to see those little 'verified's all over your repo
smiley
@codemasher
Jan 05 2018 20:29
heh
Eearslya Sleiarion
@Eearslya
Jan 05 2018 20:31
even though it's a dead project
smiley
@codemasher
Jan 05 2018 20:32
q: should i set up a gpg key per machine or use one for all?
Eearslya Sleiarion
@Eearslya
Jan 05 2018 20:32
sad part is I'm pretty sure about 110 out of those 114 commits are all setting up testing/deployment/framework
smiley
@codemasher
Jan 05 2018 20:32
haha, it me when i'm fighting with travis
Eearslya Sleiarion
@Eearslya
Jan 05 2018 20:32
that's really a matter of how much you value the security of it
smiley
@codemasher
Jan 05 2018 20:32
yea, that's what i thought
Eearslya Sleiarion
@Eearslya
Jan 05 2018 20:33
obviously one key to rule them all means one key to lose everything
smiley
@codemasher
Jan 05 2018 20:33
and also "not currently having the key on this new box"
Eearslya Sleiarion
@Eearslya
Jan 05 2018 21:01
looks like some people make one master key and sign other sub-keys off of that
smiley
@codemasher
Jan 05 2018 21:02
might make sense on bigger projects, i guess
Eearslya Sleiarion
@Eearslya
Jan 05 2018 21:05
I mean for their whole identity
it gives you the option to revoke the sub-keys if need be
smiley
@codemasher
Jan 05 2018 21:05
ahh, ok
(gotta read a lot more into that :D)
Eearslya Sleiarion
@Eearslya
Jan 05 2018 21:05
so do I
smiley
@codemasher
Jan 05 2018 21:06
anyway, it works, and that's the point :D
and completely unrelated, but don't be that programmer https://twitter.com/codemasher/status/949383568517672960
(GNU Privacy Assistant for Windows)
smiley
@codemasher
Jan 05 2018 21:19
uhhh
GitHub.IO.ProcessException: gpg: WARNING: using insecure memory!
gpg: please see http://www.gnupg.org/documentation/faqs.html for more information
gpg: skipped "<ID>": secret key not available
gpg: signing failed: secret key not available
error: gpg failed to sign the data
fatal: failed to write commit object
ok, windows is OVER.
Eearslya Sleiarion
@Eearslya
Jan 05 2018 21:23
I dunno, I've never had a problem signing on windows. I usually use git bash, not sure what they add in
smiley
@codemasher
Jan 05 2018 21:23
which windows? (i'm still on 7 and have windows update disabled for reasons)
is that whatever patch available as a single update too?
no wait, i'll find out
oh, since when is this chrome friendly? http://www.catalog.update.microsoft.com/Search.aspx?q=KB4056894
Eearslya Sleiarion
@Eearslya
Jan 05 2018 21:29
I'm on 10, but I'm pretty sure I had it on 7, too. I installed the version of git that gives me a whole MINGW64 environment and gpg/git work happily that way
check if you have a 'git bash' program
smiley
@codemasher
Jan 05 2018 21:32
hmm, git is not in PATH even though i've installed that fancy git for windows (which also comes with VS)
but that shouldn't matter because the github for desktop brings its own git
\AppData\Roaming\GitHub\...\PortableGit_something
@Eearslya lol @ the emoji commit msg prefixes
smiley
@codemasher
Jan 05 2018 21:49
it's something i do too :P
a little
needs :japanese_goblin: for "fixed something on freebsd"
:pray: isn't a standardized gitmoji
smiley
@codemasher
Jan 05 2018 21:51
but useful!
(hint hint wiki editors ;) )
Eearslya Sleiarion
@Eearslya
Jan 05 2018 21:56
I thought yml didn't allow tabs?
smiley
@codemasher
Jan 05 2018 21:56
it... doesn't
the commit message expressed my refusal
smiley
@codemasher
Jan 05 2018 23:11
PHP7.2 on linux is a pain
HOW2SODIUM???
sodium support => enabled
libsodium headers version => 1.0.15
libsodium library version => 1.0.16

PHP Fatal error:  Uncaught Error: Call to undefined function sodium_version_string() 
PHP Fatal error:  Uncaught Error: Call to undefined function Sodium\version_string()
i'm tempted to install an embedded windows just for the lols
ahrg