/srv/irclogs.ubuntu.com/2014/03/22/#ubuntu-server.txt

=== cmagina-away is now known as cmagina
=== cmagina is now known as cmagina-away
=== RaptorJesus is now known as PirateJesus
=== PirateJesus is now known as RaptorJesus
raj__is it a good strategy to set JAVA_HOME & default java to "/usr/lib/jvm/default-java"  symlink & point that symlink to any java installation like oracle java/ opnjdk that was switching between jre versions & upgrading to newer versions would be very easier, no ?  changing "default-java " symlink to upgrade to newly downloaded oracle java version,  without needing to change the acutal java path everywhere..07:54
=== psivaa_ is now known as psivaa-afk
lordievaderGood morning.09:23
i5150pcHello, How can I fix "Read Error" after installing Ubuntu Server?09:53
bekksWhere do you get that error?10:09
i5150pcwhen booting10:11
bekkswhere?10:14
bekks!details | i5150pc10:14
ubottui5150pc: Please elaborate; your question or issue may not seem clear or detailed enough for people to help you. Please give more detailed information, errors, steps, and possibly configuration files (use the !pastebin to avoid flooding the channel)10:14
i5150pcI tried to load Ubuntu Server 12.04 on a P4 machine (Yes I have such  a machine), after the restart, all I get is "Read Error" nothing else because the system isn't booting10:18
cfhowletti5150pc, 1.  md5sum your ISO and 2. try a different USB10:19
cfhowletti5150pc, assuming that SERVER usb/cdrom is what's failing10:19
i5150pcIt didn't give me a hash to check against10:20
cfhowletti5150pc, that's pretty much a sign of serious fail ...10:20
i5150pccfhowlett: the website didn't give me a hash to check against10:20
cfhowlett!md5sum10:20
ubottuTo verify your Ubuntu ISO image (or other files for which an MD5 checksum is provided), see http://help.ubuntu.com/community/HowToMD5SUM or http://www.linuxquestions.org/linux/answers/LQ_ISO/Checking_the_md5sum_in_Windows10:21
cfhowletti5150pc, wait 1210:21
cfhowlettcdimage.ubuntu.com is the starting place = for 12.04.4  http://cdimage.ubuntu.com/precise/daily/20140322/10:23
i5150pcI verified the sum myself - it matches10:23
cfhowletti5150pc, great.  then it could be your boot media is funky10:24
i5150pcI verified that the disc is OK, and It was OK10:25
cfhowletti5150pc, if the boot media is good then perhaps you're system is trying to boot from a different source. ...10:25
i5150pccfhowlett: I only have one HDD on that box10:26
cfhowletti5150pc, check your bios ...10:26
cfhowlettwiat10:26
cfhowlettit should NOT be booting from your hdd if you haven't installed yet!10:27
i5150pci told the bios "CD" then "HDD" then Network then floppy10:28
cfhowletti5150pc, disable everything except the cd.  reboot.  if the CD still won't read, there's your problem ...10:29
i5150pcok one  moment10:29
i5150pcit boots of the CD10:30
i5150pccfhowlett: it reads the CD and boots off the CD, so, what is my issue here?10:32
cfhowletti5150pc, didn't this start with "no media found"?10:32
cfhowlettread error - sorry10:33
cfhowlettanyway, now you're booted.  proceed to install10:33
i5150pcwith the disabled HDD?10:33
cfhowletti5150pc, it's only disabled as a boot device ...10:33
i5150pcone sec10:34
i5150pcrunning the install10:36
i5150pcInstall finished, and I get this: "disk boot failure, insert system disk and press enter"11:16
i5150pchuh, I'm getting the same error as before "Read Error"11:20
i5150pcnope, Ubuntu Server isn't booting after Install, once again, what am I doing wrong here?12:16
cfhowletti5150pc, now you have to reset your bios so the HDD boots12:20
JanCmight also be a BIOS/(U)EFI thing?12:20
JanCi5150pc: is it the firmware (BIOS) giving the Read Error message or GRUB?12:23
i5150pcit's booting alright, "Input Signal Out of Range"12:28
i5150pcalso, How long does it take  to boot?12:30
cfhowletti5150pc, input signal?  it's choking on your video settings12:35
i5150pccfhowlett: that box has a SiS651 chipset12:36
cfhowletti5150pc, the error you cited refers to display settings12:37
i5150pcyep, I ssh'd to the box, and it's online12:37
cfhowletti5150pc, little things like that matter.  sadly, ssh is outside my area, so ask again in channel and mention that detail12:38
i5150pcThanks for all the help12:39
JanCSiS GPUs often don't work with VESA even...13:18
=== Juniper is now known as Guest59162
=== Guest59162 is now known as Rasmus`
=== SpamapS_ is now known as SpamapS
lordievaderGood afternoon.15:15
gooses89Hey guys,  im trying to get some java to run on server start. I have a .sh in the folder with the jar. And the init.d script. Both are fairly basic scripts. The problem I am running into is if I dont bash the .sh from within the folder, the jar tries to run in the current folder and it can't find it's configs.17:06
gooses89:(17:14
Hunt_e107gooses89: whats your issue?17:15
atpa8ahello17:15
gooses89im trying to get some java to run on server start. I have a .sh in the folder with the jar. And the init.d script. Both are fairly basic scripts. The problem I am running into is if I dont bash the .sh from within the folder, the jar tries to run in the current folder and it can't find it's configs.17:16
gooses89Can't find a fix for it17:16
atpa8ahaving a problem... need to make sure an initscript starts before an upstart job... any clues?17:17
Hunt_e107goose89: did you try to source the profile before running it?17:17
Hunt_e107goose89: even if it's set in the path but for the first run I think you have to source the profile for the new path to invoke it.17:18
gooses89Fairly new to linux17:19
gooses89Never used source?17:19
Hunt_e107gooses89: its not the code source.17:19
gooses89It's a command I know.17:19
Hunt_e107gooses89: do . /<new java path>17:19
Hunt_e107make sure there is space after the dot17:20
Hunt_e107atpa8a: make sure initscript is the parent process of the upstart job that's when it will start before upstart job17:21
gooses89Hunt.17:22
gooses89Not quite sure what you mean.17:22
gooses89. Is simply a shortcut to bash is it not?17:23
Hunt_e107.  /<new java path>17:23
Hunt_e107yes17:23
JanCnot really17:23
Hunt_e107but before you run your program you have to call it17:23
JanCit's an internal command in bash17:23
Hunt_e107correct17:23
JanCand in (some) other shells17:24
gooses89. /java17:24
gooses89Like17:24
Hunt_e107yeah17:24
gooses89If i were to do . /thisfoler/This.jar17:24
gooses89I would get an error.17:25
Hunt_e107no it wont work17:25
gooses89I realize that.17:25
Hunt_e107jar is executed like this java -jar This.jar17:25
gooses89Yeah17:25
JanCdepends, if /thisfoler/This.jar is a shell script, it would work  :)17:25
Hunt_e107This.jar.sh hehehe17:25
gooses89can I use quotes? . /thisfolder/"java -jar this.jar"17:26
JanCeh17:26
gooses89If not it stops at the space.17:26
Hunt_e107it will17:26
gooses89and tries to run java17:26
Hunt_e107in this case you have to do17:26
Hunt_e107 /thisfolder/java   -jar  this.jar17:26
Hunt_e107ok tell me what you have done so far to solve your issue?17:27
atpa8aHunt_e107: parent process?.. looking... thanks17:28
gooses89this is my .sh http://pastebin.com/RZNRxVHW17:28
gooses89If I were to run it from the DayZLogger folder it runs fine17:29
gooses89if I run that script outside the folder like from root if i # bash /var/www/RoadW/DayZLogger/loggerstart.sh17:30
gooses89then It will not find its files.17:30
Hunt_e107ok looking17:30
gooses89It runs the DayZLogger.jar in root from the looks of things instead of in it's native folder.17:30
Hunt_e107ok I see the problem17:30
Hunt_e107whats the path to you java?17:31
Hunt_e107do env17:31
Hunt_e107and give me the output17:31
gooses89http://pastebin.com/8sVgrcc217:34
Hunt_e107gooses89: can you give me the path to you java bin directory?17:36
gooses89java: /usr/bin/java /usr/bin/X11/java /usr/share/java /usr/share/man/man1/java.1.gz17:38
Hunt_e107use this17:40
Hunt_e107http://pastebin.com/yLTAucaV17:40
Hunt_e107gooses89: use this link http://pastebin.com/yLTAucaV17:41
Hunt_e107let me know.17:41
gooses89trying it now.17:41
gooses89Bash in the folder works, outside of it doesnt.17:44
Hunt_e107execute it from outside folder and give me the output17:44
gooses89It starts17:44
gooses89but it cant find it's stuff17:45
gooses89http://pastebin.com/ZkqZt3Hz17:46
Hunt_e107are you trying to play DayZ? :)17:46
gooses89No.17:46
gooses89I'm trying Administer DayZ17:47
Hunt_e107ok17:47
gooses89I need it to run in the folder it exists in not the one root is running it out of.17:48
jrwrenyou could try update-binfmts --install JAR /usr/bin/java --extension jar17:49
jrwrenthen you migt be able to ./some.jar17:50
gooses89nope./17:54
Hunt_e107gooses89: just run /var/www/RoadW/DayZLogger/loggerstart.sh17:54
Hunt_e107dont do .  /var/www/RoadW/DayZLogger/loggerstart.sh17:54
gooses89"bash /var...."?17:56
gooses89or just type it in.17:56
Hunt_e107no just type it in17:57
gooses89Same issue.17:57
Hunt_e107this is more of Bash question17:57
Hunt_e107get on #bash17:57
Hunt_e107I know it's the path problem but im not sure what else is missing17:58
Hunt_e107#bash channel people might be able to give you better answer than me17:58
gooses89got it to work.18:07
gooses89http://pastebin.com/xnzeTNzk18:08
Hunt_e107lol its funny code but it works18:13
gooses89just has to navigate to the folder18:13
gooses89so it doesnt run in /18:13
Hunt_e107looks like that jar is hardcoded to use the java from DayZlogger folder and not system java18:13
gooses89It's hardcoded to access files in that folder.18:14
=== phunyguy_ is now known as phunyguy
Hunt_e107is there a java directory inside that folder?18:14
gooses89Nothing to do with java imo based of of what i know.18:14
Hunt_e107i disagree18:15
gooses89its just a .jar and a .cfg18:15
Hunt_e107yes and problem was with .cfg file18:15
gooses89The program most liekly has code that just states /config.cfg18:15
gooses89so18:15
gooses89if the program is run outside of that folder18:15
gooses89it cant find it18:15
gooses89If the script doesn't have the cd command it tries to run it out of root.18:16
Hunt_e107I see nothing wrong in what you have done.18:18
jrwrenthat is not uncommon - a bash script which changes curdir and then invokes java18:20
atpa8ahmm19:30
atpa8aif an initscript emits an event, how can i reference it in an upstart job?..19:31
=== mist__ is now known as mist
atpa8anot freaking working...20:47
atpa8ahow can i debug upstart order without rebooting the box?..20:47
jrwrenatpa8a: if you find out, please let me know20:52
atpa8acan i just change runlevels?..20:54
=== JanC_ is now known as JanC
=== Jare__ is now known as Jare
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
RaptorJesuswhy for there no #ubuntu chat?23:07
bekksOf course there is #ubuntu23:07
RaptorJesusohhh that's right I got banned23:08

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