/srv/irclogs.ubuntu.com/2015/06/06/#ubuntu-server.txt

zulhallyn,  ack00:02
=== markthomas is now known as markthomas|away
=== shadeslayer is now known as shaderslayer
=== katherine is now known as Guest24257
=== Lcawte|Away is now known as Lcawte
ibrahimhello there, I have a ubuntu server and osticket is installed on it, I want from osticket to send email notifications and for this I have installed postfix but I am not receiving emails.09:44
lordievaderGood morning.09:54
NAoHHey can anyone give me some help with my server?09:55
lordievader!ask | NAoH09:56
ubottuNAoH: Please don't ask to ask a question, simply ask the question (all on ONE line and in the channel, so that others can read and follow it easily). If anyone knows the answer they will most likely reply. :-) See also !patience09:56
ibrahim hello there, I have a ubuntu server and osticket is installed on it, I want from osticket to send email notifications and for this I have installed postfix but I am not receiving emails.09:56
NAoHI'm trying to set up a LAMP stack. It's on a fresh copy of 14.04, apache is severing, however the websites are only available on other computers in the local network, not via the public IP.09:59
NAoHI am pretty sure port 80 is forwarded correctly10:00
bekksNAoH: So what happens when you try to access your site from outside (notfrom inside using the public ip)?10:01
NAoH"connection refused"10:01
lordievaderNAoH: What is the output of 'nmap -p 80 <public-ip>'?10:02
bekksNAoH: Are you really trying from outside your network?10:02
NAoHinstalling nmap now10:03
NAoHI'm accessing it via a computer on the local network, with the public IP in the url10:03
bekksThat not going to work.10:04
bekksYou need to access it from _outside_ your network.10:04
NAoHNmap:10:04
NAoHStarting Nmap 6.47 ( http://nmap.org ) at 2015-06-06 10:04 UTC Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn Nmap done: 1 IP address (0 hosts up) scanned in 3.06 seconds10:04
bekksSee above.10:04
lordievaderNAoH: If you have an ip for me I could check for you.10:05
NAoHJust connected to it via a computer outside of the network, it's defo down10:05
NAoH121.208.43.13210:05
NAoHdon'thackmeplz10:05
lordievaderPort 80 is filtered.10:06
NAoHhttp://i.imgur.com/YWuNcIU.png10:08
NAoHdo the confs look correct?10:08
lordievaderNAoH: I suppose, does 0.13 run a firewall?10:09
NAoHwell ubuntu is a fresh install, I don't think it comes with prohibitive settings out of the box10:10
NAoHi'll check through my router. Hosting an Apache server on my windows desktop worked fine. I was able to connect from remote computers10:11
bekksIt comes with prohibitive settings by default :)10:12
NAoHGood old ubuntu, always has my back haha10:13
NAoHI tried turning ufw off completely to experiment, is that enough?10:13
NAoH(because that didn't work)10:13
bekksWhats the output of "sudo lsof -i | grep apache"?10:14
NAoHserver@UnixServer:~$ sudo lsof -i | grep apache apache2  1067     root    4u  IPv6  15797      0t0  TCP *:http (LISTEN) apache2  1070 www-data    4u  IPv6  15797      0t0  TCP *:http (LISTEN) apache2  1071 www-data    4u  IPv6  15797      0t0  TCP *:http (LISTEN)10:14
lordievader!paste | NAoH10:14
ubottuNAoH: For posting multi-line texts into the channel, please use http://paste.ubuntu.com | To post !screenshots use http://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.10:14
NAoHthanks10:14
NAoHhttp://paste.ubuntu.com/11602601/10:15
lordievaderIt does listen to ipv4 ports right?10:16
RoyKlordievader: it was only one line ;)10:16
bekksNo, it doesnt listen to IPv4 at all.10:16
lordievaderRoyK: According to his paste, it were 3 lines. My point exactly.10:16
NAoHNo problem, i'll use the paste site for CLI outputs10:17
RoyK!pastebinit10:17
ubottupastebinit is the command-line equivalent of !pastebin - Command output, or other text can be redirected to pastebinit, which then reports an URL containing the output - To use pastebinit, install the « pastebinit » package from a package manager - Simple usage: command | pastebinit -b http://paste.ubuntu.com10:17
NAoHAny idea where I should go from here?10:20
bekksConfigure your webserver to listen to IPv4.10:20
RoyKsometimes lsof etc only shows the ipv6 socket open, but it may be listening to ipv4 on the same socket. lots of software do just that10:23
RoyKtry to telnet to 127.0.0.1 <port> to check10:23
RoyK(not 'localhost', because that may mean both 127.0.0.1 and ::1)10:27
NAoHhttp://paste.ubuntu.com/11602639/10:28
NAoHMaybe i entered it in wrong?10:28
RoyKmicrosoft telnet?10:29
RoyKwhat's the server's ip address?10:29
RoyKalso - better login to the linux server and try from there - to localhost - to see if that works first10:29
RoyKin case a firewall or something stops it10:29
NAoHI think it worked10:33
NAoHhttp://paste.ubuntu.com/11602670/10:34
NAoHThat's from my ubuntu machine, running telnet to itself at port 8010:34
NAoHI should explain, I have 2 computers on my network. Linux "server machine" and Windows. The windows machine is a development platform and I want to learn to set up a server so I can experiment with writing web applications.10:36
NAoHSo the linux server will simply be a LAMP server that I just send my web app projects to, and can access on the web.10:37
NAoHin other words. I'm a little slow to catch up with all of the linux stuff10:38
NAoHbut it's cool as hell10:38
RoyKNAoH: you connected to ::1 there - try "telnet 127.0.0.1 80"10:55
NAoHok10:56
NAoHConnected no problem10:57
RoyKgood10:57
RoyKthen from windows - telnet into the server's ip address, port 8010:57
bekksIPv4 address.10:58
RoyKNAoH: do you have a valid IPv6 address on that linux server?10:59
linuxmint# blkid10:59
RoyKlinuxmint: ?10:59
linuxmintCan anyone help me understand and/or fix my disks? I have 4 disks http://dpaste.com/1NAQ2WT, but shows only 1 55GB mounted, but I have no 55GB http://dpaste.com/3GJF8AX, only 120GB?10:59
NAoHRoyK: I don't know, how do I find out?11:00
bekkslinuxmint: You are using Mint, dont you? :)11:00
RoyKNAoH: pastebin ip addr list11:00
linuxmintbekks: this computer is Mint, but my disks issue is using Ubuntu server.11:00
bekkslinuxmint: fdisk isnt recognizing the GPT labels, so use gdisk -l, at first glance.11:01
RoyKlinuxmint: pastebin lsblk output11:02
NAoHRoyK: http://paste.ubuntu.com/11602793/11:02
RoyKNAoH: nah - no ipv6 there - just a link local address11:02
NAoHRoyK: How do you mean?11:03
linuxmintbekks: http://dpaste.com/382PCZQ11:03
RoyKinet6 fe80::21b:78ff:fe84:823/64 scope link <-- fe80::... is link local11:03
linuxmintRoyK: http://dpaste.com/0S92EJJ11:04
RoyKlinuxmint: what's on those 120GB drives?11:04
NAoHRoyk: How do I set that up?11:04
linuxmintRoyK: I installed Proxmox and I thought I set up a RAID on the 4 x 120GB disks, but I don't think it's working?11:05
RoyKNAoH: don't care about that now - if your ISP hasn't supplied you with IPv6 or your network hardware doesn't support it, it's of little use except experimentation11:05
RoyKlinuxmint: try mdadm --assemble --scan11:06
linuxmintRoyK: http://dpaste.com/0J17BYS11:06
RoyKwhat drives did you use for the raid?11:07
linuxmintRoyK: I thought I used the 4 x 120GB, but maybe it didn't setup properly.11:07
RoyKif all 120GB drives, then you might have slightly broken it by installing ubuntu on one of them :P11:08
linuxmintThe issue is a monthly backup took place and filled the disk (says 92% of 55GB?) and now I'm trying to fix the disks.11:08
RoyKI'd guess trying a manual assembly might work if it's fixable11:09
RoyKwhat does /proc/mdstat have to say?11:09
linuxmintWhat's a manual assembly? pulling out cables?11:09
RoyKlinuxmint: mdadm --assemble /dev/md{something} /dev/{your,drives}11:10
linuxminthttp://dpaste.com/3SE6N7C11:10
NAoHRoyK: Do I have to allow the ports via iptables?11:10
RoyKlinuxmint: cat /proc/mdstat11:10
RoyKNAoH: obviously, yes11:10
RoyKNAoH: I'd recommend using ufw if you don't need anything special11:10
linuxminthttp://dpaste.com/2WQ7A6E11:11
NAoHRoyK: Damn, that's not obvious to me. I only just figured out iptables exsisted. What would the command to allow port 80 through?11:11
RoyKlinuxmint: ok - try something like this - mdadm --assemble /dev/md0 /dev/sd[bcd]311:11
RoyKNAoH: pastebin iptables -vnL11:12
RoyKNAoH: if nothing's blocked, no need to open11:12
NAoHRoyK: Nothing is blocked, fresh install of ubuntu11:12
RoyKand telnet <yourip> 80 from windows tells you what?11:13
NAoHhttp://paste.ubuntu.com/11602840/11:13
linuxminthttp://dpaste.com/1SN680A11:13
RoyKlinuxmint: not sure, then...11:13
NAoHRoyK: http://paste.ubuntu.com/11602840/**11:13
RoyKNAoH: all accepted - iptables isn't the issue11:14
RoyKlinuxmint: any data there you haven't backed up?11:14
linuxmintpretty much all of it, as the backup overfilled the disk, so I had nothing to transfer to a 2nd safe computer.11:15
RoyKlinuxmint: better use something like crashplan.com (or something faster?) next time. a raid isn't backup. it just helps you whenever a disk dies11:16
linuxmintyes, that's why I had RAID setup. I then auto transferred the backups to a 2nd computer, but due to disk overfill, no backup or transfer.11:17
RoyKlinuxmint: just one thing - looks like you have four 120GB drives where linux is installed on one of them, and then a 500GB drive that's not in use11:17
linuxmintyes, it's a mess somehow.11:18
RoyKlinuxmint: http://ubuntuforums.org/showthread.php?t=194727511:19
RoyKsome of that might work, but it may also ruin what's left11:19
linuxmintis this the right link? https://www.code42.com/crashplan/11:19
RoyKyep11:19
linuxmintk11:19
RoyKlinuxmint: crashplan.com is ok, but make sure you disable deduplication - if not, it renders more or less worthless when you get closer to 1TB of data11:20
RoyKI moved to crashplan.no - norwegian reseller with local servers - *far* faster, but a bit more expensive11:21
RoyKlinuxmint: I hope that data isn't too valuable :P11:22
linuxmintRoyK: I can rebuild the whole lot, but it will take a while. I woudl prefer not to. there must be a way of seeing what the error is and working it?11:22
RoyKusually --assemble should work11:23
RoyKbut if it can't find the superblock, you'll have to try to recreate it with --assume-clean in which you'll need the correct order and layout of the raid11:23
linuxmintk, sounds tricky. I'll work through that link 1st.11:25
RoyKlinuxmint: never had to do that myself - only tried it in the lab - been using mdraid for some years (10+), though, without much issues11:25
linuxmintk, hopefully this is the problem. I think if I just empty the disk a bit, I could run a backup.11:32
RoyKlinuxmint: If you can access the data, get it off to somewhere, maybe crashplan, maybe elsewhere. Then recreate the RAID somewhat more sane. You have four 120GB drives - perhaps using these ones in a RAID-5 could do, with the root on a small partition the 500GB drive or perhaps even on a pendrive11:33
RoyK?11:33
linuxmintyes, I just finished installing CrashPlan.11:38
RoyKwhat sort of raid layout did you have before this crashed?11:39
linuxmintI can't remember.11:40
linuxmintIt seems I didn't setup a RAID according to the # mdadm --assemble --scan command.11:41
RoyKwhat does pvs tell you?11:41
RoyKmay have been some lvm raid11:42
RoyKor proxmox? zfs?11:42
linuxminthttp://dpaste.com/2W5AEA011:42
RoyKI saw something about zfs being supported11:42
RoyKlinuxmint: So you installed proxmox and setup a RAID and then reinstalled with ubuntu, right?11:43
linuxmintYes, I'm a bit confused now, as I started looking at how to fix up the backups, with either Proxmox ZFS or NAS4Free.11:43
linuxmintNow I'm working through CrashPlan, so I have 4 options in my head.11:43
RoyKnever mind backup until you can access the data11:43
linuxmintk11:43
RoyKzfs isn't installed by default on ubuntu11:43
RoyKthere's fuse zfs, ok for reading and getting data off the drives, but sucks at i/o, and there's zfsonlinux, separate repos11:44
linuxmintI tried to install zfs, but I don't think I succeeded.11:44
RoyKI use zfsonlinux, but wouldn't recommend it if you need flexibility, as in adding another drive to increase storage11:44
linuxmintIt might be installed, but not configured.11:44
RoyKtry 'zpool status' and 'zpool import'11:45
RoyKactually, the partition layout looks like zfs11:46
RoyK(or perhaps not)11:46
RoyKanyway - does zpool status has anything to say?11:47
linuxmint-bash: zpool: command not found11:47
RoyKapt-get install zfs # or something11:47
RoyKdebian-zfs, perhaps11:47
RoyKthat's the fuse zfs - should do11:47
RoyKat least, it should show you if something's there11:48
linuxmint-bash: debian-zfs: command not found11:48
linuxmintI guess not installed.11:48
RoyKapt-get install zfs-fuse11:48
* RoyK had to check on an ubuntu box11:48
* RoyK usually uses debian on servers these days :P11:48
linuxmintk, # zpool status. no pools available.11:50
RoyKzpool import11:51
linuxmintyes, # zpool import. # zpool status. no pools available.11:52
RoyKno output from zpool import?11:53
linuxmintyes, no output.11:53
RoyKperhaps zpool import -D ?11:53
RoyK(without the ?)11:54
linuxmintyes, also no output.11:54
RoyKok - then I have no idea where your data went11:54
linuxmintyes, the data is still there as it's running.11:55
RoyKoh11:55
RoyKthen get it off the drives11:55
RoyKand reinstall on something sane :)11:56
linuxmintlol11:56
linuxmintlol/cry11:56
RoyKno reason to cry if you can still access the data11:57
RoyKif someone can lend you a portable drive, say 1TB, that'll probably be the easiest - crashplan tends to be slow11:59
linuxmintyes, but not sure if I can get the data off the drive, as the disk says 92% of 55GB. That means I can't run a backup. I think I'll need to look for the data (a vz file), then scp or something?11:59
RoyKI don't quite follow you12:00
linuxmintwell, I setup a 2nd computer with NAS4Free, but haven't figured it out yet.12:00
RoyKyou didn't have anything on that RAID?12:00
RoyKthose 50GB shouldn't be a problem12:00
linuxmintwell, the RAID apparently doesn't exist. There's the data of a few VMs I'll need to file where they're at.12:01
RoyKkvm? virtualbox? xen?12:02
linuxmintI think it's a kvm.12:05
RoyKthen /var/lib/libvirt/images/12:06
linuxminthttp://dpaste.com/0XX9DD812:07
RoyKno libvirt there - don't you even know which hypervisor you were using?12:09
linuxmintI need to look it up.12:10
linuxmintProxmox vE12:12
linuxmintVE12:12
RoyKno idea12:13
linuxmintk12:13
RoyKI'd suggest you start over - your data may be busted12:13
linuxminthmm, I might look for the files of the VMs atleast, so I don't have to rebuild the VMs.12:17
linuxmintReally 4 x 120GB Intel SSDs should be as reliable as it gets.12:17
RoyKthing is, you've installed ubuntu on one of them, not the 500GB drive12:24
RoyKso you've possibly messed up the raid12:24
linuxmintlikely.12:25
RoyKif you were to reinstall, I'd suggest doing so on the 500GB drive and using the SSDs for a RAID-5, giving you 360GB12:29
RoyKshould suffice on iops for even large databases12:29
RoyKand you never want to trust a single drive, at least not an SSD12:29
=== d__ is now known as Guest42345
NAoHHey14:14
NAoHany idea why my apache server will broadcast to the web on port 8080 but not 80 when my windows server will broadcast to 80?14:14
bekksBecause you configured it like that?14:16
bekksApache doesnt broadcast at all.14:16
NAoHI'm probably using the wrong terms14:16
NAoHBut I spent the last day trying to figure out why I couldn't access the website on my freshly installed ubuntu + lamp through my public IP. I had port 80 forwarded and everything, I just set apaches listening port to 8080 and I could access my IP with :8080 after the IP14:18
Patrickdkconsult the firewall14:19
Patrickdkthis includes any firewalls your isp is using14:20
NAoHAccording to the ISP, they aren't blocking any ports14:20
NAoHI don't think ubuntu-server has a firewall that blocks port 80 by default, right?14:21
bekksBelief is a good thing for a church, how about checking your firewall to be sure?14:22
Patrickdk"I had port 80 forwarded and everything" == firewall14:26
Patrickdkso that is atleast one firewall we know about14:26
Patrickdkdid you have apache on port 80?14:26
melbaubuntuHey guys i have setup my vsftpd server and now i would like to organize my index.php/html.php with filezilla. Anyone any ideas how and where to locate it?14:26
Patrickdkand forwarded your firewall correctly to port 80?14:26
melbaubuntui mean index.php/index.html14:27
NAoHbekks: How do I check my firewall?14:55
bekksHow did you until now?14:57
NAoH# iptables -L15:01
bekksiptables -L -vnx15:04
NAoHThere are no arguments in any of the fields15:06
jpdsNAoH: sudo iptables-save15:31
=== liam_ is now known as Guest73873
lalopsDirect download links/forum attatchments SEO ANALYZER SCRIPT: ATTATCHMENT FOUND: http://www.websiteadverts.org/forum/showthread.php?tid=17 WEBSITE WORTH CALCULATOR SCRIPT: http://www.websiteadverts.org/forum/showthread.php?tid=1620:18
lalopsDirect download links/forum attatchments SEO ANALYZER SCRIPT: ATTATCHMENT FOUND: http://www.websiteadverts.org/forum/showthread.php?tid=17 WEBSITE WORTH CALCULATOR SCRIPT: http://www.websiteadverts.org/forum/showthread.php?tid=1620:18
=== zz_DenBeiren is now known as DenBeiren
=== Lcawte is now known as Lcawte|Away

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