/srv/irclogs.ubuntu.com/2019/07/26/#ubuntu-server.txt

m_tadeuI have a huge file (~400GB) which I need to compress daily...this file is appended every day. compressing takes a lot of time, so I'd like to ask if there is a way to do something similar to rsync in a compressed file?02:13
sarnoldm_tadeu: what is this file? what are the rules for working with it?02:14
sarnoldhow is it generated and what happens to it?02:14
m_tadeusarnold: it's a binary database and new data is appended at the end...so changes are always added at the end02:16
sarnoldm_tadeu: can you get just those changes all on their own?02:17
m_tadeusarnold: not easily...I mean, I'm rsync'ing the database file from the production system to a backup system, where I can take cpu/disk that I need without messing up with the production one02:19
m_tadeuonly then I'll be able to compress it02:19
sarnoldm_tadeu: if you could get a hold of those changes -- like, if they are *strictly* appended, you could take advantage of this neat little trick in gzip:02:20
sarnoldhttp://paste.ubuntu.com/p/ntPXYnqCVx/02:20
m_tadeuthat would be cool...do you know a way to do it? I do have the "old" file and the "new" file...but how to make a diff on that?02:21
sarnoldm_tadeu: oh nice02:23
sarnoldm_tadeu: hmm; if you've got both an old and new file in one place, even better, ignore everything I just said :D take a look at xdelta302:24
m_tadeusarnold: this tools seems pretty cool...how to use it to output the diff only? it seems that it wants to write on the second file02:40
m_tadeuah -c02:41
sarnoldhmm.. let me give it another look :)02:41
sarnoldaha let me skip that ;L)02:41
m_tadeusarnold: doesn't seem to be doing what I want...the diff size is ~90MB...but the tool is outputing a lot more02:46
sarnolddoes cmp file1 file2  report an EOF on the shorter file? or does it report a different byte?02:48
m_tadeuchecking...02:50
m_tadeuI think this will take for ever :P02:53
sarnoldoh no :(02:53
sarnoldI mean reading 400 gigs is going to be a while..02:54
sarnoldif you're reading at 100MB/s probably about an hour. dang. I shoulda done the math first ;)02:54
m_tadeuwell rsync works just fine, so it should get the EOF02:55
sarnolder, that'd be an hour for one file. if you're getting 100MB/s total... two hours to read them both from start to finish02:55
m_tadeumaybe using dd, let me see if it can be done02:56
sarnoldheh, that was going to be my suggestion before xdelta3 .. if you're confident that the data is being appended, you can use dd's skip_bytes to start reading at a specific byte offset03:02
sarnoldbut now that I think through the fact that you've got 400 gigs of stuff, using dd to read just the end of the file, then compress that, and send that blob over, is probably the better approach03:02
sarnoldthat'd save reading 800 gigs of data just to find the difference at the end. but that depends 100% on it being a real append03:03
m_tadeusarnold: ok...I think I managed to create the diff....now I'll compress the first time03:22
m_tadeutomorrow I'll try to append to the gzip'ed file03:23
m_tadeuhope it works :)03:23
m_tadeusarnold: thanks a bunch for the tips03:23
sarnoldm_tadeu: cool :) time for me to bail too03:24
sarnoldm_tadeu: have fun :)03:24
zygasarnold: that's the same person06:09
=== akaWolf1 is now known as akaWolf
shubjerocoreycb & jamespage: Good day! I am testing Octavia in my lab as it's something we want to eventually roll out in production. We are running Ubuntu 18.04 with Rocky ubuntu packages. One thing I am struggling with is getting the octavia-dashboard-plugin to work (show up!) in Horizon. I noticed that it is based on python3 and I also noticed that our heat and trove dashboard plugins are python2 and that13:13
shubjeroour horizon is also running under python2. Could this mix of python versions be my problem with the load balancers UI showing up on horizon? I hastily uninstalled the py2 heat and trove plugins in lieu of the py3 packages and then broke our lab horizon terribly.. lol. Just wondering if I am barking up the right tree here.13:13
shubjero*with the load balancers UI NOT showing up in horizon, rather...13:14
coreycbshubjero: o/ yes you'll want them all to be the same python version. what release are you running?13:16
ezioI'm having a problem with installing server.  I can install desktop.  I've done that.  Here's the error.  I see other people with this error and no resolution. https://imgur.com/jO3SCIC13:16
coreycbshubjero: rocky+ should be good to go with py313:17
eziolordcirth, loading from USB, right at the start of the installation, just after the disk-settings screen.  It starts running the installation and asks you for information like Your Name13:17
shubjeroYeah, we're running rocky on 18.04.. I am just figuring out how octavia works in the lab first.. so that I am better prepared to tackle prod obviously13:17
ezioon that screen I have about 5 seconds before the error13:18
shubjerocoreycb: thanks for that. Do you know how to make the switch for the openstack-dashboard to run under py3? Am I just pointing to a different python binary somewhere?13:18
shubjerocoreycb: i did find your post to openstack-discuss on Sep 7, 2018 about the rocky release useful, so thanks for that13:19
coreycbshubjero: you'll need libapache2-mod-wsgi-py3 and python3-django-horizon installed and if you're upgrading you'll need to remove unused python2 packages after upgrading13:21
shubjerocoreycb: ok, thats my goal for today :) thanks again13:28
coreycbshubjero: np good luck are you upgrading?13:28
shubjerocoreycb: no, we've been on 1804 & rocky for a few months now but we are looking to add new features to our cloud such as octavia, barbican, and magnum13:37
coreycbshubjero: ok well if upgrading from py2->py3, after installing py3 packages you'll want to apt purge <py2-packages> && apt autoremove --purge13:43
shubjerocoreycb: ok13:43
shubjerocoreycb: btw, i dont see a post on the openstack-discuss mailing list for stein like I do for Rocky. I find those posts have important information about the release. Any plans for that?13:50
coreycbshubjero: we may have missed it. i was out of office at the time.  this may help. https://javacruft.wordpress.com/13:52
shubjerocoreycb: nice, that works13:53
shubjerocoreycb: everything works now :thumbsup:15:13
coreycbshubjero: nice \o/15:13
FulgenI'm trying to setup nginx on an Ubuntu 18.04 LTS server. I removed /etc/nginx/sites-{available,enabled}/default and added my own config snippet, however, it's still showing the default welcome page. Am I missing something?17:57
tdsFulgen: did you reload nginx, and what was the config snippet you added?17:58
Fulgentds: yes, using both nginx -s reload and systemctl reload nginx17:59
Fulgenhttps://termbin.com/2fr6 (saved as sites-enabled/parry)17:59
tdsFulgen: what are you expecting to happen for requests to anything at / other than /parry?18:02
tdsit's probably falling back to the default docroot which contains the example page, you could change that to another directory if you like18:02
Fulgentds: I'd expect it to give me a 502 (the same it currently does for /parry (which tells me my config is somehow borked too, but I don't get why I still get welcomed))18:03
tds502 just means that it can't connect to another webserver on 808018:04
tdsif you want that to apply to the root, you need location / rather than location /parry18:04
FulgenI want it to apply just to /parry as / will be populated later on, but I misinterpreted that 502 as a 500 (I'm still new to server stuff...). thank you!18:05
tdsif you only want /parry reverse proxied, you might want config to return a 403 for / or something18:05
tewardFulgen: FYI if you don't add a / handler it'll autoattempt whatever location you specify.  So you need to add a separate { } block for it, such that you end up with this: https://p.ngx.cc/abcc189d9347668319:08
tewarda separate location block*19:09
Fulgenah, thank you both19:09
tewardFulgen: (FYI I'm the semi-official/semi-unofficial NGINX maintainer in Ubuntu so i'm fairly fluent in nginx xD)19:09
Fulgenoi, nice :D19:09
Fulgenhm, for some reason, proxy_pass works with one URL, but gives me a blank window with another app on another port (a Quasar app). it works with return 301 though19:12
teward`return 301` is a redirect, you are telling it where to actually look to get your stuff19:12
tewardnot everything works with proxy_pass19:12
tewardbecause proxy_pass passes the request URI as well19:12
Fulgenah, thanks!19:13
tewardand if the requested URI is *not* present at the backend webserver where it interprets that URI and returns the corresponding data, then it will fail19:13
tewardso if you are requesting /parry but the backend will look in /var/appdata/ as its root and /var/appdata/parry$request_uri isn't present in the backend it'll fail19:13
tewardand that's a backend issue19:13
Fulgenoh19:14
tewardwhenever implementing proxy_pass ***ALWAYS*** remember the requested URI is passed to the backend as well19:14
Fulgenwhy does it work for <ip>:9621 and not for <ip>:8080 though?19:14
tewardso you'd have to rewrite the request first.19:14
tewardthat'd be dependent on other factors19:14
tewardcheck what `netstat -tulpn | grep :8080` shows for output of what's listening where.19:15
tewardif it's only listening on 127.0.0.1:8080 that's your problem19:15
tewardif it's listening on 0.0.0.0:8080 then you need to look at the backend app and determine why it's not functioning as expected (which means you'd have to debug the Quasar app/environment)19:15
Fulgenit's listening on <ip>:8080 which is what I had specified for proxy_pass19:16
=== MassDebates_ is now known as MassDebates
tewardFulgen: actually you specified 127.0.0.1 in your proxy_pass19:26
tewardnot your actual server IP19:26
tewardif it's listening on the actual IP on port 8080 and is reachable but not functioning right then you need to focus on that app and figure out why that application doesn't like serving the content19:26
teward(which I can't actually help with sorry!)19:26
Fulgenteward: oh...fail :x19:30
Fulgenno problem, you've helped me more than enough, thanks!19:30
tewardyep.  (I don't know enough about Quasar to debug sorry!)19:30
robertparkerxI don't know why but a server reboot and the services are down such as apache23:15
robertparkerxHow can I start apache, mysql, mongo and these23:15
sarnoldrobertparkerx: what's in the logs?23:18
robertparkerxSSH isn't even working either23:19
robertparkerxsarnold, what logs23:19
sarnoldrobertparkerx: dmesg, journalctl, /var/log/, etc23:20
robertparkerxnothing in apache error log23:24
robertparkerxI cannot even access the internet23:30

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!