/srv/irclogs.ubuntu.com/2021/01/20/#ubuntu-server.txt

=== halvors1 is now known as halvors
=== denningsrogue9 is now known as denningsrogue
=== denningsrogue8 is now known as denningsrogue
leumashmHi i have a question, if i have a physical ubuntu server, how do i migrate it to aws ec2?03:52
xibalbareally one of those 'it depends' moments04:20
leumashmxibalba how?05:14
andolThe updated version of the update-notifier-common package really brings in a whole new load of dependencies. https://paste.ubuntu.com/p/7bhmD2m9Bw/05:49
andolYes, it's kind of explained in https://launchpad.net/ubuntu/focal/+source/update-notifier/+changelog, but still.05:49
andol</rant>05:49
=== falcojr2 is now known as falcojr
leumashmHi i have a question, if i have a physical ubuntu server, how do i migrate it to aws ec2?07:05
lordievaderGood morning07:23
=== denningsrogue6 is now known as denningsrogue
rbasaksergiodj: fancy subscribing to ubuntu-server@ with the address you use to send to it, please, to skip moderation?09:22
=== cpaelzer__ is now known as cpaelzer
=== vlm_ is now known as vlm
c0feI have this nginx config: https://dpaste.com/GR7WP5BS5 but when I try to run nginx -t I am getting this error message: https://dpaste.com/D6B2RCVGX where am i going wrong?14:58
tewardc0fe: you are missing corresponding ssl_certificate and ssl_certificate_key linrd15:07
tewardlines*15:07
tewardrequired for SSL listeners15:08
c0feteward: i am trying to get a SSL cert, there is none currently15:08
tewardthen you cannot run the SSL config yet.  disable your ssl listen line.15:09
tewardno cert, no SSL listeners15:09
tewardthe error is selfexplanatory :P15:10
tewardbrb switching to PC to give you a temporary workaround15:10
tewardhard to do that on phone ;)15:11
c0feok15:18
c0feteward: i am using nginxconfig.io15:21
tewardwell15:26
tewardthey're doing it wrong15:26
tewardactually15:26
tewardthey're doing it RIGHT15:26
tewardyou're doing it wrong15:26
tewardyou've commented out the ssl_certificate and such lines that they left uncommented.15:26
tewardDO's config tool there **assumes** you've done the SSL verification and got the cert first15:26
tewardyou need to **remove** or **comment out** the server {} block that has your `listen 443 ssl ...;` configs in it15:27
tewardlaunch NGINX, run your LetsEncrypt calls to get the certificate, adjust the paths accordingly for ssl_certificate_... arguments, then reactivate the `listen 443 ssl...` server block15:27
tewardOR wait for your certificate first if you're getting it from an actual certificate provider.15:28
tewardthen use that certificate instead.15:28
tewardyou can't half-measure the SSL bits15:28
tewardWORST CASE is you comment out the ssl_certificate_... lines like you did, install `ssl-cert` in your environment, and then add these two lines uncommented:15:29
tewardssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;15:29
tewardssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;15:29
tewardthat'll get your site 'running' but it won't have valid SSL until you either LetsEncrypt or use an actual cert from a trusted CA15:29
tewardi also would advise you to **not** just blindly trust configuration generators15:30
tewardand instead learn how all this works yourself15:30
tewardbecause yanking out the nginx configurations that're default installed in teh package will... make things hard to debug if you ever get package installs15:30
c0feteward: i am following their instructions precisely15:41
c0feI used the sed command to comment out15:41
c0fesed -i -r 's/(listen .*443)/\1;#/g; s/(ssl_(certificate|certificate_key|trusted_certificate) )/#;#\1/g' /etc/nginx/sites-available/nextcloud.domain.com.conf15:41
sdezielc0fe: IIRC, you have setup nginx using non-Ubuntu packages so if that's indeed/still the case, it's worth mentioning as there is a general assumption that one uses what Ubuntu ships ;)15:47
=== tomreyn_ is now known as tomreyn
c0fesdeziel: i am using nginx's repo but this wasn't an issue for another website i got it working15:58
c0feteward: i can start over15:58
c0fei deleted the website conf15:58
c0fenginx is running ok15:59
sdezielc0fe: sure, I'm just saying that the default config files/directives might differ between upstream and what Ubuntu ships and that could play a role16:00
c0fethere are slight differences but not too big16:01
tewardc0fe: you didn't need to delete them all :p16:02
tewardc0fe: the instructions you were provided / are following are incorrect16:02
tewardyou simply needed to alter the things i said to16:02
tewardyou can't have a server block with a `listen 443 ssl ...;` at all without PROPERLY CONFIGURED ssl_certificate and ssl_certificate_key lines at the very least16:03
tewardeven if it's to selfsigned dummy certs16:03
teward(which, by the way, the Ubuntu NGINX package ships as a snakeoil snippet, and you just have to install `ssl-cert` via apt_16:03
c0feteward: ok so i am starting over with nginxconfig.io16:08
c0fei set it to be a frontend16:08
c0fei set the domain16:08
c0fewww subdomain and Redirect subdomains16:08
c0fe is unchecked16:08
c0feDocument root16:09
c0fe is left blank16:09
c0fehttps is enabled and so is reverse proxy16:09
c0feteward: resulting conf file: https://dpaste.com/8V6X75GNK16:09
tewardc0fe: you still need a valid certificate for that to work16:12
tewardso unless youv'e got your LE cert you need the snakeoil cert16:12
c0feteward: hold on, the instructions state to run this command: sed -i -r 's/(listen .*443)/\1;#/g; s/(ssl_(certificate|certificate_key|trusted_certificate) )/#;#\1/g' /etc/nginx/sites-available/nextcloud.domain.com.conf16:13
teward*pinches nose*16:13
teward... you came **here** to get support16:13
tewardyes?16:13
c0feteward: this supposed to comment out the SSL section though, no right?16:14
tewardI don't know sed nor have you provided the 'instructions' you're following16:14
tewards/i don't know/i don't know too well the/16:14
tewardso i'm going to go back to my original statement: you came here for support.  you had your config showing it as commented out.  I didn't say a thing about running sed or anything else16:15
c0fesed -i -r 's/(listen .*443)/\1;#/g; s/(ssl_(certificate|certificate_key|trusted_certificate) )/#;#\1/g' /etc/nginx/sites-available/nextcloud.domain.com.conf16:15
c0fethis is the line16:15
tewardsdeziel: perhaps you can assist them?16:15
tewardi'm a little... well 'grumpy' is an understatement today16:15
c0feresulting config: https://dpaste.com/G368GKPQM16:16
sdezielc0fe: when you have your ssl stuff enabled, what's the error you are getting from "nginx -t"?16:19
c0fenginx: [warn] conflicting server name "nextcloud.domain.com" on 0.0.0.0:80, ignored16:20
sdezielif we ignore this warning, nginx shouldn't have a problem starting anyway so please try it16:21
c0fe_i love it when isp fails in the morning16:24
=== c0fe_ is now known as c0fe
c0fesdeziel: it fails with error 502 bad gateway16:24
sdezielc0fe: sounds like a problem with your proxy backend16:25
c0fesdeziel: well i am running all of this on the proxy itself16:25
sdezielc0fe: isn't http://192.168.7.204 a remote machine?16:25
c0feyes16:26
c0febut i am running all this on the ssl termination reverse proxy16:26
c0fenot on the hosting machine16:26
sdezielassuming that you are getting a 502 from the reverse proxy, it would mean it was unable to reach the 192.168.7.204 backend or maybe it got that code from the backend itself and is then just relaying it16:27
sdezielc0fe: your nginx logs should contain useful information about that 50216:28
tewardrbasak: does the Server Team want to take the two tasks of https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1893753 and bundle up the resty core in the Ubuntu package (since that's now a dep for the Lua module) or do you want to wait on Debian's decision?  (someone has to upstream it, please, for me!)16:32
ubot3Launchpad bug 1893753 in nginx (Ubuntu) "libnginx-mod-http-lua 0.10.11 not compatible with NGINX 1.18/1.17" [High, Triaged]16:32
rbasakteward: we just discussed it, and we don't be able to prioritise it for action right now. We intend to look at it that next time we merge nginx though.16:33
tewardcool cool16:33
rbasakWe didn't decide on any specifics - just deferring looking at it for now.16:33
tewardrbasak: yeah i think we should upstream it to Debian, because that's something I think they should consider16:34
rbasak"don't be able" -> English FTW16:34
tewardI know the Lua module is used by a bunch of people but :P16:34
tewardrbasak: i got what you meant16:34
tewardERR: Uncaffienated Chaos Mode Enabled16:34
teward:p16:34
c0fesame config that works for one site doesn't work for another16:37
c0felovely16:37
tewardsdeziel: i'm still in IrritatedMode thanks to work, but usually that indicates they have a conflicting config for the same listen blocks.16:39
tewardjust stating.16:39
tewardi need coffee badly, back later.16:39
flauOn an Ubuntu server installation (RPi3B+, image 20.4.1, aarch64), today I see an update of package update-notifier-common.  Looking at the description of package update-notifier: apt-cache show update-notifier | grep -A2 Description-en16:48
flauDescription-en: Daemon which notifies about package updates16:48
flau Puts an icon in the user's notification area when package updates are16:48
flau available.16:48
flauI wonder, why that package is installed on a server installation in the first place?  Could someone shed some light on that?16:48
tomreyn!paste | flau16:49
ubot3flau: For posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.16:49
ograit is also notifying you on cli about required reboots etc16:49
flauogra: I've installed package needspace for that.  Could I do without that package?16:50
ograyou can do whatever you like, its your server 😉16:50
flautomreyn: Thanks!  Will do next time!16:50
tomreyn👍16:51
c0fesdeziel: fresh nginx install, default settings, it shows up on my host server but i am still having certbot erroring out with 404 not found error16:54
flauogra: Yeah, but since package needspace is written for that purpose, I now wonder if update-notifier caught up and might be enough.  The fact that package needspace is not pre-installled in a server installation already made me wonder.  Well, will google update-notifier anyway.  But I you have any advice for a casual homeserver admin, I'm always listening. :)16:54
sdezielc0fe: I haven't seen your full config nor your logs so it's hard to guess why this 404 is returned16:57
ograflau, well, i personally tend to trust ubuntu's picks of defaults (and i find it convenient how update-notifier makes sure to tell me how many security udates are pending n each login etc) ... stying with defaults also makes it easier to seek for support ... but if you get along better with needspace you should probably pick that one for your install17:01
flauWell, another thing that bothers me with update-notifier is that today's update wants to install 7 more packages, some of them obviously audio related, such as alsa-utils.  What the heck?17:03
sdezielflau: I concur, I didn't like the additional set of packages brought in by the update :/17:04
ograthats not a doing of update-notifier though ... it doesnt add or remove dependencies ...17:05
ogra(you'D very likely get the same set of packages with a simple "apt update/full-upgrade" run17:05
flauogra: That is an interesting hint.  On a clean installation, pending updates where presented on login, but that is no more.  Thought that is because I chages sshd config.  But it might as well be because I installed needspace.  Will investigate if login information is back after removing that package.17:05
sdezielogra: updating update-notifier-common brought a bunch of extra packages, see https://paste.ubuntu.com/p/YF37xwzxWS/17:07
ograhttps://launchpad.net/ubuntu/+source/update-notifier/3.192.30.4 ...17:12
ograhttp://launchpadlibrarian.net/511246451/update-notifier_3.192.30.3_3.192.30.4.diff.gz17:12
ogramight be the new dependency on "ubuntu-drivers-common" is at fault here17:12
ogra(most likely added to support binary drivers for graphics cards to support AI stuff on server (which is needed in deep leraning etc)17:14
ografile a bug 😉17:14
ogra(alsa surely feels like overkill (but is likely required by the graphics card drivers for HDMI output ... ) that should be cleaned up)17:15
flauOh, whenever I wrote "needspace" I meant to refer to package needrestart.  The former is a LaTeX package. :-)17:15
sdezielogra: I don't it will get very far but maybe I'll decide to open one instead of complaining about it here ;)17:16
sdeziels/don't it/don't think it/17:17
flauHm, purging package needrestart didn't bring login information back.17:21
flauBut removing custom sshd config file from /etc/ssh/sshd_config.d/ did.  Nothing fancy here: https://paste.ubuntu.com/p/wN44JdW5Tn/  Would it be possible to have custom sshd config and keep login information?17:28
c0fesdeziel: i got it working, apparently having that error threw it all off17:42
sdezielgreat17:45
c0feit's a bit odd to be honest17:48
flauFurther testing shows that sshd config "UsePAM no" prevents extended login information.17:55
flau 17:55
=== Ussat-1 is now known as Ussat
=== ijohnson is now known as ijohnson|lunch
=== Ussat-1 is now known as Ussat
xibalbai configured an ipv6 ip on my system, but i noticed when it instantiates a new connection outbound it's using it's auto configured ip. i'm looking/googling on how to change that behavior19:10
xibalbanm found it's the accept-ra option i was playing with19:14
DammitJimis it normal to see %wa above 10 when looking at top?19:56
sarnoldDammitJim: it depends on your workload, but when I just ran a workload I thought might be able to reproduce that, I only got 9%19:58
DammitJimsarnold, so it depends on workload and not the storage, right?19:59
DammitJimin my case, I have Fusion IO cards which is why I was kinda surprised to see waits...19:59
sarnoldDammitJim: it depends on both19:59
sarnoldDammitJim: oh wow, I'd expect those to be quick19:59
DammitJimexactly19:59
sarnoldDammitJim: or, uh, at least when I last thought about them, they were quick. are they still quick?20:00
DammitJimwhat do you recommend I do to narrow down the reason? this is in a VM20:00
sarnoldare you doing pci passthrough to the vm? or is this going through a storage layer between host and guest?20:00
DammitJimstorage layer20:01
DammitJimI'm using the LSI Logic Parallel SCSI controller20:02
sarnoldhmm. is that a ~15 year old controller?20:03
DammitJimit's pretty old, I'd say20:03
sarnoldtwenty?20:03
DammitJimbut again, I was trying to figure out how to approach the problem w/o jumping into conclusions, ya know?20:04
sarnoldyeah, definitely a good plan20:04
DammitJimis there something on Ubuntu/Linux that I should be looking at before diving into the virtual layer?20:04
sarnoldhttps://www.reddit.com/r/vmware/comments/g2z5rz/lsi_logic_sas_vs_lsi_logic_parallel/  suggests that you've got a bunch of choices for storage in vmware -- I'd suggest trying themn in reverse order to net-runner's post -- try nvme controller, then paravirtual, then sas, and probably the first one that works will work better20:05
sarnoldparavirtual drivers are usually a lot better than having both host and guest emulate hardware20:05
DammitJimTY20:06
DammitJimI have forgotten if I can just power off the VM and edit the controller or if I'll have to remove the old one and add the new one and all Virtual Hard Disks will automatically know where to go...20:06
DammitJimseparate question20:07
DammitJimI had a software raid (mirror) setup on a server20:07
DammitJimthen I removed a drive from the raid20:07
DammitJim(unmapped it)20:08
DammitJimI can just turn of the system and remove the drive, right?20:08
sarnoldI think so, but I've not tried that myself... I probably should have before I put a bunch of data on that machine :) heh20:09
DammitJimit seems there is no default package for installing iptables persistent in Ubuntu 2020:55
DammitJimdo you guys have a recommendation on how to set iptables properly?20:55
TJ-DammitJim: 20? you mean 20.04 ?20:56
sdezielDammitJim: iptables-persistent is available on 20.0420:56
DammitJim20.04 yes20:57
TJ-!info iptables-persistent focal | DammitJim20:57
ubot3DammitJim: iptables-persistent (1.0.14, focal): boot-time loader for netfilter rules, iptables plugin. In component universe, is optional. Built by iptables-persistent. Size 7 kB / 47 kB20:57
DammitJimhhmmmm... I wonder why I didn't find that package to install it20:57
DammitJimoh, it's in universe, that might be why20:57
tewardthat'd do it21:04
=== ijohnson|lunch is now known as ijohnson

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