/srv/irclogs.ubuntu.com/2018/03/07/#ubuntu-server.txt

papajoi need help!!!!00:35
papajoanyone professional with ubuntu server ? i'm a student and learning00:36
naccpapajo: you should just ask your question(s)00:51
papajosorry i was distracted , i'm trying to set up my cyberduck ftp client to be able to upload to my www folder on my ubunutu server and i'm not sure what i'm doing wrong, i gave all the correct permission for my user i followed the ubunutu server documentation01:21
papajoi also tried Configure the user's home directory and i get this usermod: user ************ is currently used by process 175901:24
geniiFrom usermod manpage. "You must make certain that the named user is not executing any processes when this command is being executed if the user's numerical user ID, the user's name, or the user's home directory is being changed."01:50
geniiThis why it's advantagous to have a second user with sudo ability, in case the primary one requires doing something like this with usermod01:52
=== nchambers is now known as uplime
=== chat is now known as Guest64523
stiltzkinFigure I'll ask here as well as the #ubuntu channel - I'm trying to determine the root cause for a consistent system hang issue I'm running into. At random, during approx 8-48 hour periods, the server hangs to a black screen. It's not recoverable by killing X, by switching virtual terminals, or with REISUB. I have to physically reset the machine.03:25
stiltzkinToday the system hung and there was something printed to the console: https://i.imgur.com/wzl5HuI.jpg03:26
stiltzkinAny ideas appreciated.03:27
masonstiltzkin: that looks like it died on boot, as it couldn't get a root device. Look at regenerating initramfs, updating grub, etc.03:32
stiltzkinBut the system boots correctly03:38
stiltzkinupon reset03:38
stiltzkinso I have no idea why that would be the case03:38
masonOh, that's a bit odd.03:41
masonstiltzkin: Maybe check SMART status or somesuch. Maybe you have a marginal disk. There's probably a better explanation, but I'm not sure what it would be.03:42
stiltzkinSMART checks out03:42
stiltzkinthe message printed to console confuses me since it should not be looking to /dev/md* for the root disk03:42
masonstiltzkin: So, the system couldn't find a component of its root MD-RAID1 or somesuch... Maybe it didn't spin up on cold boot, in time, but did on reboot?03:42
stiltzkinRoot is not on the RAID03:43
stiltzkinthis is a fileserver with a single host SSD03:43
masonOh! Heh.03:43
stiltzkinso it shouldn't have to look to /dev/md* for root03:43
masonWelcome to systemd making everything so very nearly transparent.03:43
masonYeah.03:43
stiltzkinlol.03:43
stiltzkinI have noticed one other tidbit: sometimes I will recover from one of these hangs with a hard reset and the system will not boot because the UEFI drive to boot from in BIOS becomes randomly unchecked. I have to boot into BIOS, select 'ubuntu' as the UEFI drive to boot from, and reboot to get the system up03:45
masonAlso a bit odd.03:45
stiltzkinThat to me makes me think the drive is failing (responding too slow on boot to show as a boot target?) but the drive seems fine03:45
masonLately dpkg-reconfigure grub-uefi (IIRC) erases my boot entries entirely and errors out, which is fun on kernel upgrades...03:46
stiltzkinhmm so maybe that's something else then03:46
masonYeah, that's a bit odd too. Maybe see if there's a firmware upgrade available...? That seems like it should be related, that UEFI bit.03:46
masonThe funny bit is, with a single disk... where did it get the initramfs and kernel, if the root disk isn't available?03:47
stiltzkinfor the drive? there may be. it's a 2 year old SSD03:47
masonIf you can get it back into busybox sometime, poke around and see what devices are there, etc.03:47
stiltzkinin the picture I sent the system is completely hung so there's no chance of keyboard input03:48
stiltzkinbut I have it fully back up now, everything seems normal03:48
masonAh... That's also not a fantastic sign.03:48
masonBut nothing is leaping out at me as a plausible cause.03:48
stiltzkinbut there's a good chance when I check in the morning, the system will be down. Or if not, then it will be down sometime tomorrow afternoon or tomorrow night. Guaranteed03:48
masonSo, it's spontaneously rebooting to get you to that spot?03:49
masonThat seems like marginal hardware.03:49
stiltzkinI've actually never seen the screen I sent before. Every other time it does this it hangs to a completely black screen03:49
stiltzkinFirst time I've seen those messages is today03:49
masonEither way... A spontaneous reboot is a bad sign, and I'd be hard-pressed to blame even systemd.03:50
stiltzkinrunning extended smart test on the host ssd now...03:50
masonI'd also maybe watch heat, watch dmesg remotely... Let's see...03:50
masonstiltzkin: https://www.cyberciti.biz/tips/linux-netconsole-log-management-tutorial.html03:51
masonGet that going, and maybe you'll see badness emerging before whatever event is taking the system out.03:51
stiltzkinyeah that's a good idea03:51
stiltzkinyeah the test checks out, looks normal on the drive03:52
masonSometimes if you have an issue that freezes you up like that, the system won't log anything, you won't be able to take a crash dump, nothing, but the udp log can catch the initial badness.03:52
stiltzkinmhm03:52
stiltzkingood advice03:52
masonI had to use that recently to confirm that Nouveau is bad and doesn't work on my work laptop.03:53
stiltzkinthis sounds like a job for the raspberry pi in my drawer03:53
masonThat could do it.03:53
masonNote that I've had issues with predictably bad interface naming and netconsole.03:55
masonIf you have issues setting it up, try net.ifnames=0 on your kernel command line.03:55
stiltzkinOK03:56
stiltzkinGood to know, thank you03:56
smoserhallyn: i may well have talked of one before.06:35
smoseri think there might be one in buildroot...or in yocto06:35
smoseri think i'd just use libguestfs or a qemu in some way and do it all in the guest. heavier but more flexible.06:36
hallynyeah libguestfs is an option, as is us fuseext2.  (using fuseext2 right now but it hangs on umount)  i'll look at buildroot, thx06:37
hallynoh, maybe i can use e2tools?06:42
hallynyup that'll work :)06:47
lordievaderGood morning06:57
tobascojamespage: coreycb i can see that zunclient is packaged, is there any plans on packaging the zun project?12:19
coreycbzul: no immediate plans that i know of12:41
coreycbzul: would be happy to help usher it through if it were contributed of course12:42
coreycbzul: sorry!12:42
coreycbtobasco: ^12:42
* coreycb needs coffee12:43
zulcoreycb:  Freudian slip?12:43
coreycbzul: possibly :)12:45
zulheh12:45
* zul goes back to enjoying caffeinated beverage12:45
tobascocoreycb: ok thanks for the info, sorry to bother but is there any docs on the packaging procedure for a packaging-novice? :)13:09
coreycbtobasco: sure, i'll paste a couple of links13:15
coreycbfor working with Ubuntu OpenStack packages in general: https://wiki.ubuntu.com/OpenStack/CorePackages13:15
coreycbUbuntu packaging overview: http://packaging.ubuntu.com13:16
coreycbtobasco: for a new package i would typically start by cloning the source for say, keystone, as a starting point13:17
coreycband then start updating it for the new project13:18
coreycbtobasco: package source is all here btw: https://code.launchpad.net/~ubuntu-server-dev/+git13:20
tobascocoreycb: thanks! i will educate myself and hopefully learn a few things :)13:26
coreycbtobasco: cool, i'll be here if you have questions.13:28
jellyis 18.04 frozen now, there an installation image somewhere to test all the interesting ways my software will break on it before it's out?13:40
TJ-jelly: Feature-freeze last week but a lot can still change as bugs get ironed out13:41
jellyof course13:42
sarnoldthis might be a good starting point http://cdimage.ubuntu.com/daily-live/current/13:43
TJ-well! that saved me some copy/pasting :p13:44
jellythanks13:44
TJ-or the daily/ (as opposed to daily-live)13:44
sarnoldI wish we had a nice guide to all the various images13:44
jellyeven if I'm going to prefer http://cdimage.ubuntu.com/ubuntu-server/daily/current/ and try to plug it to our pxe/preseed thingy13:44
sarnoldthere's something like thousands of them and my firefox history doesn't have them all :)13:45
rbasakahasenack: https://code.launchpad.net/~nacc/usd-importer/+git/usd-importer/+merge/33680416:18
naccrbasak: were you able to look at my pushes to add tests to the importer?16:18
rbasaknacc: yeah. I'm still pondering that.16:22
naccrbasak: ack, some of the fixlets in that branch are probably not ideal -- I tried to document in the MP what I wanted to test for16:23
naccrbasak: I think I'm correctly testing for what I described; perhaps we can extend the tests in the future, if you have further criteria?16:23
rbasaknacc: it's the structure of the tests themselves. I think I'd like to see what you defined what you wanted to test represented as a data structure of your expectations, rather than checking each individual thing in code. However, I don't think it's needed to block at all, in that if you're testing what we want to test, it's fine to land and then refactor the tests later.16:25
rbasaknacc: but I think that branch is still a wip, right?16:25
naccrbasak: do you have an example (even pseudocode) of what you mean by a structure of expectations?16:25
naccrbasak: you mean like something that defines expected import tags, expected orphan tags, expected branch commits, etc?16:26
naccrbasak: https://code.launchpad.net/~nacc/usd-importer/+git/usd-importer/+merge/340874 this one is 'ready'16:26
naccrbasak: the other, which actually includes real fixes is WIP, as I need to write the tests I mentioned in that MP16:26
rbasaknacc: it'll be a really common pattern for importer tests I think. "When the set of publishes looks like X, I expect to see the imported git structure to look like Y"16:27
naccrbasak: yeah, that's a good point16:27
naccrbasak: just trying to figure out how to descirbe the git structure without having to describe hashes, etc.16:28
rbasaknacc: separately, I think I'd like to try to more formally specify the importer in terms of the results.16:28
rbasaknacc: yeah, that's the challenge.16:28
naccrbasak: unless what i wrote is what you meant (tags, branches, etc)16:28
rbasaknacc: combining the two things, it'd be nice if the specification then maps directly to the tests.16:28
rbasaknacc: got time for a HO?16:30
naccrbasak: ack16:30
naccrbasak: standup?16:30
rbasakomw16:30
=== tobasco is now known as tobasco|away
DexDeadlyHello.  I'm having an issue.  I have ubuntu 16.04 installed and its been running fine for a while.  However now when I try to access the server via \\ip i keep getting not found16:59
Odd_BlokeDexDeadly: I don't entirely follow; what server are you trying to access, and how are you trying to access it?17:00
DexDeadlyI have samba installed on the ubuntu server but I can't access it17:00
DexDeadlyit used to work but it is not any more17:00
Odd_BlokeDid you make any changes?17:00
DexDeadlyI can ping it17:01
DexDeadlyI didn't.  One thing I noticed recently was my /dev/sda1 boot was full so I cleared that, made sure all the apt-get update/upgrade all was done17:01
Odd_BlokeDexDeadly: Is the Samba service definitely running?17:01
DexDeadlysudo service status smbd says active17:02
Odd_BlokeI've never really used Samba, I'm afraid, so I'm now out of my depth.17:03
DexDeadlyok17:05
TJ-DexDeadly: check there are no firewall rules blocking it; check the various samba services are listening on the correct network interfaces with "sudo ss -tnlp"17:05
DexDeadlyhmm ok i just disabled my windows firewall, i thought it was17:07
DexDeadlynow im getting can not access17:08
=== uplime is now known as nchambers
naccrbasak: 100% phasing is 4943 packages17:53
xpistosHey all. How do I use /etc/cron.d ? I have a file called "test" that has a cronjob in it to call a script but it does't work? Do I have to enable it or something?18:30
DexDeadlySo I still can't seem to get in, anything else?18:53
DexDeadlyIs my smb.conf correct.  This worked before19:43
DexDeadlyhttps://pastebin.com/BGN9an0i19:43
DexDeadlyI still can't access the samba share19:44
DexDeadlysorry lost connection.  Anyone have an idea of what else I can try21:03
patdk-lapyour smb.conf is 100% wrong21:09
patdk-lapatleast if you want to connect to anything >windows xp21:09
DexDeadlymay I ask what21:14
sdezielDexDeadly: it may be easier for others to review your samba conf if you pasted the output of "testparm -s" instead of the smb.conf file21:14
DexDeadlycause it used to work21:14
DexDeadlysure i can do that21:14
patdk-lapdefine, used to work21:14
patdk-lapsomething changed21:14
patdk-laplike upgrading from windows 7 to windows 1021:14
DexDeadlyIt worked when I originally had set it up.21:14
patdk-lapdisabling smb1 cause it's so insecure21:14
DexDeadlyI have always used windows 1021:15
patdk-lapodd21:15
patdk-lapmaybe you didn't have smb1 disabled and now you do21:15
patdk-lapthere are a lot of settings I have to change in smb.conf to make it work for me21:16
patdk-lapenable signing, enable spnego, disable the low quality password hashing21:16
DexDeadlyhttps://pastebin.com/BErX8fC921:16
DexDeadlytheres the testparm -s21:17
patdk-lapsmb encrypt=auto21:17
patdk-lapserver min protocol = SMB221:17
patdk-lapclient min protocol = SMB221:17
patdk-lapclient ntlmv2 auth = yes21:17
patdk-lapntlm auth = no21:17
patdk-lapserver signing = mandatory21:17
patdk-lapclient signing = mandatory21:17
patdk-lapthose are my basic settings21:17
DexDeadlythe smb.conf was just the default that was created and I just added what I needed at the end21:18
patdk-lapyes, and that will be the default from that version of samba, that is pretty old, and it's defaults won't match what is in use today21:19
patdk-lapall it takes is a single microsoft patch, and it's no longer compatable21:19
DexDeadlythat does not suprise me21:19
DexDeadlydo you clear out all those settings21:19
sdezielDexDeadly: I don't have time to look into yours but mine works well with Windows 7 clients (older are not supported by design) https://paste.ubuntu.com/p/kjj72jb93w/21:24
DexDeadlythanks I'll take a look21:26
DexDeadlyI just added those lines you mentioned to the bottom of my smb.conf file21:26
patdk-laphow does that work?21:27
DexDeadlystill no go21:27
patdk-lapthey need to be in the general section21:27
patdk-lapmaybe you need to start with the samba manual21:28
DexDeadlyahh wait thats my issue21:28
DexDeadlyyea im gonna have to read the new way21:28
DexDeadlyi thought it was something simple but this may need redone21:28
patdk-lapthe signing = mandatory might cause you issues, but shouldn't21:28
patdk-lapI require signing on all mine machines so no one can inject data21:29
sdezielsigning = mandatory is the new default (which is why it doesn't show up in testparm -s)21:29
sdezielDexDeadly: are you sure samba wasn't upgraded without your knowing? zgrep samba /var/log/apt/history*21:30
sdezielIIRC, the signing default value was changed due to the set of SMB vuln that were addressed not too long ago21:30
patdk-lapsdeziel, shows up in mine21:31
patdk-lapbut I am on trusty on this server I'm looking at21:31
sdezielpatdk-lap: trusty has the same version xenial has21:33
sdezielpatdk-lap: I'm sorry, I was wrong on the "server signing" default value.21:45
DexDeadlysorry i'm at work to lol let me get to this22:05
DexDeadlynope took out server signing and still same thing22:17
=== berglh_ is now known as berglh

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