[Bug 596993] Re: hostname handling needs improvement for elastic-ip and ebs start-stop
Scott, I just tested a recent Maverick AMI and it does indeed correctly set the hostname to the newly assigned internal domain name after a stop/start sequence. So no need to open any other bugs on that score. + uname -n ip-10-117-39-235 + hostname -s ip-10-117-39-235 + hostname -d ec2.internal + hostname -f ip-10-117-39-235.ec2.internal + hostname ip-10-117-39-235 + echo ip-10-117-39-235 ip-10-117-39-235 + cat /etc/hostname ip-10-117-39-235 + /sbin/sysctl -n kernel.hostname ip-10-117-39-235 Now the question is how early in the boot process does cloud-init run? With the changes in this bug, how can we make another boot process wait until cloud-init has completed setting up the hostname? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu. https://bugs.launchpad.net/bugs/596993 Title: hostname handling needs improvement for elastic-ip and ebs start-stop -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 596993] Re: hostname handling needs improvement for elastic-ip and ebs start-stop
cloud-init does a lot of things. I guess what I'm looking for is whether cloud-init could be made to emit events as it works such that other upstart jobs can listen for those events and then use them to trigger their startup as opposed to waiting for the entire cloud-init process to complete. eg: cloud-init: initctl emit hostname myjob: start on hostname -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu. https://bugs.launchpad.net/bugs/596993 Title: hostname handling needs improvement for elastic-ip and ebs start-stop -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 596993] Re: hostname handling needs improvement for elastic-ip and ebs start-stop
This fix is needed for Lucid as well. I have a clustered filesystem that fails because of this bug. It relies upon the hostname value always being set correctly. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu. https://bugs.launchpad.net/bugs/596993 Title: hostname handling needs improvement for elastic-ip and ebs start-stop -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 596993] Re: hostname handling needs improvement for elastic-ip and ebs start-stop
As the ec2 meta-data, local-hostname, returns the long form of hostname, I would also propose that an enhancement that a new ec2 meta-data attribute be added: local-shortname that would return the short version of hostname such as is returned from 'hostname -s' on a properly configured system. This would make it easier for users to get the hostname format that they need. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu. https://bugs.launchpad.net/bugs/596993 Title: hostname handling needs improvement for elastic-ip and ebs start-stop -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 596993] Re: hostname handling needs improvement for elastic-ip and ebs start-stop
When hostname is properly working on a system all of the following commands should work as expected: #uname -n #hostname -a #hostname -s #hostname -d #hostname -f #hostname Source: http://www.debianadmin.com/change-hostname-or-server-name-of-a -linux-machine.html -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu. https://bugs.launchpad.net/bugs/596993 Title: hostname handling needs improvement for elastic-ip and ebs start-stop -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 596993] Re: hostname handling needs improvement for elastic-ip and ebs start-stop
Running the following commands appears to correctly set all the forms of hostname on my Lucid ec2 instance: echo $(curl -s http://169.254.169.254/latest/meta-data/local-hostname) | sed 's:\..*$::' /etc/hostname /sbin/sysctl -w kernel.hostname=$(curl -s http://169.254.169.254/latest /meta-data/local-hostname | sed 's:\..*$::') logout/login shell root@ip-10-XXX-181-59:~# uname -n ip-10-XXX-181-59 root@ip-10-XXX-181-59:~# hostname -s ip-10-XXX-181-59 root@ip-10-XXX-181-59:~# hostname -d ec2.internal root@ip-10-XXX-181-59:~# hostname -f ip-10-XXX-181-59.ec2.internal root@ip-10-XXX-181-59:~# hostname ip-10-XXX-181-59 root@ip-10-XXX-181-59:~# echo $HOSTNAME ip-10-XXX-181-59 root@ip-10-XXX-181-59:~# cat /etc/hostname ip-10-XXX-181-59 root@ip-10-XXX-181-59:~# /sbin/sysctl -n kernel.hostname ip-10-XXX-181-59 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu. https://bugs.launchpad.net/bugs/596993 Title: hostname handling needs improvement for elastic-ip and ebs start-stop -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 596993] Re: hostname handling needs improvement for elastic-ip and ebs start-stop
Now since my cluster filesystem starts real early in the bootup (S20) I need the hostname to be set correctly even earlier. So that would probably require some upstart job to run at S10. So now I need to see how cloud-init is doing this and if it is early in the bootup. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu. https://bugs.launchpad.net/bugs/596993 Title: hostname handling needs improvement for elastic-ip and ebs start-stop -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
Re: [Bug 632554] Re: tomcat fails to start with: /bin/bash already running.
Thank you for testing. I was unable to test it this week. I had updated my test machine to maverick and needed to set up a virtual machine to test. It probably needs a test by the person who needed the AUTHBIND setting to make sure it doesn't break that, but ... I notice the change I made also included the addition of -b. I don't know what impact that has but it made sense when I was working on it. Gerry On Sat, 11 Dec 2010, Stéphane Graber wrote: I can confirm that the fix works as expected, here's the output of my test. I started a bash shell as tomcat6 in a shell, then ran the following commands on an up to date lucid system (with -updates and -security) r...@lucid:~# ps aux | grep tomcat6 tomcat6 3850 0.0 0.1 11172 1968 pts/1S+ 14:45 0:00 bash root 3896 0.0 0.0 7624 900 pts/0S+ 14:45 0:00 grep --color=auto tomcat6 r...@lucid:~# /etc/init.d/tomcat6 start * Starting Tomcat servlet engine tomcat6 /bin/bash already running. r...@lucid:~# apt-get install tomcat6 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libservlet2.5-java libtomcat6-java tomcat6-common Suggested packages: tomcat6-docs tomcat6-admin tomcat6-examples tomcat6-user The following packages will be upgraded: libservlet2.5-java libtomcat6-java tomcat6 tomcat6-common 4 upgraded, 0 newly installed, 0 to remove and 22 not upgraded. Need to get 0B/3,277kB of archives. After this operation, 0B of additional disk space will be used. Do you want to continue [Y/n]? (Reading database ... 70588 files and directories currently installed.) Preparing to replace libservlet2.5-java 6.0.24-2ubuntu1.4 (using .../libservlet2.5-java_6.0.24-2ubuntu1.5_all.deb) ... Unpacking replacement libservlet2.5-java ... Preparing to replace libtomcat6-java 6.0.24-2ubuntu1.4 (using .../libtomcat6-java_6.0.24-2ubuntu1.5_all.deb) ... Unpacking replacement libtomcat6-java ... Preparing to replace tomcat6-common 6.0.24-2ubuntu1.4 (using .../tomcat6-common_6.0.24-2ubuntu1.5_all.deb) ... Unpacking replacement tomcat6-common ... Preparing to replace tomcat6 6.0.24-2ubuntu1.4 (using .../tomcat6_6.0.24-2ubuntu1.5_all.deb) ... * Stopping Tomcat servlet engine tomcat6 [ OK ] Unpacking replacement tomcat6 ... Processing triggers for ureadahead ... Setting up libservlet2.5-java (6.0.24-2ubuntu1.5) ... Setting up libtomcat6-java (6.0.24-2ubuntu1.5) ... Setting up tomcat6-common (6.0.24-2ubuntu1.5) ... Setting up tomcat6 (6.0.24-2ubuntu1.5) ... Installing new version of config file /etc/init.d/tomcat6 ... * Starting Tomcat servlet engine tomcat6 [ OK ] r...@lucid:~# ps aux | grep tomcat6 tomcat6 3850 0.0 0.1 11172 1968 pts/1S+ 14:45 0:00 bash tomcat6 4070 15.7 5.9 550744 61404 ?Sl 14:46 0:01 /usr/lib/jvm/java-6-openjdk/bin/java -Djava.util.logging.config.file=/var/lib/tomcat6/conf/logging.properties -Djava.awt.headless=true -Xmx128M -XX:+UseConcMarkSweepGC -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/share/tomcat6/endorsed -classpath /usr/share/tomcat6/bin/bootstrap.jar -Dcatalina.base=/var/lib/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.io.tmpdir=/tmp/tomcat6-tmp org.apache.catalina.startup.Bootstrap start root 4095 0.0 0.0 7624 904 pts/0S+ 14:46 0:00 grep --color=auto tomcat6 -- Gerry Skerbitz gs...@skerbitz.org -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tomcat6 in ubuntu. https://bugs.launchpad.net/bugs/632554 Title: tomcat fails to start with: /bin/bash already running. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 632554] Re: tomcat fails to start with: /bin/bash already running.
Here's my comment included as an attached patch. What does it take to actually get this into a release? ** Patch added: Patch to add -p $CATALINA_PID to the initscript tomcat6 file https://bugs.launchpad.net/ubuntu/+source/tomcat6/+bug/632554/+attachment/1731835/+files/tomcat6.init.patch -- tomcat fails to start with: /bin/bash already running. https://bugs.launchpad.net/bugs/632554 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tomcat6 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 632554] Re: tomcat fails to start with: /bin/bash already running.
I'm struck by this bug because I have the tomcat user doing something else related to tomcat, so it MIGHT actually be logged in. It strikes me as a bad idea to let a startup script create a file in /etc/init.d/. We should find a better way to clarify that it's actually a tomcat instance running rather than just any old login. catalina.sh isn't making the decision; start-stop-daemon is. I'm going to work on it. Ideas are welcome. -- tomcat fails to start with: /bin/bash already running. https://bugs.launchpad.net/bugs/632554 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tomcat6 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 632554] Re: tomcat fails to start with: /bin/bash already running.
The problem is fixed if we add `-p $CATALINA_PID` to the start-stop-daemon line in catalina_sh(). Isn't that something we should be able to rely on? {{{ *** tomcat6~2010-10-11 13:21:52.0 -0500 --- tomcat6 2010-11-03 12:19:04.0 -0500 *** *** 152,154 start-stop-daemon --start -b -u $TOMCAT6_USER -g $TOMCAT6_GROUP \ ! -c $TOMCAT6_USER -d $CATALINA_TMPDIR \ -x /bin/bash -- -c $AUTHBIND_COMMAND $TOMCAT_SH --- 152,154 start-stop-daemon --start -b -u $TOMCAT6_USER -g $TOMCAT6_GROUP \ ! -c $TOMCAT6_USER -d $CATALINA_TMPDIR -p $CATALINA_PID \ -x /bin/bash -- -c $AUTHBIND_COMMAND $TOMCAT_SH }}} -- tomcat fails to start with: /bin/bash already running. https://bugs.launchpad.net/bugs/632554 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to tomcat6 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 276606] Re: package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1)
** Changed in: update-manager (Ubuntu) Assignee: (unassigned) = Ubuntu Development Team (ubuntu-dev) ** Changed in: openldap (Ubuntu) Assignee: (unassigned) = Ubuntu Development Team (ubuntu-dev) -- package update-manager 1:0.93.18 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1) https://bugs.launchpad.net/bugs/276606 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openldap in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 360975] Re: Please add nf_conntrack_pptp and nf_conntrack_netbios_ns to IPT_MODULES
** Also affects: samba (Ubuntu) Importance: Undecided Status: New -- Please add nf_conntrack_pptp and nf_conntrack_netbios_ns to IPT_MODULES https://bugs.launchpad.net/bugs/360975 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 360975] Re: Please add nf_conntrack_pptp and nf_conntrack_netbios_ns to IPT_MODULES
** Also affects: network-manager (Ubuntu) Importance: Undecided Status: New ** Changed in: network-manager (Ubuntu) Assignee: (unassigned) = Ubuntu Development Team (ubuntu-dev) -- Please add nf_conntrack_pptp and nf_conntrack_netbios_ns to IPT_MODULES https://bugs.launchpad.net/bugs/360975 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 16918] Re: smartcard support is not enabled in openssh
** Also affects: opensc (Ubuntu) Importance: Undecided Status: New ** Also affects: opensc (Debian) Importance: Undecided Status: New -- smartcard support is not enabled in openssh https://bugs.launchpad.net/bugs/16918 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to openssh in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 418897] Re: Segfaults in apache2 with libapache2-mod-php5 installed
Hi All, I am still seeing the above error after adding the line to suhosin.ini (only one file as the other is a link to the same one). I am seeing errors in /var/log/apache2/error.log such as: [Tue Dec 15 11:50:24 2009] [notice] child pid 6064 exit signal Segmentation fault (11) [Tue Dec 15 11:50:24 2009] [notice] child pid 6065 exit signal Segmentation fault (11) with blank pages appearing in the browser. I have tried removing php5-suhosin package, restarting apache2, editing config files, restarting apache2 Nothing appears to work. The report seems to indicate this is fixed in the latest available packages. I have performed apt-get update apt-get upgrade. All packages are reported to be up to date. Am I missing something? Best Regards, - Gerry -- Segfaults in apache2 with libapache2-mod-php5 installed https://bugs.launchpad.net/bugs/418897 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs