[00:02] <zul> hallyn,  ack
[09:44] <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:54] <lordievader> Good morning.
[09:55] <NAoH> Hey can anyone give me some help with my server?
[09:56] <lordievader> !ask | NAoH
[09: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:59] <NAoH> I'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.
[10:00] <NAoH> I am pretty sure port 80 is forwarded correctly
[10:01] <bekks> NAoH: So what happens when you try to access your site from outside (notfrom inside using the public ip)?
[10:01] <NAoH> "connection refused"
[10:02] <lordievader> NAoH: What is the output of 'nmap -p 80 <public-ip>'?
[10:02] <bekks> NAoH: Are you really trying from outside your network?
[10:03] <NAoH> installing nmap now
[10:03] <NAoH> I'm accessing it via a computer on the local network, with the public IP in the url
[10:04] <bekks> That not going to work.
[10:04] <bekks> You need to access it from _outside_ your network.
[10:04] <NAoH> Nmap:
[10:04] <NAoH> Starting 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 seconds
[10:04] <bekks> See above.
[10:05] <lordievader> NAoH: If you have an ip for me I could check for you.
[10:05] <NAoH> Just connected to it via a computer outside of the network, it's defo down
[10:05] <NAoH> 121.208.43.132
[10:05] <NAoH> don'thackmeplz
[10:06] <lordievader> Port 80 is filtered.
[10:08] <NAoH> http://i.imgur.com/YWuNcIU.png
[10:08] <NAoH> do the confs look correct?
[10:09] <lordievader> NAoH: I suppose, does 0.13 run a firewall?
[10:10] <NAoH> well ubuntu is a fresh install, I don't think it comes with prohibitive settings out of the box
[10:11] <NAoH> i'll check through my router. Hosting an Apache server on my windows desktop worked fine. I was able to connect from remote computers
[10:12] <bekks> It comes with prohibitive settings by default :)
[10:13] <NAoH> Good old ubuntu, always has my back haha
[10:13] <NAoH> I tried turning ufw off completely to experiment, is that enough?
[10:13] <NAoH> (because that didn't work)
[10:14] <bekks> Whats the output of "sudo lsof -i | grep apache"?
[10:14] <NAoH> server@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 | NAoH
[10:14] <NAoH> thanks
[10:15] <NAoH> http://paste.ubuntu.com/11602601/
[10:16] <lordievader> It does listen to ipv4 ports right?
[10:16] <RoyK> lordievader: it was only one line ;)
[10:16] <bekks> No, it doesnt listen to IPv4 at all.
[10:16] <lordievader> RoyK: According to his paste, it were 3 lines. My point exactly.
[10:17] <NAoH> No problem, i'll use the paste site for CLI outputs
[10:17] <RoyK> !pastebinit
[10:20] <NAoH> Any idea where I should go from here?
[10:20] <bekks> Configure your webserver to listen to IPv4.
[10:23] <RoyK> sometimes lsof etc only shows the ipv6 socket open, but it may be listening to ipv4 on the same socket. lots of software do just that
[10:23] <RoyK> try to telnet to 127.0.0.1 <port> to check
[10:27] <RoyK> (not 'localhost', because that may mean both 127.0.0.1 and ::1)
[10:28] <NAoH> http://paste.ubuntu.com/11602639/
[10:28] <NAoH> Maybe i entered it in wrong?
[10:29] <RoyK> microsoft telnet?
[10:29] <RoyK> what's the server's ip address?
[10:29] <RoyK> also - better login to the linux server and try from there - to localhost - to see if that works first
[10:29] <RoyK> in case a firewall or something stops it
[10:33] <NAoH> I think it worked
[10:34] <NAoH> http://paste.ubuntu.com/11602670/
[10:34] <NAoH> That's from my ubuntu machine, running telnet to itself at port 80
[10:36] <NAoH> I 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:37] <NAoH> So 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:38] <NAoH> in other words. I'm a little slow to catch up with all of the linux stuff
[10:38] <NAoH> but it's cool as hell
[10:55] <RoyK> NAoH: you connected to ::1 there - try "telnet 127.0.0.1 80"
[10:56] <NAoH> ok
[10:57] <NAoH> Connected no problem
[10:57] <RoyK> good
[10:57] <RoyK> then from windows - telnet into the server's ip address, port 80
[10:58] <bekks> IPv4 address.
[10:59] <RoyK> NAoH: do you have a valid IPv6 address on that linux server?
[10:59] <linuxmint> # blkid
[10:59] <RoyK> linuxmint: ?
[10:59] <linuxmint> Can 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?
[11:00] <NAoH> RoyK: I don't know, how do I find out?
[11:00] <bekks> linuxmint: You are using Mint, dont you? :)
[11:00] <RoyK> NAoH: pastebin ip addr list
[11:00] <linuxmint> bekks: this computer is Mint, but my disks issue is using Ubuntu server.
[11:01] <bekks> linuxmint: fdisk isnt recognizing the GPT labels, so use gdisk -l, at first glance.
[11:02] <RoyK> linuxmint: pastebin lsblk output
[11:02] <NAoH> RoyK: http://paste.ubuntu.com/11602793/
[11:02] <RoyK> NAoH: nah - no ipv6 there - just a link local address
[11:03] <NAoH> RoyK: How do you mean?
[11:03] <linuxmint> bekks: http://dpaste.com/382PCZQ
[11:03] <RoyK> inet6 fe80::21b:78ff:fe84:823/64 scope link <-- fe80::... is link local
[11:04] <linuxmint> RoyK: http://dpaste.com/0S92EJJ
[11:04] <RoyK> linuxmint: what's on those 120GB drives?
[11:04] <NAoH> Royk: How do I set that up?
[11:05] <linuxmint> RoyK: 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] <RoyK> NAoH: 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 experimentation
[11:06] <RoyK> linuxmint: try mdadm --assemble --scan
[11:06] <linuxmint> RoyK: http://dpaste.com/0J17BYS
[11:07] <RoyK> what drives did you use for the raid?
[11:07] <linuxmint> RoyK: I thought I used the 4 x 120GB, but maybe it didn't setup properly.
[11:08] <RoyK> if all 120GB drives, then you might have slightly broken it by installing ubuntu on one of them :P
[11:08] <linuxmint> The 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:09] <RoyK> I'd guess trying a manual assembly might work if it's fixable
[11:09] <RoyK> what does /proc/mdstat have to say?
[11:09] <linuxmint> What's a manual assembly? pulling out cables?
[11:10] <RoyK> linuxmint: mdadm --assemble /dev/md{something} /dev/{your,drives}
[11:10] <linuxmint> http://dpaste.com/3SE6N7C
[11:10] <NAoH> RoyK: Do I have to allow the ports via iptables?
[11:10] <RoyK> linuxmint: cat /proc/mdstat
[11:10] <RoyK> NAoH: obviously, yes
[11:10] <RoyK> NAoH: I'd recommend using ufw if you don't need anything special
[11:11] <linuxmint> http://dpaste.com/2WQ7A6E
[11:11] <NAoH> RoyK: 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] <RoyK> linuxmint: ok - try something like this - mdadm --assemble /dev/md0 /dev/sd[bcd]3
[11:12] <RoyK> NAoH: pastebin iptables -vnL
[11:12] <RoyK> NAoH: if nothing's blocked, no need to open
[11:12] <NAoH> RoyK: Nothing is blocked, fresh install of ubuntu
[11:13] <RoyK> and telnet <yourip> 80 from windows tells you what?
[11:13] <NAoH> http://paste.ubuntu.com/11602840/
[11:13] <linuxmint> http://dpaste.com/1SN680A
[11:13] <RoyK> linuxmint: not sure, then...
[11:13] <NAoH> RoyK: http://paste.ubuntu.com/11602840/**
[11:14] <RoyK> NAoH: all accepted - iptables isn't the issue
[11:14] <RoyK> linuxmint: any data there you haven't backed up?
[11:15] <linuxmint> pretty much all of it, as the backup overfilled the disk, so I had nothing to transfer to a 2nd safe computer.
[11:16] <RoyK> linuxmint: better use something like crashplan.com (or something faster?) next time. a raid isn't backup. it just helps you whenever a disk dies
[11:17] <linuxmint> yes, 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] <RoyK> linuxmint: 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 use
[11:18] <linuxmint> yes, it's a mess somehow.
[11:19] <RoyK> linuxmint: http://ubuntuforums.org/showthread.php?t=1947275
[11:19] <RoyK> some of that might work, but it may also ruin what's left
[11:19] <linuxmint> is this the right link? https://www.code42.com/crashplan/
[11:19] <RoyK> yep
[11:19] <linuxmint> k
[11:20] <RoyK> linuxmint: 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 data
[11:21] <RoyK> I moved to crashplan.no - norwegian reseller with local servers - *far* faster, but a bit more expensive
[11:22] <RoyK> linuxmint: I hope that data isn't too valuable :P
[11:22] <linuxmint> RoyK: 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:23] <RoyK> usually --assemble should work
[11:23] <RoyK> but 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 raid
[11:25] <linuxmint> k, sounds tricky. I'll work through that link 1st.
[11:25] <RoyK> linuxmint: never had to do that myself - only tried it in the lab - been using mdraid for some years (10+), though, without much issues
[11:32] <linuxmint> k, hopefully this is the problem. I think if I just empty the disk a bit, I could run a backup.
[11:33] <RoyK> linuxmint: 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 pendrive
[11:33] <RoyK> ?
[11:38] <linuxmint> yes, I just finished installing CrashPlan.
[11:39] <RoyK> what sort of raid layout did you have before this crashed?
[11:40] <linuxmint> I can't remember.
[11:41] <linuxmint> It seems I didn't setup a RAID according to the # mdadm --assemble --scan command.
[11:41] <RoyK> what does pvs tell you?
[11:42] <RoyK> may have been some lvm raid
[11:42] <RoyK> or proxmox? zfs?
[11:42] <linuxmint> http://dpaste.com/2W5AEA0
[11:42] <RoyK> I saw something about zfs being supported
[11:43] <RoyK> linuxmint: So you installed proxmox and setup a RAID and then reinstalled with ubuntu, right?
[11:43] <linuxmint> Yes, 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] <linuxmint> Now I'm working through CrashPlan, so I have 4 options in my head.
[11:43] <RoyK> never mind backup until you can access the data
[11:43] <linuxmint> k
[11:43] <RoyK> zfs isn't installed by default on ubuntu
[11:44] <RoyK> there's fuse zfs, ok for reading and getting data off the drives, but sucks at i/o, and there's zfsonlinux, separate repos
[11:44] <linuxmint> I tried to install zfs, but I don't think I succeeded.
[11:44] <RoyK> I use zfsonlinux, but wouldn't recommend it if you need flexibility, as in adding another drive to increase storage
[11:44] <linuxmint> It might be installed, but not configured.
[11:45] <RoyK> try 'zpool status' and 'zpool import'
[11:46] <RoyK> actually, the partition layout looks like zfs
[11:46] <RoyK> (or perhaps not)
[11:47] <RoyK> anyway - does zpool status has anything to say?
[11:47] <linuxmint> -bash: zpool: command not found
[11:47] <RoyK> apt-get install zfs # or something
[11:47] <RoyK> debian-zfs, perhaps
[11:47] <RoyK> that's the fuse zfs - should do
[11:48] <RoyK> at least, it should show you if something's there
[11:48] <linuxmint> -bash: debian-zfs: command not found
[11:48] <linuxmint> I guess not installed.
[11:48] <RoyK> apt-get install zfs-fuse
[11:48]  * RoyK had to check on an ubuntu box
[11:48]  * RoyK usually uses debian on servers these days :P
[11:50] <linuxmint> k, # zpool status. no pools available.
[11:51] <RoyK> zpool import
[11:52] <linuxmint> yes, # zpool import. # zpool status. no pools available.
[11:53] <RoyK> no output from zpool import?
[11:53] <linuxmint> yes, no output.
[11:53] <RoyK> perhaps zpool import -D ?
[11:54] <RoyK> (without the ?)
[11:54] <linuxmint> yes, also no output.
[11:54] <RoyK> ok - then I have no idea where your data went
[11:55] <linuxmint> yes, the data is still there as it's running.
[11:55] <RoyK> oh
[11:55] <RoyK> then get it off the drives
[11:56] <RoyK> and reinstall on something sane :)
[11:56] <linuxmint> lol
[11:56] <linuxmint> lol/cry
[11:57] <RoyK> no reason to cry if you can still access the data
[11:59] <RoyK> if someone can lend you a portable drive, say 1TB, that'll probably be the easiest - crashplan tends to be slow
[11:59] <linuxmint> yes, 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?
[12:00] <RoyK> I don't quite follow you
[12:00] <linuxmint> well, I setup a 2nd computer with NAS4Free, but haven't figured it out yet.
[12:00] <RoyK> you didn't have anything on that RAID?
[12:00] <RoyK> those 50GB shouldn't be a problem
[12:01] <linuxmint> well, the RAID apparently doesn't exist. There's the data of a few VMs I'll need to file where they're at.
[12:02] <RoyK> kvm? virtualbox? xen?
[12:05] <linuxmint> I think it's a kvm.
[12:06] <RoyK> then /var/lib/libvirt/images/
[12:07] <linuxmint> http://dpaste.com/0XX9DD8
[12:09] <RoyK> no libvirt there - don't you even know which hypervisor you were using?
[12:10] <linuxmint> I need to look it up.
[12:12] <linuxmint> Proxmox vE
[12:12] <linuxmint> VE
[12:13] <RoyK> no idea
[12:13] <linuxmint> k
[12:13] <RoyK> I'd suggest you start over - your data may be busted
[12:17] <linuxmint> hmm, I might look for the files of the VMs atleast, so I don't have to rebuild the VMs.
[12:17] <linuxmint> Really 4 x 120GB Intel SSDs should be as reliable as it gets.
[12:24] <RoyK> thing is, you've installed ubuntu on one of them, not the 500GB drive
[12:24] <RoyK> so you've possibly messed up the raid
[12:25] <linuxmint> likely.
[12:29] <RoyK> if you were to reinstall, I'd suggest doing so on the 500GB drive and using the SSDs for a RAID-5, giving you 360GB
[12:29] <RoyK> should suffice on iops for even large databases
[12:29] <RoyK> and you never want to trust a single drive, at least not an SSD
[14:14] <NAoH> Hey
[14:14] <NAoH> any 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:16] <bekks> Because you configured it like that?
[14:16] <bekks> Apache doesnt broadcast at all.
[14:16] <NAoH> I'm probably using the wrong terms
[14:18] <NAoH> But 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 IP
[14:19] <Patrickdk> consult the firewall
[14:20] <Patrickdk> this includes any firewalls your isp is using
[14:20] <NAoH> According to the ISP, they aren't blocking any ports
[14:21] <NAoH> I don't think ubuntu-server has a firewall that blocks port 80 by default, right?
[14:22] <bekks> Belief is a good thing for a church, how about checking your firewall to be sure?
[14:26] <Patrickdk> "I had port 80 forwarded and everything" == firewall
[14:26] <Patrickdk> so that is atleast one firewall we know about
[14:26] <Patrickdk> did you have apache on port 80?
[14:26] <melbaubuntu> Hey 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] <Patrickdk> and forwarded your firewall correctly to port 80?
[14:27] <melbaubuntu> i mean index.php/index.html
[14:55] <NAoH> bekks: How do I check my firewall?
[14:57] <bekks> How did you until now?
[15:01] <NAoH> # iptables -L
[15:04] <bekks> iptables -L -vnx
[15:06] <NAoH> There are no arguments in any of the fields
[15:31] <jpds> NAoH: sudo iptables-save
[20:18] <lalops> Direct 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=16
[20:18] <lalops> Direct 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=16