portupgrade fails on every port, undefined method 'each' for nil:NilClass
Well, I'm at a bit of a loss here. running 4.10, did a cvsup this morning, then portsdb -uU to get an up to date index. Bunch of ports needed updating, including portupgrade so I upgraded portupgrade first. That seemed to work fine (it reports version 1.8.1). Now, every port I try to upgrade fails when uninstalling the old version. I've tried to upgrade clamav, isc-dhcp3-server and a couple of others. All report undefined method 'each' for nil:NilClass. [snip preamble] sed -e s#ETCDIR#/usr/local/etc#g -e s#DBDIR#/var/db#g -e s#RUNDIR#/var/run#g dhcpd.conf.5 dhcpd.conf.man5 nroff -man dhcpd.conf.man5 dhcpd.conf.cat5 sed -e s#ETCDIR#/usr/local/etc#g -e s#DBDIR#/var/db#g -e s#RUNDIR#/var/run#g dhcpd.leases.5 dhcpd.leases.man5 nroff -man dhcpd.leases.man5 dhcpd.leases.cat5 --- Build of net/isc-dhcp3-server ended at: Thu, 01 Jul 2004 15:51:15 -0400 (consumed 00:04:10) --- Updating dependency info --- Uninstallation of isc-dhcp3-server-3.0.1.r12_3 started at: Thu, 01 Jul 2004 15:51:30 -0400 --- Fixing up dependencies before creating a package --- Backing up the old version --- Uninstalling the old version --- Deinstalling 'isc-dhcp3-server-3.0.1.r12_3' ** Listing the failed packages (*:skipped / !:failed) ! isc-dhcp3-server-3.0.1.r12_3 (undefined method `each' for nil:NilClass) --- Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed --- Uninstallation of isc-dhcp3-server-3.0.1.r12_3 ended at: Thu, 01 Jul 2004 15:51:45 -0400 (consumed 00:00:14) --- Upgrade of net/isc-dhcp3-server ended at: Thu, 01 Jul 2004 15:51:45 -0400 (consumed 00:04:40) --- Listing the results (+:done / -:ignored / *:skipped / !:failed) ! net/isc-dhcp3-server (isc-dhcp3-server-3.0.1.r12_3) (uninstall error) --- Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed --- Session ended at: Thu, 01 Jul 2004 15:51:49 -0400 (consumed 00:05:02) [EMAIL PROTECTED]:/root] uname -a FreeBSD spock.dilkie.com 4.10-STABLE FreeBSD 4.10-STABLE #0: Sat Jun 19 15:16:03 EDT 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SPOCK i386 Any ideas??? Does anyone need more info? -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: portupgrade fails on every port, undefined method 'each' fornil:NilClass
Did you both upgrade 'portupgrade' and then the problem started? I'm running portupgrade rev.1.225 with no problems. yes. I saw from portversion that portupgrade was bumped so i ran portupgrade -rv portupgrade first. On Thu, 2004-07-01 at 16:22, Joey Mingrone wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You're not alone. I'm seeing the same problem on my FreeBSD systems. Joey On July 1, 2004 17:11, Lee Dilkie wrote: Well, I'm at a bit of a loss here. running 4.10, did a cvsup this morning, then portsdb -uU to get an up to date index. Bunch of ports needed updating, including portupgrade so I upgraded portupgrade first. That seemed to work fine (it reports version 1.8.1). Now, every port I try to upgrade fails when uninstalling the old version. I've tried to upgrade clamav, isc-dhcp3-server and a couple of others. All report undefined method 'each' for nil:NilClass. [snip preamble] sed -e s#ETCDIR#/usr/local/etc#g -e s#DBDIR#/var/db#g -e s#RUNDIR#/var/run#g dhcpd.conf.5 dhcpd.conf.man5 nroff -man dhcpd.conf.man5 dhcpd.conf.cat5 sed -e s#ETCDIR#/usr/local/etc#g -e s#DBDIR#/var/db#g -e s#RUNDIR#/var/run#g dhcpd.leases.5 dhcpd.leases.man5 nroff -man dhcpd.leases.man5 dhcpd.leases.cat5 --- Build of net/isc-dhcp3-server ended at: Thu, 01 Jul 2004 15:51:15 -0400 (consumed 00:04:10) --- Updating dependency info --- Uninstallation of isc-dhcp3-server-3.0.1.r12_3 started at: Thu, 01 Jul 2004 15:51:30 -0400 --- Fixing up dependencies before creating a package --- Backing up the old version --- Uninstalling the old version --- Deinstalling 'isc-dhcp3-server-3.0.1.r12_3' ** Listing the failed packages (*:skipped / !:failed) ! isc-dhcp3-server-3.0.1.r12_3 (undefined method `each' for nil:NilClass) --- Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed --- Uninstallation of isc-dhcp3-server-3.0.1.r12_3 ended at: Thu, 01 Jul 2004 15:51:45 -0400 (consumed 00:00:14) --- Upgrade of net/isc-dhcp3-server ended at: Thu, 01 Jul 2004 15:51:45 -0400 (consumed 00:04:40) --- Listing the results (+:done / -:ignored / *:skipped / !:failed) ! net/isc-dhcp3-server (isc-dhcp3-server-3.0.1.r12_3) (uninstall error) --- Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed --- Session ended at: Thu, 01 Jul 2004 15:51:49 -0400 (consumed 00:05:02) [EMAIL PROTECTED]:/root] uname -a FreeBSD spock.dilkie.com 4.10-STABLE FreeBSD 4.10-STABLE #0: Sat Jun 19 15:16:03 EDT 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SPOCK i386 Any ideas??? Does anyone need more info? -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA5HKe0NQPEWppBZsRAqkTAKCVOvSu5XRmiWzq43XJqno8WA74WQCgya0v z2tAApWFeRHlS7u2ebSWJAQ= =PPox -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: portupgrade fails on every port, undefined method 'each' fornil:NilClass
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Joey Mingrone Sent: Thursday, July 01, 2004 4:35 PM To: [EMAIL PROTECTED] Cc: Bruce Hunter Subject: Re: portupgrade fails on every port, undefined method 'each' fornil:NilClass -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On July 1, 2004 17:26, Bruce Hunter wrote: Did you both upgrade 'portupgrade' and then the problem started? Yeah, problems stared after upgrading to portupgrade-20040701. I'm guessing there will be another update shortly. Joey Then the fun of trying to upgrade portupgrade when it won't uninstall will begin... Anticipating that I'll need some directions on how to do this manually. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: SMTP AUTH
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Richard Stevenson Outlook 2002 (from Office XP) will try STARTTLS if SMTP-over-SSL doesn't work for any port other than 25, apparently, but as I said, it's still a bit hairy. I've got clients in .us, .uk, and .nz doing this with my server in .nz. FWIW, I believe Microsoft are still working on this - I'm told they might default to trying STARTTLS first for port 587. These things take time; the MSA standard is only about five years old, after all... Wow, that responsive? The only hitch is that office 2K is my last version of office (as win2K is my last version of a MS OS that'll I'll buy). It was a challange to cover all the bases, between outlook [express] and others (Kmail, Evolution...) I have running: 25 - smtp (with or w/o auth), w/STARTTLS 587 - MSA (auth SMTP), w/ STARTTLS 465 - smtps (with or w/o auth), SSL 110 - pop3, w/STARTTLS *996 (not 995!) - pop3s, SSL 143 - imap (don't think that supports STARTTLS) 993 - imaps, SSL I'm using qpopper for pop3 and imap-uw for imap and sendmail for the rest. I installed cyrus-sasl to provide decent password protection on the non-ssl'ed connections. *996 instead of 995... this was a wierd one. Outlook normally defaults to port 995 if one selects use SSL but when I configured qpopper to use SSL on 995 the negotation would fail. If i changed ports, it succeeded. I think I know what happened and that I could probably get it to work on 995 but I haven't had the time to work on it. I config Outlook to use SSL on ports 465 and either 996(pop3) or 993(imap). Kmail and such use 587(MSA) and 110/993 as they support STARTTLS. If anyone is interested in the relevant bits of inetd/sendmail/qpopper config files, just shout. -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: SMTP AUTH
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Noah Sent: Thursday, May 27, 2004 12:40 PM Hi there, how do I configure sendmail to support smtps (SSL before SMTP) I want to configure this. any links out there show how to do this please? - Noah I found all i needed on the net but it wasn't all in one place. Here's some of what I did. In /etc/make.conf # add alternate port (smtps) for sendmail SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL and rebuild the world (or if you're smarter than me you can rebuild only the sendmail part). In your /etc/mail/${hostname}.sendmail.mc, define the service itself. The first part is to define the certificates, they are used for both STARTTLS and smtps. There are plenty of sites that'll tell you how to generate those. Mine is a bit unusual as I don't use a self-signed certificate, I'm using a different CA as root. It's easiest, but costs money, to use a real root CA and avoid the hassle of configuring outlook/windows to trust a new root certificate. dnl add STARTTLS support define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs')dnl define(`confCACERT_PATH', `CERT_DIR')dnl define(`confCACERT', `CERT_DIR/mitelroot_cert.pem')dnl define(`confSERVER_CERT', `CERT_DIR/cert.pem')dnl define(`confSERVER_KEY', `CERT_DIR/priv_key.pem')dnl define(`confCLIENT_CERT', `CERT_DIR/cert.pem')dnl define(`confCLIENT_KEY', `CERT_DIR/priv_key.pem')dnl then add support on the smtps port... DAEMON_OPTIONS(`Port=smtps,Addr={put_your_addr_here}, Name=TLSMTA, M=s')dnl smtp over TLS on port 465 then do the standard make and make restart thingie to restart sendmail try it out and see what fails (it helps to bump sendmail logging to 64). -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: SMTP AUTH
On Tue, 25 May 2004, Noah wrote: sendmail-8.12.11 freeBSD-4.9-STABLE I must be doing something wrong. SMTP AUTH is not working very well for me. I have been trying to authenticate with user and password to port 25. I prefer to send all auth user and password information with SSL encryption. would like SSL Version 3 encryption. You've got This server requires a secure connection (SSL) enabled for the SMTP server in Outlook? In my experience (outlook 2000, not tested on outlook express) this won't work. Outlook doesn't seem to understand that use SSL means use STARTLS. What I did was to configure sendmail to also support smtps (SSL before SMTP) on the smtps port (465) and point outlook at that port with the use ssl checked. I have configured outgoing mail requiring authentication then clicking both with Secure Password Authenticaiton and without. That should be without for SPA. Agreed, turn off SPA. -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: SquirrelMail login issues
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Oliveri Sent: Monday, May 24, 2004 11:31 AM To: [EMAIL PROTECTED] Subject: SquirrelMail login issues Hello, I'm using SquirrelMail on FreeBSD 4.9 Release and I've installed the latest imap-uw from ports to allow SquirrelMail logins. Per the SquirrelMail support page, I used the following environment variable to run make before installation: env WITH_SSL_AND_PLAINTEXT=YES make per http://www.squirrelmail.org/wiki/en_US/UWLoginDisabled However, every time a user logs in, we get the following error in the logs: (date) (time) server imapd[48297]: Login disabled user=(username) auth=(username) host=localhost.uti.com [127.0.0.1] Has anyone run into this before? It was working fine before reinstalling the server, and unfortunately I'm not sure what the previous sysadmin may have done to get SquirrelMail up and running properly. I added the following to /etc/make.conf so it'll pick up the right settings everytime... .if ${.CURDIR} == /usr/ports/mail/imap-uw WITH_SSL_AND_PLAINTEXT=yes .endif .if ${.CURDIR} == /usr/ports/mail/cclient WITH_SSL_AND_PLAINTEXT=yes .endif then forced a rebuild of imap-uw. (i think i used portupgrade -f imap-uw). Don't forget to reload imap with a HUP to inetd. I installed squirrelmail a while after that and it has worked fine for me. Just playing with plugins right now. Also, I need to move to apache13-modssl (to avoid the plaintext logins that I currently have) but that looks like a fairly major upgrade and I'm waiting for my nerve to build up. -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: vinum State Down Help?
i don't think you want to vinum a swap partition. you can just create the swap partitions and add them to fstab( or if you run /stand/sysinstall to do the disklabel, it'll populate fstab for you), the OS will nicely share amongst all your swap partitions. and if you only have one drive, why are you using vinum at all? am i missing something? Someone please correct me if I'm wrong. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris Collins Sent: Thursday, May 13, 2004 2:11 PM To: [EMAIL PROTECTED] Subject: vinum State Down Help? Hello I am trying to setup vinum but I am having a config problem I hope sombody can answer... I cannot get my /usr/ and /var and for some reason my swap is showing at 18G... What am I doing wrong? OUTOUT vinum - create vinum.conf 1 drives: D YouCrazy State: up Device /dev/ad0s1h Avail: 384/19544 MB (1%) 4 volumes: V root State: up Plexes: 1 Size: 128 MB V swap State: up Plexes: 1 Size: 18 GB V usr State: down Plexes: 0 Size: 0 B V var State: down Plexes: 0 Size: 0 B 2 plexes: P root.p0 C State: up Subdisks: 1 Size: 128 MB P swap.p0 C State: up Subdisks: 3 Size: 18 GB 4 subdisks: S root.p0.s0State: up PO:0 B Size: 128 MB S swap.p0.s0State: up PO:0 B Size: 112 MB S swap.p0.s1State: up PO: 112 MB Size: 18 GB S swap.p0.s2State: up PO: 18 GB Size: 256 MB vinum - vinum.conf drive YouCrazy device /dev/ad0s1h volume root plex org concat sd len 262144s driveoffset -16s drive YouCrazy volume swap plex org concat sd len 230471s driveoffset 262409s drive YouCrazy volume usr sd len 38485137s driveoffset 1541456s drive YouCrazy volume var sd len 524288s driveoffset 492880s drive YouCrazy /dev/ad0s1 setup 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 26214404.2BSD 2048 1638494 # (Cyl.0 - 260*) b: 230471 262425 swap# (Cyl. 260*- 488*) c: 400266090unused0 0 # (Cyl.0 - 39708*) e: 524288 4928964.2BSD 2048 1638494 # (Cyl. 488*- 1009*) f: 524288 10171844.2BSD 2048 1638494 # (Cyl. 1009*- 1529*) g: 38485137 15414724.2BSD 2048 1638489 # (Cyl. 1529*- 39708*) h: 40026593 16 vinum df. FilesystemSize Used Avail Capacity Mounted on /dev/ad0s1a 126M35M81M30%/ /dev/ad0s1f 252M12K 232M 0%/tmp /dev/ad0s1g18G 230M16G 1%/usr /dev/ad0s1e 252M 240K 232M 0%/var procfs4.0K 4.0K 0B 100%/proc mirror# ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: vinum striped volume has corrupt plex, help needed (resolved)
Final update on this chapter for all of you breathlessly waiting for word on what happened... :) turned out to be a couple of issues. The scsi cable seemed to be sensitive to it's route through the innards of my case, a little more interference in some spots perhaps. But the bigger issue was that the extra drive I added taxed my power supply just a bit too much. When the 5 baracudda drives were operational under vinum (and striping made them *all* active at once) the resultant strain on the PS lead to signal errors on the scsi bus (fast and wide but not differential). Powering off the new drive allowed me to restore vinum (thanks for the setstate, i needed it several times) and copy off the data to a network share. One think I noticed and I'm wondering if anyone else has seen this. When my scsi drives were having difficulity, they would spin down to a lower speed. Sometimes they would spin down to several lower speeds and even stop on occasion before spinning back up. This was sometimes (but not always) accompanied by a bus free in data-in phase error message on the console. In severe cases there would be an entire scsi dump state on the console. Was the scsi driver telling the drives to spin down or were the drives doing it themselves? I've never seen that behaviour in other OSs. I'm wondering if the drives (i couldn't figure out which one was changing speed) were responding to PS voltage drops or something? Another thing One forgets the march of technology. I remember coding scsi drivers waay back when it was called sasi. Reverting my fast-wide-disconnectenabled-synchronous drives back to narrow-slow-nodisconnect and asynchronous (just like the original spec) made them very slow. took forever to dd them. And of course my scsi drives are slow by todays scsi standards... anyway, thanks all. -lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lee Dilkie Sent: Sunday, May 09, 2004 9:50 AM To: 'Greg 'groggy' Lehey' Cc: [EMAIL PROTECTED] Subject: RE: vinum striped volume has corrupt plex, help needed Update on my progress. The setstate up allows me to read my array now. I seem to have a read error on /dev/da1s1e about 262M from the start of the disk. (i'm using dd if=/dev/da*s1e to copy the contents of each drive to separate files, in case i screw something up and I need to restore a drive and re-try the vinum... don't know if that a dumb idea or not but it seemed logical). anyway, i have to figure out a way to get around this read error. or find out what file(s) it affects so i can avoid trying to copy them. Any pointers would be welcome (as I fire up google... where would we be without search engines?) When i tried to vinum start striped.p0.s1, most of the time i would get an error Input/output error (5) but a couple of times the command hung (as it is right now). It would be interesting to see the ps -l output for that process and any other Vinum-related processes. Darn. I wish i had done that for you but I rebooted my server and vinum is running correctly now. When this is all finished, I'll see if I can get vinum stuck again and retrieve anything you wish. thanks for the help folks(greg), the saga continues. -lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Greg 'groggy' Lehey Sent: Saturday, May 08, 2004 6:40 PM To: Lee Dilkie Cc: [EMAIL PROTECTED] Subject: Re: vinum striped volume has corrupt plex, help needed On Saturday, 8 May 2004 at 13:37:42 -0400, Lee Dilkie wrote: Hi there, I've been running a 5 disk vinum array (sripted, no redundancy) for a few months now. It's composed of 5 scsi drives of 4G each. I bought a new 120G ide drive, with the intention of copying over all the files from the vinum array and retiring the array (the scsi drives are really loud). All was fine until the file copy part. Shortly after starting, i started to get scsi errors and the scsi system reset the drives and re-spun them up in an attempt to provide data (this i could hear). Eventually vinum reported a read error. My machine kinda locked up because there were swap partitions on the scsi drives and things just went south when the OS couldn't swap properly. I rebooted and fsck'd my other partitions just fine but vinum reported that the plex was corrupt and one of the subdisks was stale (see vinum list output below). I also include the output from the command to read and parse the vium table on each drive ( as describe at http://www.vinumvm.org/vinum/how-to-debug.html ). it sure looks to me like all the disks have the same vinum info. When i tried to vinum start striped.p0.s1, most of the time i would get an error Input/output error (5) but a couple of times the command hung (as it is right now). It would be interesting to see the ps -l output for that process and any other Vinum-related processes. Also, I reconfured my scsi (2940uw) to the lowest transfer speed, disabled wide negotation
RE: vinum striped volume has corrupt plex, help needed
Update on my progress. The setstate up allows me to read my array now. I seem to have a read error on /dev/da1s1e about 262M from the start of the disk. (i'm using dd if=/dev/da*s1e to copy the contents of each drive to separate files, in case i screw something up and I need to restore a drive and re-try the vinum... don't know if that a dumb idea or not but it seemed logical). anyway, i have to figure out a way to get around this read error. or find out what file(s) it affects so i can avoid trying to copy them. Any pointers would be welcome (as I fire up google... where would we be without search engines?) When i tried to vinum start striped.p0.s1, most of the time i would get an error Input/output error (5) but a couple of times the command hung (as it is right now). It would be interesting to see the ps -l output for that process and any other Vinum-related processes. Darn. I wish i had done that for you but I rebooted my server and vinum is running correctly now. When this is all finished, I'll see if I can get vinum stuck again and retrieve anything you wish. thanks for the help folks(greg), the saga continues. -lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Greg 'groggy' Lehey Sent: Saturday, May 08, 2004 6:40 PM To: Lee Dilkie Cc: [EMAIL PROTECTED] Subject: Re: vinum striped volume has corrupt plex, help needed On Saturday, 8 May 2004 at 13:37:42 -0400, Lee Dilkie wrote: Hi there, I've been running a 5 disk vinum array (sripted, no redundancy) for a few months now. It's composed of 5 scsi drives of 4G each. I bought a new 120G ide drive, with the intention of copying over all the files from the vinum array and retiring the array (the scsi drives are really loud). All was fine until the file copy part. Shortly after starting, i started to get scsi errors and the scsi system reset the drives and re-spun them up in an attempt to provide data (this i could hear). Eventually vinum reported a read error. My machine kinda locked up because there were swap partitions on the scsi drives and things just went south when the OS couldn't swap properly. I rebooted and fsck'd my other partitions just fine but vinum reported that the plex was corrupt and one of the subdisks was stale (see vinum list output below). I also include the output from the command to read and parse the vium table on each drive ( as describe at http://www.vinumvm.org/vinum/how-to-debug.html ). it sure looks to me like all the disks have the same vinum info. When i tried to vinum start striped.p0.s1, most of the time i would get an error Input/output error (5) but a couple of times the command hung (as it is right now). It would be interesting to see the ps -l output for that process and any other Vinum-related processes. Also, I reconfured my scsi (2940uw) to the lowest transfer speed, disabled wide negotation (these are wide fast drives), disabled disconnect and disabled synchronous transfers. Basicly, i slowed them down as slow as they can go. I am able to successfully read each drive (tested the first 1G of each using dd if=/dev/da*s1e of=/dev/null bs=1m count=1000). That might work for a while. There were no write operations to the vinum volume when things crashed. I'm hoping i can get vinum up and running again so i can copy off this data. Vinum protects you by making it difficult to access data of dubious integrity. Question to the group. Would a vinum create using the original configuration (i have the file) recover this situation so i could mount and read the disk? Yes. Is there something else to do that will help? Yes. Do: vinum - setstate up striped.p0.s1 striped.p0 When you're happy with the data, do: vinum - setdaemon 4 vinum - saveconfig Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html Note: I discard all HTML mail unseen. Finger [EMAIL PROTECTED] for PGP public key. See complete headers for address and phone numbers. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
vinum striped volume has corrupt plex, help needed
Hi there, I've been running a 5 disk vinum array (sripted, no redundancy) for a few months now. It's composed of 5 scsi drives of 4G each. I bought a new 120G ide drive, with the intention of copying over all the files from the vinum array and retiring the array (the scsi drives are really loud). All was fine until the file copy part. Shortly after starting, i started to get scsi errors and the scsi system reset the drives and re-spun them up in an attempt to provide data (this i could hear). Eventually vinum reported a read error. My machine kinda locked up because there were swap partitions on the scsi drives and things just went south when the OS couldn't swap properly. I rebooted and fsck'd my other partitions just fine but vinum reported that the plex was corrupt and one of the subdisks was stale (see vinum list output below). I also include the output from the command to read and parse the vium table on each drive ( as describe at http://www.vinumvm.org/vinum/how-to-debug.html ). it sure looks to me like all the disks have the same vinum info. When i tried to vinum start striped.p0.s1, most of the time i would get an error Input/output error (5) but a couple of times the command hung (as it is right now). Also, I reconfured my scsi (2940uw) to the lowest transfer speed, disabled wide negotation (these are wide fast drives), disabled disconnect and disabled synchronous transfers. Basicly, i slowed them down as slow as they can go. I am able to successfully read each drive (tested the first 1G of each using dd if=/dev/da*s1e of=/dev/null bs=1m count=1000). There were no write operations to the vinum volume when things crashed. I'm hoping i can get vinum up and running again so i can copy off this data. Question to the group. Would a vinum create using the original configuration (i have the file) recover this situation so i could mount and read the disk? Is there something else to do that will help? TIA, -lee info follows: # uname -a FreeBSD spock.dilkie.com 4.10-PRERELEASE FreeBSD 4.10-PRERELEASE #1: Sun May 2 15:11:04 EDT 2004 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SPOCK i386 # vinum list 5 drives: D a State: up Device /dev/da0s1e Avail: 1/4000 MB (0%) D b State: up Device /dev/da1s1e Avail: 1/4000 MB (0%) D c State: up Device /dev/da2s1e Avail: 1/4000 MB (0%) D d State: up Device /dev/da3s1e Avail: 1/4000 MB (0%) D e State: up Device /dev/da4s1e Avail: 1/4000 MB (0%) 1 volumes: V striped State: up Plexes: 1 Size: 19 GB 1 plexes: P striped.p0 S State: corrupt Subdisks: 5 Size: 19 GB 5 subdisks: S striped.p0.s0 State: up PO:0 B Size: 3998 MB S striped.p0.s1 State: R 0% PO: 373 kB Size: 3998 MB *** Revive process for striped.p0.s1 has died *** (NOTE, this originally reported stale) S striped.p0.s2 State: up PO: 746 kB Size: 3998 MB S striped.p0.s3 State: up PO: 1119 kB Size: 3998 MB S striped.p0.s4 State: up PO: 1492 kB Size: 3998 MB # results of reading the first bit of each drive... # for i in /dev/da0s1e /dev/da1s1e /dev/da2s1e /dev/da3s1e /dev/da4s1e; do (dd if=$i skip=8 count=6|tr -d '\000-\011\200-\377'; echo) log done IN VINOspock.dilkie.comcLg@@0WEVBJ volume striped state up plex name striped.p0 state corrupt org striped 746s vol striped sd name striped.p0.s0 drive a len 8189588s driveoffset 265s state up plex striped.p0 plexoffset 0s sd name striped.p0.s1 drive b len 8189588s driveoffset 265s state stale plex striped.p0 plexoffset 746s sd name striped.p0.s2 drive c len 8189588s driveoffset 265s state up plex striped.p0 plexoffset 1492s sd name striped.p0.s3 drive d len 8189588s driveoffset 265s state up plex striped.p0 plexoffset 2238s sd name striped.p0.s4 drive e len 8189588s driveoffset 265s state up plex striped.p0 plexoffset 2984s IN [EMAIL PROTECTED] @} WEVBJ volume striped state up plex name striped.p0 state corrupt org striped 746s vol striped sd name striped.p0.s0 drive a len 8189588s driveoffset 265s state up plex striped.p0 plexoffset 0s sd name striped.p0.s1 drive b len 8189588s driveoffset 265s state stale plex striped.p0 plexoffset 746s sd name striped.p0.s2 drive c len 8189588s driveoffset 265s state up plex striped.p0 plexoffset 1492s sd name striped.p0.s3 drive d len 8189588s driveoffset 265s state up plex striped.p0 plexoffset 2238s sd name striped.p0.s4 drive e len 8189588s driveoffset 265s state up plex striped.p0 plexoffset 2984s IN [EMAIL PROTECTED]@ WEVBJ volume striped state up plex name striped.p0 state corrupt org striped 746s vol striped sd name striped.p0.s0 drive a len 8189588s driveoffset 265s state up plex striped.p0 plexoffset 0s sd name striped.p0.s1 drive b len 8189588s
bsdpan-DB_File - missing origin
I keep getting this message when I do a portversion or portupgrade. (it also says it's held, which it is in the pkgtools.conf file) I tried to do a pkgdb -Ff but what am I supposed to do with this entry? I googled this problem and I understand that *something* has installed this module/package/??? from CPAN. How can I find out what port is using this? I have a DB_File already installed from the db41 port, so why is another one needed? Is there anything I can do so the port tools run without complains? Should I leave bsdpan-DB_File alone? Should I hunt it out and delete? TIA, -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: bsdpan-DB_File - missing origin
If you do perl -MCPAN -e shell install DB_File then you get that port. Okay, that is good to know. But I, personally, never did this so it must have been done by one of the ports I have installed. I just wonder which one, or rather, how one goes about discovering which one. Any ideas? Note that the Berkeley-DB library (from the db41 port) and the Perl interface thereto (DB_File) are two different things. I installed the db41 but after that was done, i went into the perl subdir, fixed up config.in and ran the perl installation. I had done that some time ago for graphdefang ( it's not from ports but it needed DB_File). I would think they have the same api, but what do I know of perl ;) Kai PS: Is thereto correct in this context? It seemed like a cool way to make the sentence shorter ;-) looks correct to me, but I'm an engineer and my language skills (outside programming languages) aren't the greatest. ;) thanks for the help. -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Qpopper SSL
I have followed the instruction at various sites about how this should be done including eudora.com/qpopper. I have also followed alot of instructions on how to make a cert-file (cert.pem) from a .key and .crt file. That includes openssh.org. I cannot get it to work anyway. -- I must be missing something?!? -- I am reciving the errors below in my log files. Mar 5 13:00:33 frodo qpopper[390]: Error setting private key PEM file /usr/local/etc/qpopper/cert.pem Mar 5 13:00:33 frodo qpopper[390]: ...SSL error: error:0906D06C:PEM routines:PEM_read_bio:no start line Mar 5 13:00:33 frodo qpopper[390]: ...SSL error: error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib Mar 5 13:00:33 frodo qpopper[390]: Failed initializing TLS/SSL The error indicates that Qpopper (OpenSSL actually) is having problems reading the private key. Since you are using one file to hold both the private key and the certificate you need to be sure it's formatted correctly *and* the private key isn't encrypted with a password (when you generated the certifiate request, you did so without a password...). cert.pem shold look like.. -BEGIN RSA PRIVATE KEY- MIICXgIBAAKB ... -END RSA PRIVATE KEY- Certificate: Data: Version: 3 (0x2) ... d1:81 -BEGIN CERTIFICATE- MIIEATCCA2qgAwIBAgIBCjANBgkqhkiG9... ... SNSweeFHTZfpnGjjSp9lb258gtGB -END CERTIFICATE- You may have mutiple certificate sections. The Certificate: section is only really for looks and isn't parsed. It's the BEGIN RSA PRIVATE KEY section that is important, or at least the part that is causing this error. -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: forwarding with ttl=1
Hi All I am newbie with configuring networks under FreeBSD . I have small network with gateway running on FreeBSD 5.2 Release .My ISP offers me pppoe service for connecting to Internet . I didn't have problems with configuring ppp with pppoe . I used nat option wchich works fine for masquerading the local network from the world . The problem is that the ISP's gateway returns every time packets with ttl=1 which makes further forwarding impossible . My gateway returns icmp error mesage time exceeded and discards packets . I want to know if I made some mistake with configuring nat service or if not what is the solution of the problem ? Is there any service that can increment ttl and process the packet ? I tried to avoid the checking of ttl in the ip_forward() function in ip_input.c and skipping the decrement of ttl and everything works fine but i think that this is very ugly kernel hack . Probably there is an easy and elegant solution . Any ideas ? TTL (Time To Live) is a counter value in an IP packet that gets decremented by every hop (router). When it reaches a value of zero, the packet is discarded. Using a TTL of 1 isn't going to be very useful as your packets will all be discarded at the first router. This is working as intended. Normally, TTL is set to 128-ish. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FW: [5.2.1-RC, IPFW] Traffic Shaping
oops, sent to wrong list -Original Message- From: Lee Dilkie [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 8:00 AM To: 'Bjorn Eikeland'; 'Jaco van Tonder'; '[EMAIL PROTECTED]' Subject: RE: [5.2.1-RC, IPFW] Traffic Shaping There isnt much you can really do as to shape incomming traffic, however you can limit how fast you accept the incomming data. (At least this is what im used to from my little experience with linux.) I tried* the following rule, and in theroy it sounds up to the job: ipfw add pipe 1 tcp from not me to me smtp *)when I say tried I really mean ipfw didnt complain, but no traffic actually saw it. Obviously you can replace 'me' with your actual ip and 'smtp' with 25, but I find its easier to read english. Feel free to try that though :) I'm running IPFW on 4.9 and inbound traffic shaping does work, I've verified that. my rule section... ipfw -f pipe flush # do pipes first or later rules will tigger and pipes won't be used # newfiechick in/out ipfw pipe 1 config bw 100Kbit/s ipfw pipe 2 config bw 60Kbit/s # sendmail limits in/out ipfw pipe 3 config bw 80Kbit/s ipfw pipe 4 config bw 80Kbit/s # testing #ipfw pipe 5 config bw 80Kbit/s #ipfw pipe 6 config bw 80Kbit/s # bandwidth throttling #ipfw add pipe 1 ip from any to newfiechick in #ipfw add pipe 2 ip from newfiechick to any out ipfw add pipe 3 tcp from any to spock smtp in ipfw add pipe 3 tcp from any to spock pop3 in ipfw add pipe 4 tcp from spock to any smtp out ipfw add pipe 4 tcp from spock pop3 to any out #ipfw add pipe 5 udp from any to 206.51.1.220 in #ipfw add pipe 6 udp from 206.51.1.220 to any out These come before any deny/allow rules. The commented out testing rule was to an internet phone and i was able to turn down the b/w and affect the voice quality in either direction so I'm confident that this works. -lee Hi all, I am using FreeBSD 5.2.1-RC + IPFW2 + DUMMYNET to do traffic shaping. This works well for my setup. I have the following configuration: The machine has 2 NIC's, xl0, dc0. The kernel is configured to do bridging. The bridged packets is passed to IPFW (net.link.ether.bridge.ipfw=1). I shape traffic this way: The bridge is setup between a router and an internal mail server. I am limiting bandwith using the following rules: pipe 1 config bw 16KBytes/s pipe 2 config bw 12KBytes/s and then: add pipe 1 tcp from any to any 25 (limit incoming traffic towards smtp) add pipe 2 tcp from any 110 to any (limit outgoing traffic from pop3) Yesterday, while browsing through Absolute BSD by Michael Lucas I read an interesting part: You cannot shape incoming traffic the way that I do at the moment. Now, my question: How can I limit the incoming traffic towards my smtp server properly? Any advice would be apreciated. Thank you, Regards Jaco van Tonder ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Spam Assassin?
/usr/ports/mail/p5-Mail-SpamAssassin though you may want to install MIMEDefang instead and access SpamAssassin through it. I find it better. -lee -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Eric F Crist Sent: Saturday, January 24, 2004 11:51 PM To: [EMAIL PROTECTED] Subject: Spam Assassin? Where is the Spam Assassin port? The only thing I can find is spamass-milter which just USES Spam Assassin. TIA -- Eric F Crist AdTech Integrated Systems, Inc (612) 998-3588 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: problems creating a bootable image using burncd
On Tue, 13 Jan 2004 13:07:20 -0600 Vulpes Velox [EMAIL PROTECTED] wrote: I've been trying to create a a bootable CD using freesbie. I ran into problems getting that to work. It failed to boot and the same thing happened upon reburn. I then went to download a the 4.9 install iso to see if it was a possible problem with the image that was created. The iso passed the check sum, but after burning it, it would not boot too. I've managed to verify that it is possible of booting from that drive using a old win98 install disc I have laying around. The install for that comes up fine. I've also tried it at different speeds and have gotten the same results. Any ideas? What method are you using to burn the CD? If it's a method that's worked for you in the past, it sounds like you might have some flaky CD-R's. I seem to recall a discussion some months ago regarding a change to the way boot CDs were made. This had the effect of breaking bootable CDs when using older BIOSes that only knew about the old way of booting from CD. Pardon my vagueness. I thought this was a 5.x issue but perhaps it was/is a 4.9 issue as well. -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: ipfw2
From man ipfw --- src and dst: {addr | { addr or ... }} [[not] ports] addr: [not] {any | me | addr-list | addr-set} addr-set: addr[/masklen]{list} list: {num | num-num}[,list] --- I think that it's right: ipfw 1000 add permit all from 192.168.1.1/24{3,5,9} to any but I see follwing: ipfw: bad width ``243'' If I do: ipfw 10005 add permit all from 192.168.1.3,192.168.1.5,192.168.1.9 to any What are you trying to do/say? 192.168.1.1/24{3,5,9} translates to 192.168.1.1/243, 192.168.1.1/245 or 192.168.1.1/249. All of which are illegal, /xx cannot exceed 32 in value (32 bits to a IPv4 internet address). Hence the bad width error message. -lee ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]