Search This Blog
08 April 2010
Kohsuke leaves Sun
Kohsuke is leaving Sun to start his own business. Good luck Kohsuke. I'm glad you are doing your own thing rather than being cannon fodder for Oracle.
04 April 2010
Hudson reset on upgrade
I realized today that Hudson was about 15 versions out of date. I did the upgrade (pfexec pkg install hudson). On restart, Hudson now had a blank configuration. Don't worry - your data isn't gone. My manifest file had been modified and reimported; so now the various paths were incorrect for my system. Fixing and reimporting (pfexec svccfg import hudson.xml) was enough to get it working again.
24 March 2010
Package Renaming
I was looking at the "What's new for OpenSolaris 2010.03" and noticed the comment about "Renamed Packages"... Things like 'SUNWgtar' were renamed to 'archiver/gnu-tar'. So if you are having trouble finding your package; make sure to check out the list for the new name.
19 February 2010
cfgadm
So I woke up the other day and the server was making a LOT of noise. My first thought was that it was a fan going out [still think it is actually], so I tried 'fmadm faulty'. I was hoping to see something telling me which of the 8 fans were dying. Instead, I see that I was in the midst of a zpool failure.
Checking 'zpool status' I was able to verify that one of the disks had died. I'm running raid-z2, so it isn't like it was a hectic problem to solve... but I learned long ago it is better to fix it now than to wait until a couple more die.
Normally, you would have to go buy a replacement disk. Luckily for me, this Asus box never did recognize the last 3 drive bays. Counting across (there are 10 hot-swap SATAII drives -- want to make sure to pop the right one) I took a guess which one was failing and which ones were not currently in use. Luckily I was right.
Now, the "new" drive already had data on it because it used to be part of the root mirror before I upgraded them to larger drives. That being said, I was a little confused when the new drive wasn't being recognized.
I found this page which helped dramatically. 'cfgadm' showed that drive '6/0' was not configured. I ran 'cfgadm -c configure sata6/0'. It now showed up, but it said it was 'unavail' and 'corrupted data'. 'zpool online' didn't work because of those errors. Finally, I managed to get it to start working with 'zpool replace -f data c6t0d0'. It took quite awhile for it to finally finish. 'fmadm faulty' still showed the fault but I was able to fix that with the zpool clear that it recommended.
I'm thinking I should hook up one of my woot-off lights to flash whenever fmadm faulty shows a failure...
Checking 'zpool status' I was able to verify that one of the disks had died. I'm running raid-z2, so it isn't like it was a hectic problem to solve... but I learned long ago it is better to fix it now than to wait until a couple more die.
Normally, you would have to go buy a replacement disk. Luckily for me, this Asus box never did recognize the last 3 drive bays. Counting across (there are 10 hot-swap SATAII drives -- want to make sure to pop the right one) I took a guess which one was failing and which ones were not currently in use. Luckily I was right.
Now, the "new" drive already had data on it because it used to be part of the root mirror before I upgraded them to larger drives. That being said, I was a little confused when the new drive wasn't being recognized.
I found this page which helped dramatically. 'cfgadm' showed that drive '6/0' was not configured. I ran 'cfgadm -c configure sata6/0'. It now showed up, but it said it was 'unavail' and 'corrupted data'. 'zpool online' didn't work because of those errors. Finally, I managed to get it to start working with 'zpool replace -f data c6t0d0'. It took quite awhile for it to finally finish. 'fmadm faulty' still showed the fault but I was able to fix that with the zpool clear that it recommended.
I'm thinking I should hook up one of my woot-off lights to flash whenever fmadm faulty shows a failure...
Labels:
(Open)Solaris,
Hardware,
Troubleshooting,
UsefulCommands,
ZFS
09 February 2010
GXT: BorderLayout inside TabPanel
I had originally posted a bug in the GXT premium forum about BorderLayout not working inside a TabPanel. To prove the point, I took the demo code directly from the site and put it verbatim inside a tab.
Since the post never showed up in the forum, I can't answer it myself so others know how to fix the problem... so it'll go here.
The BorderLayout code does the following:
Normally this would be fine. However, when embedded within the TabPanel, I had used the following line from the Tab demo:
Since the post never showed up in the forum, I can't answer it myself so others know how to fix the problem... so it'll go here.
The BorderLayout code does the following:
Size size = target.getStyleSize();
int h = size.height;
b.y = h - totalHeight + m.top;
Normally this would be fine. However, when embedded within the TabPanel, I had used the following line from the Tab demo:
setAutoHeight(true);This is actually what was causing the problem. With this set to true, the surrounding div didn't have an explicit height set and so was setting the y coordinate of the South region to 0-188+10. Removing that one line caused everything to layout as expected.
05 February 2010
Oracle Kills Off Project Darkstar
Well, as we all expected, Oracle is not taking any time in ruining the Java platform. The latest on the chopping block? Project Darkstar. There goes at least 3 projects I had planned.
04 January 2010
Zones getting out of sync
The other day, I started an update and walked away. I noticed today it was done, so I zfs snapshotted the zones and xvm sessions then rebooted.
Upon bootup, everything seemed OK until I tried to access the web pages on one of the zones. Checking svcs -xv, I saw that the local filesystem was down! That's not good!
While troubleshooting, it occurred to me that the global is reporting snv_130 and zlogin to a zone is reporting snv_101a. Oops. Just a little outdated.
I looked around for how to get them into sync, and ran across this article.
The solution is actually quite simple. It takes *forever* so I really wish I would have checked the time for you before I started. The basic jist of it is:
At first, I forgot the '-u' and it came back and told me it was out of sync and reminded me to try again with -u.
Oops, now what? At first I started looking online at things like Bug 13190... Then I realized I was missing the obvious...
Log File: /var/tmp/eoti.org.attach_log.voaWef
hmm, ok, so what does it say?
root@serveris:~# cat /var/tmp/eoti.org.attach_log.voaWef
This may seem odd to most of you... but I had the default opensolaris package repository AND the dev repository setup at one point; so it was getting confused. I followed the instructions (the pkg set-publisher and pkg unset-publisher) then retried the attach...
root@serveris:~# zoneadm -z eoti.org attach -u
Upon bootup, everything seemed OK until I tried to access the web pages on one of the zones. Checking svcs -xv, I saw that the local filesystem was down! That's not good!
While troubleshooting, it occurred to me that the global is reporting snv_130 and zlogin to a zone is reporting snv_101a. Oops. Just a little outdated.
I looked around for how to get them into sync, and ran across this article.
The solution is actually quite simple. It takes *forever* so I really wish I would have checked the time for you before I started. The basic jist of it is:
# pfexec zoneadm -z MYZONE halt
# pfexec zoneadm -z MYZONE detach
# pfexec zoneadm -z MYZONE attach -u
At first, I forgot the '-u' and it came back and told me it was out of sync and reminded me to try again with -u.
root@serveris:~# zoneadm -z eoti.org attach -u
Log File: /var/tmp/eoti.org.attach_log.voaWef
Attaching...
Global zone version: entire@0.5.11,5.11-0.130:20091219T044839Z
Non-Global zone version: entire@0.5.11,5.11-0.101:20081204T010954Z
Publisher Check: Zone preferred publisher does not contain
entire@0.5.11,5.11-0.130:20091219T044839Z.
Publisher Reset: Copying preferred publisher from global zone.
Updating non-global zone: (Stage 1). Output follows
Creating Plan
ERROR: Could not update attaching zone
Oops, now what? At first I started looking online at things like Bug 13190... Then I realized I was missing the obvious...
Log File: /var/tmp/eoti.org.attach_log.voaWef
hmm, ok, so what does it say?
root@serveris:~# cat /var/tmp/eoti.org.attach_log.voaWef
[Monday, January 4, 2010 8:08:03 PM PST] Log File: /var/tmp/eoti.org.attach_log.voaWef
[Monday, January 4, 2010 8:08:07 PM PST] Attaching...
[Monday, January 4, 2010 8:08:07 PM PST] existing
[Monday, January 4, 2010 8:08:07 PM PST]
[Monday, January 4, 2010 8:08:07 PM PST] Sanity Check: Passed. Looks like an OpenSolaris system.
Unable to retrieve package data for publisher 'os-dev' from one
of the following origin(s):
http://pkg.opensolaris.org/dev/
The catalog retrieved from one of the origin(s) listed above only
contains package data for: opensolaris.org.
To resolve this issue, correct the origin information provided for
publisher 'os-dev' using the pkg set-publisher subcommand, or re-add
the publisher using the correct name and remove the 'os-dev'
publisher.
To re-add this publisher with the correct name, execute the following
commands as a privileged user:
pkg set-publisher -P -g http://pkg.opensolaris.org/dev/ opensolaris.org
pkg unset-publisher os-dev
Unable to retrieve package data for publisher 'os-dev' from one
of the following origin(s):
http://pkg.opensolaris.org/dev/
The catalog retrieved from one of the origin(s) listed above only
contains package data for: opensolaris.org.
To resolve this issue, correct the origin information provided for
publisher 'os-dev' using the pkg set-publisher subcommand, or re-add
the publisher using the correct name and remove the 'os-dev'
publisher.
To re-add this publisher with the correct name, execute the following
commands as a privileged user:
pkg set-publisher -P -g http://pkg.opensolaris.org/dev/ opensolaris.org
pkg unset-publisher os-dev
pkg: The following pattern(s) did not match any packages in the current catalog.
Try relaxing the pattern, refreshing and/or examining the catalogs:
entire@0.5.11,5.11-0.130:20091219T044839Z
This may seem odd to most of you... but I had the default opensolaris package repository AND the dev repository setup at one point; so it was getting confused. I followed the instructions (the pkg set-publisher and pkg unset-publisher) then retried the attach...
root@serveris:~# zoneadm -z eoti.org attach -u
Log File: /var/tmp/eoti.org.attach_log.4kaGTgYay!
Attaching...
Global zone version: entire@0.5.11,5.11-0.130:20091219T044839Z
Non-Global zone version: entire@0.5.11,5.11-0.101:20081204T010954Z
Publisher Check: Zone preferred publisher does not contain
entire@0.5.11,5.11-0.130:20091219T044839Z.
Publisher Reset: Copying preferred publisher from global zone.
Updating non-global zone: (Stage 1). Output follows
DOWNLOAD PKGS FILES XFER (MB)
Completed 121/121 19959/19959 125.0/125.0
PHASE ACTIONS
Removal Phase 5811/5811
Install Phase 15876/15876
Update Phase 12076/12076
PHASE ITEMS
Indexing Packages 122/122
Updating non-global zone: (Stage 2). Output follows
No updates necessary for this image.
Updating non-global zone: Zone updated to entire@0.5.11,5.11-0.130:20091219T044839Z
Attach complete.
Labels:
(Open)Solaris,
Troubleshooting,
UsefulCommands,
ZFS,
Zones
30 December 2009
Sun Microsystems Inc. (JAVA), Oracle Corp. (ORCL)
Premium offered: $0.14 or 1.50%
Acquirer: ORCL
Target: JAVA
Offer per share: $9.50 cash (too bad I paid $12.25/share)
Value of outstanding common equity: $7,074,650,000
Target share price: $9.36
Acquirer share price: $25.00
Expected closing: N/A
Annualized gain: N/A
Note: The U.S. Justice Department cleared the way for Oracle's acquisition
of Sun Microsystems about a month after Sun's shareholders approved the
deal. Oracle withdrew its application for clearance in Russia where
authorities are unwilling to approve the deal ahead of a decision from the
European Commission. The EC objected to the deal, saying Sun's MySQL
database software would reduce competition in the database market. The
European Union later extended its review of the deal to the end of Jan.
after Oracle asked for the extension to allow it more time to respond to the
concerns the Commission voiced. A bipartisan group of U.S. senators have
been urging the European Commission to speed up its investigation into the
ORCL/JAVA deal, saying JAVA's financial position has become more precarious
as the EC's inquiry has continued. Oracle's Chief Executive Larry Ellison
has said he's willing to create a separate entity to house its MySQL open
database business in order to placate European regulators and follow through
with the acquisition.
23 October 2009
JForum on OpenSolaris
I decided to go ahead and setup a forum for one of the projects I am working on. I already had a zone setup that was hosting a "coming soon" page.
Looking around, I spent quite awhile trying to decide which forum software I was going to use. As a Java developer, I decided to go with a Java-based one so that it is easier for me to maintain. I ended up choosing JForum.
Installation was actually pretty easy. Getting the forums configured not so much (by default new forums were not visible until I went and reconfigured every user group -- each time I added a forum -- very annoying).
I had zlogin'd to the domain and:
Checking port 8080 on the domain I saw that tomcat was indeed running.
I downloaded jforum-2.1.8.war and placed it as: /var/tomcat6/webapps/jforum.war
Going to http://THEMACHINE:8080/jforum/install.jsp I specified to use HSQLDB, UTF-8, my URLs and a password.
Still a few things I'd like to fix, but as of now the forums are working.
Looking around, I spent quite awhile trying to decide which forum software I was going to use. As a Java developer, I decided to go with a Java-based one so that it is easier for me to maintain. I ended up choosing JForum.
Installation was actually pretty easy. Getting the forums configured not so much (by default new forums were not visible until I went and reconfigured every user group -- each time I added a forum -- very annoying).
I had zlogin'd to the domain and:
# pkg install SUNWtcat
# pkg install SUNWj6dvx
# svcadm enable tomcat6
# pkg install SUNWj6dvx
# svcadm enable tomcat6
Checking port 8080 on the domain I saw that tomcat was indeed running.
I downloaded jforum-2.1.8.war and placed it as: /var/tomcat6/webapps/jforum.war
Going to http://THEMACHINE:8080/jforum/install.jsp I specified to use HSQLDB, UTF-8, my URLs and a password.
Still a few things I'd like to fix, but as of now the forums are working.
22 October 2009
Gnome-terminal just disappears after upgrading to snv_125
After upgrading today, I was unable to launch the terminal. Let me correct that -- the window would come up, but before any text was displayed it would close. I didn't see any error messages or logs or anything that indicated what the problem was.
Then I found bug #6892167. To verify if that was my problem, I went up to "Applications | Run Application" and did 'gnome-terminal -e /bin/bash'. It launched fine.
Confirmed, I followed the instructions in the workaround to the best of my ability. The "old" copy of the libvte I had was 9.6.0, but it still appears to work. Also, I was unable to unmount the old boot environment without forcing (-f) it.
All seems to work now.
Then I found bug #6892167. To verify if that was my problem, I went up to "Applications | Run Application" and did 'gnome-terminal -e /bin/bash'. It launched fine.
Confirmed, I followed the instructions in the workaround to the best of my ability. The "old" copy of the libvte I had was 9.6.0, but it still appears to work. Also, I was unable to unmount the old boot environment without forcing (-f) it.
All seems to work now.
27 August 2009
Private Repositories with Nexus
So one of the projects I am working on is not open source (I know, I know)... that led me to realize I needed to provide both private AND anonymous access to my repositories -- depending on which repo.
A bit of googling and I came across this page. I mostly followed his instructions -- but here are a few sidenotes in case you go to try it.
In step #2, be careful about long names. When I got to step 3, I couldn't tell "Anonymous Public Snapshot Repository (read)" apart from "Anonymous Public Snapshot Repository (delete)" since they both looked like "Anonymous Public Snapshot Repositor".
I didn't do the last half of step #5 or step 6. Instead, I went into the user dialog and removed the permissions that the "anonymous" user originally had and added in mine instead.
Here's some screenshots...
This is the "Private Role"
You can test it by logging out then trying to look at the repositories. You click on the private ones and it says access denied. Public ones are still accessible.
A bit of googling and I came across this page. I mostly followed his instructions -- but here are a few sidenotes in case you go to try it.
In step #2, be careful about long names. When I got to step 3, I couldn't tell "Anonymous Public Snapshot Repository (read)" apart from "Anonymous Public Snapshot Repository (delete)" since they both looked like "Anonymous Public Snapshot Repositor".
I didn't do the last half of step #5 or step 6. Instead, I went into the user dialog and removed the permissions that the "anonymous" user originally had and added in mine instead.
Here's some screenshots...
This is the roles assigned to the "Public Role"
This is the "Private Role"
This is the "anonymous" user
And my personal user
You can test it by logging out then trying to look at the repositories. You click on the private ones and it says access denied. Public ones are still accessible.
22 August 2009
Subversion working in Unix but not on Windows
So as I was checking out my ambrosia project on Windows today and got this error:
Now, it may not be obvious looking at the error message, but here's the note as to the reason:
Do you see it? We have phi and Phi; phiTest and PhiTest... why you ask? Because phi and Phi are not the same number. I am not quite sure how I am going to resolve it (well, will have to change the names - but to what?) but have created an issue for it.
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\phiTest.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\PhiTest.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\tanTest.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\A052119Test.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\A073333Test.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\eTest.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\A113011Test.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\piTest.java
svn: In directory 'ambrosia\thoth\src\test\java\org\eoti\math\cf\constants'
svn: Can't open file 'ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\.svn\tmp\text-base\PhiTest.java.svn-base': The system cannot find the file spe
cified.
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\PhiTest.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\tanTest.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\A052119Test.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\A073333Test.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\eTest.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\A113011Test.java
A ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\piTest.java
svn: In directory 'ambrosia\thoth\src\test\java\org\eoti\math\cf\constants'
svn: Can't open file 'ambrosia\thoth\src\test\java\org\eoti\math\cf\constants\.svn\tmp\text-base\PhiTest.java.svn-base': The system cannot find the file spe
cified.
Now, it may not be obvious looking at the error message, but here's the note as to the reason:
"Failed to add file '(name here)': object of the same name already exists.
or
"Can't open file 'folder\.svn\tmp\text-base\file.svn-base': The system cannot find the file specified."
Both mean that two files in the same folder have the same name except for capitalization; for example "Readme.txt" and "README.TXT". Unix and Subversion are case-sensitive, so the files are considered to be completely unrelated. But in Windows is not case-sensitive, so when it tries to update README.TXT on top of Readme.txt (say), it breaks.
The surest way to fix the problem is to log in to a Unix system (such as io.uwplatt.edu) and use the unix notes to check out the repository there. You can then use the svn mv command to rename one of the files. If you are in the middle of trying to add a file to your repository, you might try using TortoiseSVN->Rename... to rename the existing file to something entirely different and then updating. Note that you need to use the TortoiseSVN rename commands; merely renaming the file in Windows Explorer won't fix your problems.
Do you see it? We have phi and Phi; phiTest and PhiTest... why you ask? Because phi and Phi are not the same number. I am not quite sure how I am going to resolve it (well, will have to change the names - but to what?) but have created an issue for it.
Labels:
Compiling,
Subversion,
Troubleshooting
18 August 2009
Framework error: code: 28 reason: Operation timed out after 30000 milliseconds
When trying to install a package (in my case openjdk7-dev) you might run into this [on command line OR in the pkg ui]:
The solution to fix this was to simply set an environment variable:
Error:
Please check the network connection.
Is the repository accessible?
1: Framework error: code: 28 reason: Operation timed out after 30000 milliseconds with 18904080 out of 20853709 bytes received
URL: 'http://pkg.opensolaris.org/dev'.
2: Framework error: code: 28 reason: Operation timed out after 30000 milliseconds with 18999276 out of 20853709 bytes received
URL: 'http://pkg.opensolaris.org/dev'.
3: Framework error: code: 28 reason: Operation timed out after 30000 milliseconds with 19187200 out of 20853709 bytes received
URL: 'http://pkg.opensolaris.org/dev'.
4: Framework error: code: 28 reason: Operation timed out after 30000 milliseconds with 18991256 out of 20853709 bytes received
URL: 'http://pkg.opensolaris.org/dev'.
The solution to fix this was to simply set an environment variable:
export PKG_CLIENT_TIMEOUT=300
Subscribe to:
Posts (Atom)




