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