/srv/irclogs.ubuntu.com/2013/10/06/#ubuntu-server.txt

wilee-nileeNot sure if this is appropriate channel, however I'm a fairly experienced ubuntu user except in this area.  So I have a smart tv, I have minidlna working with home and, video, but can't get it to read an external usb HD, not sure the pathway. I00:41
crassweird, I have been able to use resize2fs on a live filesystem in the past02:33
crassbut now it appears to be requiring that the block device is not in use...02:33
crassany ideas why now resize2fs fails when opening the device because its in use?02:34
gartralalright all, i've been fighting this all night, even with ddrescue I can't get the superblock of my booting partition from my server to transfer to a new drive, any advice?05:44
sarnoldgartral: (just a quick note before I go to bed...) if you really can't get the superblock there tend to be superblock backups made around 8192 or 8193 or something, there's a whole string of superblock backups. Probably you can't get your master boot record or partition boot record to copy over instead, but those might be easier to create anew anyhow. Hope this helps :) have fun06:15
darkXplo_hi guysss06:47
darkXplo_can anyone help me with UPW06:48
darkXplo_https://gist.github.com/anonymous/39e070dbc70c45c4850206:49
darkXplo_UFW06:50
Jinxed-Anyone know of a video conferencing server for a private network that would allow android mobile devices to connect07:48
gartralsarnold: yea, none were working08:01
gartralJinxed-: asterisk should allow that08:10
chmacAdded eth1 to /etc/network/interfaces with a static ip for a private subnet (10.0.0.0/24), but the route for that subnet is not being created...09:54
chmacDo I need to manually add the route somewhere?09:54
chmacI think on my other machine it "just works"...09:54
Svetlanahttp://multipath-tcp.org/pmwiki.php/Users/ConfigureRouting has some details about how this is done. Is it how you do it on both machines?09:56
SvetlanaLooking at http://manpages.ubuntu.com/manpages/precise/man5/interfaces.5.html I think you can add a command into interfaces file directly... like 'IFACE OPTIONS' section says. Is this how you do it?09:58
chmacSvetlana: http://pastie.org/838145510:00
chmacSvetlana: Yeah, I'm reading here and there that I could add a `post up route add foo`10:00
chmacBut that seems like a hack, and I'm not sure why it's working on one machine but not another10:01
chmacThese are both ubuntu-server instances running inside virtualbox10:01
SvetlanaIs this how your interfaces file looks under both machines? Does any of them have different files in /etc/network/if-up.d/?10:02
Svetlana(I gave you two links. https://wiki.merproject.org/wiki/Nemo/USBNetworking is an example for the second one: you would have to replace the stuff after 'up' and 'down' with 'route bla bla' commands.)10:03
chmacSvetlana: The machine that works has a postfix file in there, let me see if there's anything useful in it...10:03
chmacOtherwise, the md5s match on all the files on both machines10:04
chmacSvetlana Nothing about routing in the postfix file10:04
SvetlanaAnd while the route is not bring created, is the connection activated at all? 'sudo ifconfig' shows 'inet addr' line for the active ones.10:04
chmacI think I could solve it with the `post up route add` option, but it's a Sunday morning and I'm inclined to spend a little time to see if I can figure out the issue!10:04
chmacSvetlana: Hmm, let me restart the vm and see...10:05
chmacSvetlana: Yeah, the interface is up10:05
Svetlanawhat IP address does ifconfig show?10:06
chmac10.1.0.210:06
SvetlanaOkay, that looks fine.10:06
chmacShows a netmask of 255.255.255.255 though...10:06
chmacAha, while my other machine shows 255.255.255.010:06
chmacCrazy, typo in the interfaces file, I wrote netmasT instead of netmasK :-)10:07
chmacSvetlana: Thanks a lot for your help, I really appreciate it10:07
Svetlanahttp://manpages.ubuntu.com/manpages/precise/man5/interfaces.5.html in 'static method' it does not list 'network' rule, but you have it. It is a bit strange.10:08
chmacSvetlana: Hmm, good point, probably ignores it, I guess it ignored the netmasT line! :-)10:09
SvetlanaWhen you said 'Nothing about routing in the postfix file', you meant the interfaces file, right? Or were you referring to the if-up.d/* files, which you compared?10:10
=== mibofra- is now known as mibofra
=== freeflying_away is now known as freeflying
eagles0513875_hey guys i am trying to change the php upload size and for some reason even after changing the upload_max_filesize and restarting apache the filesize has not changed11:45
=== freeflying is now known as freeflying_away
=== freeflying_away is now known as freeflying
=== freeflying is now known as freeflying_away
AntelopeSaladhey guys, i'm setting up my first server and i'm curious if init.d and upstart scripts will conflict with each other15:48
AntelopeSaladbasically i've installed things like nginx through apt-get (after updating my source list) and that seems to setup an init.d script but i've been following guides that create a custom upstart config15:48
AntelopeSaladis there a way to somehow disable the init.d version so it doesn't run double the processes?15:49
qman__most packages which have upstart scripts install a dummy init.d script, verify first that there isn't an upstart script already15:50
qman__that said, if the package includes an init.d script and not an upstart script, adding your own in will conflict with the package contents15:50
AntelopeSaladqman__: what can i do to fix it? i made the upstart config afterwards15:51
qman__it's possible to manually remove/disable the init.d script and install the upstart script, but this will break every time you update the package15:51
qman__the correct way to change this is to rebuild the package using the upstart script instead15:51
AntelopeSaladwhat do you think is the most sane way to ensure that the process stays up?15:51
qman__the most sane way is to stick to the distro default and not touch it15:52
AntelopeSaladi didn't build anything, all i did was apt install nginx15:52
AntelopeSaladbut i wasn't sure if that came with any type of process monitoring15:52
qman__it doesn't; neither does upstart15:52
AntelopeSaladbut i setup process monitoring with upstart (i think)15:53
qman__if you need process monitoring, implement that separately, either with a simple cron job or to full on systems like nagios15:53
AntelopeSaladthis is what i setup by following some tutorial http://pastie.org/838193215:54
AntelopeSaladi thought upstart was the standard way to make sure stuff loads on startup and doesn't die15:55
qman__upstart provides service management the same as traditional sysvinit did; it has different features15:55
qman__it is not a monitoring system15:55
AntelopeSaladmaybe i'm using the wrong termonology15:56
qman__it can be used by your monitoring system, though15:56
AntelopeSaladall i want to do is make sure if nginx dies that it gets restarted15:56
AntelopeSaladand that it starts when the system boots up15:56
qman__in a traditional init script you'd manually implement respawn on failure in the service itself15:56
qman__where upstart provides rudimentary functionality to respawn on failure15:56
AntelopeSaladso i should use the default init.d script and not touch it, and that will take care of it loading on startup?15:57
qman__yes15:57
AntelopeSaladbut then use something other than upstart to make sure it doesn't die?15:57
qman__yes, if you care about monitoring, implement it15:57
qman__that can be anything from a simple cron job that checks if it's running to a full featured monitoring system like nagios15:58
AntelopeSaladif i delete the config file in the /init/ dir is that good enough to completely reverse the mistake i made?15:58
qman__if that's all you created, then yes15:58
AntelopeSalad(and reboot the machine of course)15:58
qman__no reboot necessary15:58
qman__while converting to upstart is a good thing long term, sticking to the system defaults wherever possible is the most sane way to manage a system, because then updates won't break things16:00
qman__nginx will more than likely be converted to upstart in a future release if it hasn't already16:00
AntelopeSaladok thanks, so it's really up to the tool to handle supplying the startup scripts16:00
qman__correct; you can do it yourself but there's a lot to take into consideration16:00
qman__and it involves building your own packages16:01
AntelopeSaladthat sounds like the opposite of what i want to do haha16:01
qman__if you want set and forget, sticking to defaults is best16:01
AntelopeSaladbtw is it standard to run "service nginx start" or should i be using sudo?16:01
qman__you generally need root privileges to run the service command16:02
AntelopeSaladok, i actually didn't try it without it but i wasn't sure if running a process as root was a good idea16:02
qman__it doesn't run nginx as root16:02
qman__or at least it shouldn't, that would be a very bad bug16:03
qman__generally the init script handles deescalation of privileges16:03
AntelopeSaladi think it's running it as root16:03
AntelopeSaladhttp://pastie.org/838196316:04
qman__ah, I see16:04
qman__only the main binary is using root, the subprocesses are running unprivileged16:05
AntelopeSaladi'm not sure though16:05
qman__which looks to be by design16:05
AntelopeSaladyeah16:05
qman__I'm not intimately familiar with nginx16:05
AntelopeSaladthe worker is what gets touched by the public maybe?16:05
qman__but that's a sane setup16:05
qman__right16:05
AntelopeSaladbecause in the nginx conf i had to supply the # of workers16:05
AntelopeSaladi chose 1 in this case16:05
qman__apache does the same thing16:06
qman__there's one root process and everything else is unprivileged16:06
AntelopeSaladok, thanks for the advice, i'll continue to install everything as i did before and look into nagios for making sure they don't explode16:07
AntelopeSalad(minus the upstart confs)16:07
qman__http://pastie.org/838196916:07
qman__there's lots of ways to do it, nagios is just one popular one16:07
AntelopeSaladis it lightweight?16:08
qman__not really, it's made to be comprehensive16:08
AntelopeSaladi'm running quite a bit on a micro instance, coming really close to the ram limitation16:08
qman__well there's two main ways to run nagios16:08
qman__you can run with a client, or clientless16:08
qman__clientless, your nagios server just makes connection attempts to see if the service is up16:09
qman__you can http request and based on the result, either say it's up, or failed16:09
AntelopeSaladoh, so i can't even run nagois on the same server as the deployed web app?16:09
qman__right16:09
AntelopeSaladyeah that's definitely not going to work in this case16:09
qman__well, you can, but it's not the best design setup16:10
qman__if you just want local monitoring, you'd be better off with a simple shell script16:10
AntelopeSaladatm i'm dealing with 1 instance16:10
AntelopeSaladmaybe i should look into something tied into the language the app is written in?16:10
qman__this is about the most basic script: http://pastie.org/838197316:12
qman__you'd then set that script up to run as root in the crontab every X minutes depending on your need16:12
=== Jikan is now known as Jikai
AntelopeSaladoh16:13
qman__you can get more complicated by checking pids or logs16:13
qman__or add a line to email you when it's down16:14
qman__whatever you need16:14
AntelopeSaladwould the pid be in /var/run/nginx.pid?16:14
AntelopeSaladi'm comparing your script to that upstart conf and it seems similar, except the upstart one handles the workers16:15
=== neal__- is now known as neal__
AntelopeSaladi'm not sure what happens if nginx crashes, it might be possible for it to be alive but with no workers in which case that's bad16:15
qman__probably, I don't have any nginx servers to check16:15
qman__well, one thing you can do16:15
qman__http://pastie.org/838198616:16
qman__er, want that to say restart16:16
AntelopeSaladis restart smart enough to also start if it can't find something to restart?16:17
qman__should be, you can test it16:18
qman__kill nginx without stopping the service, then try16:18
qman__if it isn't, you could stop then start16:19
qman__then if stop failed it would continue to start16:19
AntelopeSaladit seems to be ok, i killed the master manually16:19
AntelopeSaladand it restarted16:19
AntelopeSaladyep it works, i killed both the master+worker manually and restart still worked16:19
=== Jikai is now known as Jikan
AntelopeSalada sources.list.d file is saying to use "squeeze" for an ubuntu code name for a certain tool i'm trying to install, they don't seem to have one for raring or precise -- is this going to be bad if i use squeeze?18:13
AntelopeSaladi'm using ubuntu 13.x18:13
geniiAntelopeSalad: What exactly are you trying to install?18:17
AntelopeSaladgenii: redis, and after some googling it seems like the dotdeb.org list is my best hope for a recent version18:17
TJ-AntelopeSalad: The biggest challenge can be what the package depends on (other packages and their versions) because they may not be correct in Ubuntu. The other issue is slight difference in  package config installation practices / locations between Debian and Ubuntu18:18
AntelopeSaladi decided to take a risk and just tried it using "stable" as the code and it seems to have installed correctly, do you think i'm in the clear if it happened to complete without errors?18:19
TJ-AntelopeSalad: Well you've managed to avoid the dependency issues so just monitor it, its log-files, and the system log-files until you're satisfied18:20
AntelopeSaladok thanks18:20
geniiThere seems to be a popular PPA for it which is maintained18:20
AntelopeSaladgenii: which?18:20
geniiAntelopeSalad: https://launchpad.net/~rwky/+archive/redis18:21
geniiLast build was 5 weeks ago which is pretty recent18:21
AntelopeSaladah yes, i saw this earlier but it didn't contain the steps on how to get it into the sources list18:21
geniiAntelopeSalad: sudo add-apt-repository ppa:rwky/redis     ..in this case. DISCLAIMER: USE PPAs AT YOUR OWN RISK18:23
AntelopeSaladyeah i got hung up on doing the key step18:24
AntelopeSaladmost other tools i've used had a url that had the key18:24
AntelopeSaladthis one links to the key but it's not something i can just wget18:24
geniiBut in this scenario, the PPA is far less dangerous than adding Debian repositories18:24
AntelopeSaladoh, so this ppa method bypasses having to do the sources.list steps?18:25
geniiAntelopeSalad: It makes an entry in /etc/apt/sources.list.d/ directory with the PPA name18:25
AntelopeSaladif i delete that file in the sources.list.d dir does that completely wipe it out after i run apt-get update?18:26
geniiAntelopeSalad: This way no foreign entries make it into /etc/apt/sources.list main file and you can always later do ppa-purge command if it was problemmatic18:26
AntelopeSaladbecause if this launchpad version works i'd like to delete the dotdev one18:26
geniiAntelopeSalad: No, just deleting the file there doesn't remove the app if it was already installed. You need to do the ppa-purge as described. Alternately with ppa name, like: sudo ppa-purge <name>18:27
AntelopeSaladok18:31
AntelopeSaladit seems to have worked using the launchpad's ppa, thanks18:31
AntelopeSaladthat version it has is the latest stable one too18:32
geniiAntelopeSalad: Just remember that if you experience some issue with it, you probably won't find support here and will need to talk to the PPA maintainer or to the redis people instead :)18:35
AntelopeSaladgenii: yeah18:36
AntelopeSaladalso 1 one last thing if you don't mind...18:37
AntelopeSaladif i do a dpkg -i foobar.deb , this still gives me an init.d script right?18:37
geniiAntelopeSalad: If the package installs one18:38
AntelopeSaladok, so that's up to the package -- gotcha18:38
AntelopeSaladthanks again, in this i guess i got lucky and it did (elasticsearch)18:39
zexcrizwhat is the difference between hosting our data on our VPS and in the other in the cloud ? i doubt there is any difference19:59
bekkszexcriz: How important is that data?20:05
zexcrizbekks, currently hosting a VPS and now i was curious what are advantages or disadvantages if any if go for cloud20:06
zexcrizso just need some advice, what to go for as i am totaly confused over here.20:06
bekksI'd not use a cloud for anything that might be important.20:06
sorenUh..20:07
sorenSo you'd not put anything important in the cloud, but a VPS is fine?20:07
zexcrizbekks, data security in cloud is a prob ?20:07
bekkssoren: I am not using a VPS either.20:07
sorenbekks: Then your argument is nonsense.20:07
bekkssoren: If you think so: please take over the conversation.20:08
zexcrizso thinking about efficiency and security which is the best option ?20:10
pmatulis_bekks: why do you say the cloud is not good for important data?20:12
bekkspmatulis_: Because there is no guarantee whatsoever that you actually can access your data when you need it. There is somethin like 99.9xy% -- but thats lower than 100%.20:13
sorenSame for anything else.20:13
sorenEven stuff you control yourself.20:13
sorenBut certainly for any other type of storage managed by someone else, whether it's called "cloud" or just "VPS" or whatnot.20:14
sorenzexcriz: "Cloud" basically means that you can control "it" with an API. It also typically means that you're charged in very small increments and only for exactly how much you're actually consuming.20:16
sorenzexcriz: In terms of security for instance, cloud and VPS is the same thing.20:16
zexcrizsoren, getting your point.20:18
sorenzexcriz: Being able to control things with an API means that you can very easily acquire (and get rid of) resources. If your resource requirements are almost entirely static, you might as well stay with what you've got.20:18
zexcrizsoren, ok :)20:19
sorenIf, on the other hand, your resource demand varies (over the course of a day, or over the course of a week or over the course of a year, for instance) and you applications scale well horizontally, "cloud" might be a good option for you.20:19
* soren has to run20:19
pmatulis_good intro to cloud ^^^20:20
zexcrizyeah that was really a good intro..!! :) thanks soren :)20:21
pmatulis_a main point is trust.  you implicitly place your trust in a cloud provider.  as opposed to building your own (private) cloud20:23
zexcrizimp point.20:24
ersiMagic eightball says: Outlook cloudy.20:26

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