/srv/irclogs.ubuntu.com/2020/02/14/#ubuntu-server.txt

aeon90when installing slurm on ubuntu 18.04, how are you supposed to start slurmd and slurmctld? I can start them manually in the terminal, but systemd fails to start them, they simply time out11:31
fricklerjamespage: coreycb: just stumbled about this old issue when updating our cookbooks for stein, any chance this still can get resolved? https://bugs.launchpad.net/ubuntu/+source/nova/+bug/156793514:25
ubottuLaunchpad bug 1567935 in nova (Ubuntu) "nova-compute-libvirt should not depend on open-iscsi" [Low,Triaged]14:25
tewarddoes anyone know if the Apache web server sets up `www-data` user if the user/group don't already exist?15:32
tewardneed some server team input on some things15:32
tewardcc sarnold15:32
rbasakteward: I'm not sure without looking, but you might find https://www.debian.org/doc/debian-policy/ch-opersys.html#uid-and-gid-classes helpful.15:35
tewardyeah i know those classes...15:36
tewardrbasak: the core problem is...15:36
tewardbug #186038815:36
ubottubug 1860388 in nginx (Ubuntu) "MAAS fails clean install www-data user does not exist due to nginx requirement" [Undecided,Incomplete] https://launchpad.net/bugs/186038815:36
tewardwhere MaaS deploy fails because user removed www-data15:36
tewardquestion is whether there's anything stopping us from recreating it, though I'm not fond of 'forcing' a user into existence if it's been removed by another process15:36
teward(the core problem there is there's some atypical 'user provided hardened ubuntu image' that has the default users in 0-99 UID groups stripped out15:37
tewardand that's caused the issue.  Not sure it's an *nginx package fixable issue* though)15:37
rbasakIs www-data created by base-files?15:38
tewardnot sure15:40
rbasakIt might be the installer15:41
rbasakhttps://www.debian.org/doc/debian-policy/ch-opersys.html#uid-and-gid-classes says only that "new ids in this range being added automatically as the base-passwd package is updated"15:41
tewardbase-passwd is different than base-files at source15:42
rbasakI'd say the bug is invalid then, just on the basis that www-data is globally allocated and is in passwd and group of all Debian systems by Debian policy. Removing that breaks your system and it's reasonable for packages to assume that they are present.15:42
tewardchecking base-passwd15:42
rbasakI can write that in the bug if you like.15:42
tewardwww-data is created by base-passwd15:43
tewardso then yes, this would be a 'you broke your system' state.15:43
tewardplease do15:43
tewardyou'll word it better than I will :P15:43
teward*is exhausted*15:43
tewardrbasak: mdeslaur at 'a glance' seems to agree with us that this is User Error15:46
tewardand not something the packages should be fixing esp. since base-passwd populates those user datas, and not something we should be fixing if the user wants to torch their system :p15:46
tewardwhich means that's the basis of 'Invalid'.  Have fun writing it up, I'm going to go find the nearest hard surface to blast my head through (E:ROUGHWEEK)15:47
tewardrbasak: mdeslaur: well, this is explicitly *in* the Debian Policy:  Packages other than base-passwd must not modify /etc/passwd, /etc/shadow, /etc/group or /etc/gshadow.   **In theory** we could reject on that, since nginx asserting www-data exists would alter those files.  (9.2.1)15:49
tewardesp. if it has to add that.  Ultimately, still user error :P15:49
mdeslaurwell, I think that means modify the files directly without using a tool15:50
rbasakYeah - plenty of packages modify /etc/passwd (indirectly) to ensure that a user they need exists15:51
rbasakIf you want to use that interpretation, all those packages would be buggy and there'd be no way for packaging to do that.15:51
tewardtrue.  (I'm tired, sue me xD)15:51
rbasakI have commented on the bug and marked it Invalid for nginx15:52
tewardthank you very much15:54
teward*goes to find the largest cup of coffee he can in the workplace to consume it*15:54
mdeslaurteward: sounds like you need a shot of espresso with a coffee chaser ;)15:58
tewardnah what i need is an extra five hours sleep15:58
tewardif i had my way i'd have five shots of espresso15:58
tewardthree lattes15:59
tewardand coffee15:59
supamanon a computer using ufw, would ufw deny IP, deny all connections from that computer to that IP?17:41
Chuckfuquestion, I have a ubuntu server 18.04 I have enable ufw and am trying to receive mail from an application who's log says the connection is being refused, I added port 587 by doing the following as root ufw allow 587/tcp says it updates any ideas17:54
Chuckfubeware I am a newbie trying to learn this by doing17:56
supamanChuckfu: if you issue 'sudo ufw status' you should see a line on the note of '587    ALLOW    Anywhere'18:30
Chuckfuit show it ALLOW anywhere, but a telnet into that port 587 is still refused while on another system connect fine, really weird, probably something small I'm missing18:33
jdstrandChuckfu: you should be able to see if another port needs to be opened (eg, port 25) too by looking at firewall denials in /var/log/ufw.log or dmesg18:34
ChuckfuI'll do18:36
supamanthat depends on loglevel right?18:37
Chuckfuwhen I make change to ufw do I need to restart it18:37
Chuckfuufw that is18:37
supamanI have mine set to low and don't see any logging when I issue a command that is blocked by firewall18:38
Chuckfuhow did you set it to low18:39
supamanChuckfu: nope, don't need to do that. ufw updaes the iptables immediately18:39
supamanChuckfu: issuing 'ufw logging low'18:40
Chuckfuhumm but when trouble shooting I should leave it like it is too see issues right18:40
supamanChuckfu: if log level is set to high or medium then yes18:41
Chuckfuwhat is the command to see what level its at I have not done anything but add ports to it18:42
Chuckfuis there someway of filtering to only see port 587 block18:43
supamanChuckfu: too see the current level look in /etc/ufw/ufw.conf18:44
jdstrandsupaman: yes, but the default loglevel is low, which will show some stuff18:45
jdstrand"logs all blocked packets not matching the defined policy (with rate limiting), as well as packets matching logged rules"18:46
Chuckfuscrewed up I did a nano ufw.log | grep "BLOCK" seems froze right now18:46
jdstrandthey might be redirected somewhere18:46
jdstrandChuckfu: ctrl+c that18:46
Chuckfuyeah nothing18:46
jdstrandChuckfu: just do: grep "BLOCK" /var/log/ufw.log18:46
Chuckfuit locked up, oh well thats how you learn18:47
supamanChuckfu: do ctrl-x18:47
supamanthat exits nano18:47
Chuckfunada18:47
supamanhmmm18:48
Chuckfulol I just cold rebooted  not good, hopefully I didn't blow it up18:48
supaman:-)18:49
supamanit should have been in nano mode and the usual ctrl-x to exit nano should have worked18:49
Chuckfuok back up18:50
Chuckfuno issues18:50
Chuckfuok ufw is set to low18:52
supamanif you don't see anything in /var/log/ufw.log then issue 'ufw logging medium' and try doing the email again18:53
supamanthen you should see a lot more info from ufw18:53
Chuckfuit said low and I just perform that command18:54
supamanyou can also see ufw "realtime" messages with 'journalctl -f' or 'tail -f /var/log/ufw.log'18:55
Chuckfuis there a way to allow traffic IN/OUT on port 58719:00
supamanyou originally did ufw allow 587/tcp ... don't remember if you need udp also ... so you could try 'ufw allow 587'19:03
supamanis this server a public server or just for your home use?19:04
jdstrandChuckfu: the default policy allows all outbound traffic. it also uses connection tracking so traffic related to the initial connect on 587 is allowed19:04
jdstrandChuckfu: if you changed the default (sudo ufw status verbose), then you would need to add egress (outgoing) rules from your system to somewhere else, port 58719:05
Chuckfucan I reset ufw to default19:10
Chuckfuor will disabling ufw allow all traffic to pass19:14
supamanif you disable ufw then all computers that have direct access to that computer can access all ports that are open on that computer19:16
supamanif that computer is behind a NAT then there is much less danger, but still whichever port is natted into the computer is accessable from outside the NAT19:17
Chuckfu guess I need to reset the firewall and start from scratch, adding whatever is needed and creating the outgoing rules19:18
Chuckfuor I could put together a pfsense firewall before it, something with a gui so I can see whats going on19:18
supamanyeah, not sure how to reset ufw19:19
supamanhttps://www.digitalocean.com/community/questions/how-to-reset-the-firewall-on-ubuntu19:20
sarnold       reset  Disables and resets firewall to installation defaults. Can also give the --force option to perform the reset without confirmation.19:20
Chuckfuthank you very much for the help been awesome learning lesson19:29
Chuckfube glad you don't live in Phoenix, I'd have you camping at my house teaching me19:30
supamancamping in Phoenix ... hmmm :-)19:31
sarnoldphoenix, indeed, I'd be dead from heat stroke by june :)19:31
supamanconsidering I live close to 66°N yup, same here19:31
sarnoldsupaman: hehe, even december may be too hot for you then :)19:32
supamanyup :-)19:32
ChuckfuOh but the fall, winter and spring months are awesome low of 50's high of 70's19:34
Chuckfubut yeah summer you go AC to AC19:35
supamanhad -10°C here the other day, it was refreshing :-)19:35
=== led_dark_2 is now known as led_dark_1

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