/srv/irclogs.ubuntu.com/2017/11/25/#ubuntu-server.txt

keithzgHmm, that's a purely wishlist item compared to my other problem at the moment, apparently one of the storage servers has a dead drive, but the 4-drive BTRFS raid10 pool won't even mount with `-o degraded`00:22
keithzgAnd meanwhile another server is giving "Reading package lists... Error!" on an apt update, yikes, everything's blowing up at work this Friday night . . .00:24
keithzgHrmm. The label of the BTRFS pool is "heartland", and that's how it was being mounted via its fstab entry. But, running `sudo mount -o ro,degraded LABEL=heartland /media/heartland` is definitely not working, but it's not spitting out any errors either, it's just failing to actually do anything.01:55
keithzgA reboot later and surprisingly the same mount command worked fine this time, huh.02:03
keithzgNow my problem is that the `btrfs replace` command doesn't appear to be working. `sudo btrfs replace start 4 /dev/sde /media/heartland` should be what I need as I understand it, but running `btrfs replace status` just returns "Never started"02:15
keithzgI can't just add a device because I can only mount it read-only; attempting to mount it using only `-o degraded` gives "wrong fs type, bad option, bad superblock on /dev/sdd" etc02:25
keithzgOkay, looks like that's a known issue and I need a new enough kernel to be able to mount a degraded 4-disk raid10 array. Unfortunately that "new enough" kernel is "literally the latest", heh. Time to call it a week and come back and make a custom live disk with kernel 4.14.2 on Monday.05:42
lordievaderGood morninig10:36
lordievadermorning even10:36
macskayif you had to take an educated guess: of all servers connected to the internet how much would you think run a webserver?14:58
__mapo__hi, i've tried to install ubuntu server 16.04.03 but I had a problem in the tasksel step, so I had to skip that step,install grub and reboot the system. Now to fix that missing step all I have to do is apt-get install ubuntu-server?18:08
TJ-__mapo__: you don't need to ask in multiple channels :)18:09
compdocsudo tasksel install ubuntu-server maybe. google that18:11
__mapo__:) I wrote here because alkig pointed me to for server-specific issues18:11
TJ-did he? I must have missed that!18:13
TJ-It's generally ultra quiet in here weekends18:14
__mapo__compdoc: sudo tasksel install ubuntu-server did nothing, sudo tasksel install server ended up with an "apt-get failed (100)" error, which is basically my problem at hand18:17
__mapo__should we continue here or go back to ubuntu?18:17
=== hhee is now known as rh10
compdocyou have run 'sudo apt-get update' ?18:21
__mapo__yes18:23
compdocmgith be easier to just start from scratch18:25
trekkie1701cProbably.18:25
trekkie1701cYou can modify /etc/apt/sources.list to include only CD sources and update from that but it's a pain.18:26
compdocWhen i install, I only consider the install a success if there are no errors. I do it over until I figure out what Im doing wrong18:26
trekkie1701cLike, I had to boot the CD in recovery mode to even get mounting to copy the files and do all that.18:26
trekkie1701cAnd yeah, if I hadn't been using the server for other things I would've just done a reinstall18:27
__mapo__I just came from a fresh install and it all started with a dependency error in the tasksel step during installation, which prevented me to install the task I wanted, including the "basic ubuntu server"18:28
__mapo__compdoc: with your criteria my install was a fail, but whatever I tried I just couldn't get this step to complete successfully18:30
trekkie1701cBad disc?18:31
__mapo__you mean the installation disc? how can it be the cause of a dependency error?18:35
trekkie1701cIf you've tried repeatedly and it's refusing to get past it, that's something to look in to.18:37
__mapo__I totally agree, but at this point I'm not sure I'm willing to re-install the machine again18:38
trekkie1701cWhen I installed my home server I wound up spending about a day banging my head against getting it to work18:42
__mapo__how do I clean the apt package list?18:43
apb1963Greetings!  I've been ripping my hair out all week trying to figure out how to name serve my own domain.  I tried installing bind but after struggling with it for hours and days, I couldn't get it working and so that led me to dnsmasq which led me to Network Manager & dhcp-client and then finally resolvconf.  I've read through dozens of setup guides, articles and likely hundreds of posts.  So, before I start bleeding from the eyes and/or head,23:31
apb1963what is the Ubuntu "right way" to serve up my own DNS master domain?  Is bind the proper way or is it one of these other methods?  My router serves up DHCP so I guess I wouldn't want to run dhcp-client I don't think.; v16.04 LTS23:31
rbasakapb1963: a domain for the Internet at large?23:33
rbasakapb1963: does your server have a publicly reachable IP address?23:33
apb1963yes23:33
rbasakUse bind23:33
apb1963ok, in that case the most recent error I'm getting is: rndc[31343]: rndc: connect failed: 127.0.0.1#953: connection refused23:33
rbasakSounds like bind hasn't started up23:34
apb1963Right.  And it won't.  Because of that error.23:34
apb1963it's catch-2223:34
rbasakYou don't use rndc to start bind23:34
rbasakOnly to signal it once it's running23:34
apb1963I don't use it at all.  I simply startup bind.  What it does with rndc is beyond me.23:35
apb1963let me paste it for you.... hang on23:35
TJ-apb1963: have you created a zone file for your domain?23:35
apb1963rbasak, https://pastebin.com/csesAXn923:36
apb1963TJ-, Yes23:36
rbasakLooks like you're missing some of bind's log.23:37
rbasakTry sylog.23:37
rbasaksyslog23:37
TJ-apb1963: did you use named-checkconf and named-checkzone  ?23:39
apb1963tj- yes.  all ok23:41
apb1963named[31329]: open: /etc/bind/named.conf: permission denied23:41
apb1963in syslog23:41
apb1963ll /etc/bind/named.conf23:41
apb1963-rw-r--r-- 1 root bind 463 Nov  8 05:00 /etc/bind/named.conf23:41
TJ-apb1963: how about the directory: "ls -ld /etc/bind"23:43
apb1963drw-r-Sr-- 3 root bind 4096 Nov 25 13:25 /etc/bind23:43
rbasakThat looks pretty screwed up.23:44
apb1963What should it be?23:44
rbasakI'd have to fire up a container and check.23:44
rbasak755 or perhaps 750 I expect.23:45
TJ-That looks correct; I've jsut compared it23:45
rbasakdrwxr-sr-x 2 root bind 4096 Nov 25 23:45 /etc/bind23:45
rbasakIn a Xenial container23:45
apb1963hmm... I don't know the difference between s and S23:46
TJ-apb1963: is there another service listening on port 53?23:46
rbasakS is missing the executable bit.23:46
apb1963tcp        0      0 127.0.1.1:53            0.0.0.0:*               LISTEN      4106/dnsmasq23:46
apb1963nobody    4106  1176  0 Nov18 ?        00:00:07 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d23:47
apb1963Seems to be tied to networkmanager perhaps?23:48
TJ-Yes, it is. Not sure if that'd cause named not to start though. Depends what interfaces you've told named to bind to23:49
rbasakI don't understand. Your bind is broken because your /etc/bind permissions are screwed up. Fix those first.23:50
TJ-It's an apparmor issue I think23:51
rbasakNo, it's a permission issue on /etc/bind.23:51
rbasakYou might *then* have an issue with something else binding to 127.0.1.1:53, but you're not even getting that far.23:51
apb1963ok, reinstalling just to verify I didn't hose it myself... or if I did.23:53
apb1963ll /etc/bind23:53
apb1963ls: cannot access '/etc/bind': No such file or directory23:53
apb1963there's proof :)23:53
apb1963I guess it was me23:54
apb1963drwxr-sr-x 2 root bind 4096 Nov 25 15:54 /etc/bind/23:55
apb1963Active: active (running) since Sat 2017-11-25 15:55:40 PST; 11s ago23:56
apb1963Boom23:56
apb1963I'm curious.. why doesn't apt-get purge clean out config files and dirs?23:56
apb1963I would have expected /etc/bind to be purged... in the purge.23:57
apb1963oh.  Thanks for your help guys!!!!  I should have come here before spending dozens of hours on it.  Oh well :)23:57
rbasakPurging the bind9 package does clean out /etc/bind for me in a Xenial container.23:57
rbasakYou're welcome :)23:58
apb1963it doesn't if you add any files23:58
apb1963Plus it should also delete the dir itself.23:58
rbasakdpkg: warning: while removing bind9, directory '/etc/bind' not empty so not removed23:59
apb1963right23:59
apb1963so, nice warning... cool.  But not the documented behavior of purge23:59
rbasakThe packaging system doesn't know if files from other packages are left in there.23:59
rbasakIt's by design.23:59
rbasakPurge will only remove stuff shipped or managed by the package itself.23:59

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