RELEASE-8.1 with heavy network activity (nginx + php-fpm)
I have a FreeBSD box with 8.1. It seems we hit the limits for the maximum network connections, because I always see this message in the nginx-error.log: 2011/07/08 08:48:40 [error] 40438#0: *30564045 kevent() reported that connect() failed (54: Connection reset by peer) while connecting to upstream, client: 188.36.171.27, server: netadclick.com, request: GET /hirdetes/148 HTTP/1.1, upstream: fastcgi://127.0.0.1:9000, host: www.netadclick.com, referrer: http://www.netadclick.com/hirdetes/148; 2011/07/08 08:48:41 [error] 40438#0: *30564021 writev() failed (54: Connection reset by peer) while sending request to upstream, client: 95.171.73.72, server: netadclick.com, request: GET /hirdetes/1051/0505 HTTP/1.1, upstream: fastcgi://127.0.0.1:9000, host: www.netadclick.com, referrer: http://www.freespirit.hu/szex/durva_ezert_ne_hordj_tangat; The Box has approximately: 35,000 - 65,000 connections at the same time: In the early morning it has 45,564 connections: netstat -n | grep '^tcp4' | wc -l 45564 The system runs correctly for a few minutes, and after it's reaching some limits, all connections are reset (Connection reset by peer, the error log is filled with thousands of Connection reset by peer message) and it starts working correctly again for another few minutes. I've tuned some variables like: kern.ipc.shmall=32768 kern.ipc.shmmax=134217728 kern.ipc.semmap=256 net.inet.ip.maxfragpackets=1600 kern.threads.max_threads_per_proc=4096 kern.maxfiles=204800 kern.maxfilesperproc=20 kern.maxvnodes=20 net.inet.tcp.maxtcptw=20 kern.ipc.nmbjumbo9=24000 kern.ipc.nmbjumbo16=10240 kern.ipc.maxsockets=65536 net.inet.tcp.fast_finwait2_recycle=1 net.inet.tcp.recvbuf_auto=0 net.inet.tcp.recvspace=65535 net.inet.ip.portrange.randomized=0 net.inet.ip.intr_queue_maxlen=4096 net.inet.tcp.finwait2_timeout=3 kern.ipc.somaxconn=2048 /boot/loader.conf kern.ipc.semmni=1024 kern.ipc.semmns=2048 kern.ipc.semmnu=1024 kern.ipc.maxsockets=65536 kern.maxproc=12328 kern.ipc.shmmax=2147483648 kern.ipc.somaxconn=4096 net.inet.tcp.hostcache.cachelimit=65532 What should I do? Any ideas? Any tuning tips? Thanks in advance, -- Adam PAPAI ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: DNS and file system messed up...
On 7 July 2011, at 22:58, Gary Kline wrote: Jul 7 10:16:33 ethic named[54366]: none:0: open: /etc/named.conf: file not found Jul 7 10:17:56 ethic named[54371]: starting BIND 9.3.6-P1 -c /var/named/etc/namedb/named.conf The first one that fails is looking for /etc/named.conf. The second one shows its in /var/named/etc/named/named.conf Those are different locations. I suspect you have named_flags setup in rc.conf pointing to /etc/namedb/named.conf rather than the right location. Its also possible that its not set in rc.conf but defaults in either the rc script or /etc/rc.d/named. On my system it appears to default in /etc/rc.d/named.___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: DNS and file system messed up...
On 08/07/2011 08:25, Doug Hardie wrote: On 7 July 2011, at 22:58, Gary Kline wrote: Jul 7 10:16:33 ethic named[54366]: none:0: open: /etc/named.conf: file not found Jul 7 10:17:56 ethic named[54371]: starting BIND 9.3.6-P1 -c /var/named/etc/namedb/named.conf The first one that fails is looking for /etc/named.conf. The second one shows its in /var/named/etc/named/named.conf Those are different locations. I suspect you have named_flags setup in rc.conf pointing to /etc/namedb/named.conf rather than the right location. Its also possible that its not set in rc.conf but defaults in either the rc script or /etc/rc.d/named. On my system it appears to default in /etc/rc.d/named. FreeBSD defaults to running named chrooted. /etc/namedb is actually a symbolic link: % ls -la /etc/namedb lrwxr-xr-x 1 root wheel 21 Jul 6 06:24 /etc/namedb@ - /var/named/etc/namedb so the files referenced are in fact exactly the same file. However, the flags from the log extract don't look like the defaults to me. (I'm running the dns/bind98 port, and the equivalent info from the log line is '-t /var/named -u bind') Gary, what named related settings do you have in /etc/rc.conf? You almost certainly don't need anything more than: named_enable=YES and perhaps syslogd_flags=-ss -l /var/named/var/run/log so named can log to the system syslog. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: tftp - bad checksum error? can't transfer file
- Original Message - From: Anton Shterenlikht [mailto:me...@bristol.ac.uk] Sent: Thursday, July 07, 2011 05:44 PM To: freebsd-questions@freebsd.org freebsd-questions@freebsd.org Subject: tftp - bad checksum error? can't transfer file I'm trying to troubleshoot tftpd(8). % grep boot /etc/inetd.conf tftp dgram udp wait root /usr/libexec/tftpd tftpd -dd -l -s /tftpboot tftp dgram udp wait root /usr/libexec/tftpd tftpd -dd -l -s /tftpboot bootps dgram udp wait root /usr/libexec/bootpd bootpd -d4 -t0 /etc/bootptab % I'm trying to boot another node via bootp/tftp. I'm monitoring what's going on with tcpdump -vv. bootpd starts fine, and seems to read /etc/bootptab correctly. But after that nothing happens, and after a few minutes I get on the console of the host which I want to boot: bootp()/bsd.rd.IP32 Unable to execute bootp()/bsd.rd.IP32: invalid argument Does this tcpdump fragment help to understand where the problem is: 192.168.232.10.15388 buzi.tftp: [no cksum] 25 RRQ /bsd.rd.IP32 octet ( o 23:25:21.024160 IP (tos 0x0, ttl 64, id 56, offset 0, flags [none], proto UDP (1 7), length 30, bad cksum 0 (-293a)!) buzi.19330 192.168.232.10.15388: [udp sum ok] UDP, length 2 23:25:51.013759 IP (tos 0x0, ttl 255, id 256, offset 0, flags [none], proto UDP (17), length 53) I'm happy to provide more detailed information on the settings I use and a longer tcpdump output, if this helps. On Thu, Jul 07, 2011 at 05:54:38PM -0500, Gary Gatten wrote: From my experience tcpdump is misleading re udp fragments and chksums. If the packet gets fragmented, udp will report bad chksums at some point. Check your file names (case), perms, etc. 90% of time I typo a name or forget to chmod the files; % ls -al /tftpboot/bsd.rd.IP32 -rwxrwxrwx 1 root wheel 9646005 Jul 7 21:02 /tftpboot/bsd.rd.IP32 % % cat /etc/bootptab o2:\ :ht=ether:\ :ha=0800690c0e3f:\ :sm=255.255.255.0:\ :ip=192.168.232.10:\ :td=/tftpboot:bf=bsd.rd.IP32: % Does this look ok? Many thanks Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: tftp - bad checksum error? can't transfer file
On Fri, Jul 8, 2011 at 12:44 AM, Anton Shterenlikht me...@bristol.ac.uk wrote: I'm trying to troubleshoot tftpd(8). (...) 192.168.232.10.15388 buzi.tftp: [no cksum] 25 RRQ /bsd.rd.IP32 octet ( o 23:25:21.024160 IP (tos 0x0, ttl 64, id 56, offset 0, flags [none], proto UDP (1 7), length 30, bad cksum 0 (-293a)!) buzi.19330 192.168.232.10.15388: [udp sum ok] UDP, length 2 23:25:51.013759 IP (tos 0x0, ttl 255, id 256, offset 0, flags [none], proto UDP (17), length 53) I've had some trouble netbooting / jumpstaring recently with a similar pattern (using RARP/BOOTP/TFTP/NFS). It turned out to be a dying port on the switch whose errors were masked by TCP in day to day use, but alas were too frequent for UDP. -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ncal(1) prints control sequences on stdout if stdout is not a tty
On Thu Jul 7 11, Tobias Rehbein wrote: Hi list, being the maintainer of www/nanoblogger, which uses cal(1) to generate the blog calendar, I noticed that ncal(1), and therefore cal(1), prints control sequences to stdout in order to highlight the current date. This scrambles the calendar generated by nanoblogger. I fixed this issue in the port but talking to one of the folks of our local unix user group I was asked why I am not fixing this in ncal(1) as the sane behaviour would be to omit control sequences if stdout is not a tty. Thinking about that I decided to create a patch: http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/158580 I just wanted to ask you fellow FreeBSD users what you think about this issue as feedback in PRs tends to be slow. hi there, i've assigned your PR to Edwin Groothuis, who has been dealing with ncal(1) a lot lately. I think chances are pretty high he's going to commit your patch this month. cheers. alex Regards Tobias ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: tftp - bad checksum error? can't transfer file
On Fri, Jul 08, 2011 at 12:05:37PM +0200, C. P. Ghost wrote: On Fri, Jul 8, 2011 at 12:44 AM, Anton Shterenlikht me...@bristol.ac.uk wrote: I'm trying to troubleshoot tftpd(8). (...) ? ?192.168.232.10.15388 buzi.tftp: [no cksum] ?25 RRQ /bsd.rd.IP32 octet ( o 23:25:21.024160 IP (tos 0x0, ttl 64, id 56, offset 0, flags [none], proto UDP (1 7), length 30, bad cksum 0 (-293a)!) ? ?buzi.19330 192.168.232.10.15388: [udp sum ok] UDP, length 2 23:25:51.013759 IP (tos 0x0, ttl 255, id 256, offset 0, flags [none], proto UDP (17), length 53) I've had some trouble netbooting / jumpstaring recently with a similar pattern (using RARP/BOOTP/TFTP/NFS). It turned out to be a dying port on the switch whose errors were masked by TCP in day to day use, but alas were too frequent for UDP. I just have a direct ethernet connection between my FreeBSD laptop with bootpd/tftpd servers (one ethernet port only) and a node which I want to boot (also a single ethernet port). Is there way for me to check whether either of these ports are dying? Any further diagnostics I can do? Many thanks Anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Perl Problem After Upgrade to 5.12.4
On Wed, 06 Jul 2011 10:01:21 -0500, Tim Daneliuk wrote: Ideas anyone? I am trying to rebuild SpamAssassin after a perl upgrade to 5.12.4 and get this (I DID run perl-after-upgrade prior to this): === p5-Encode-Detect-1.01 depends on file: /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm - not found ===Verifying install for /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm in /usr/ports/devel/p5-Module-Build === License check disabled, port has not defined LICENSE === Extracting for p5-Module-Build-0.3800_1 = SHA256 Checksum OK for Module-Build-0.3800.tar.gz. === p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found === Patching for p5-Module-Build-0.3800_1 === p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found === p5-Module-Build-0.3800_1 depends on package: p5-CPAN-Meta=2.110420 - found === p5-Module-Build-0.3800_1 depends on package: p5-Module-Metadata=1.02 - found === p5-Module-Build-0.3800_1 depends on package: p5-Parse-CPAN-Meta=1.44.01 - found === p5-Module-Build-0.3800_1 depends on package: p5-Perl-OSType=1.000 - found === p5-Module-Build-0.3800_1 depends on package: p5-version=0.87 - found === p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found === Configuring for p5-Module-Build-0.3800_1 *** BOOTSTRAPPING Perl::OSType *** *** BOOTSTRAPPING version *** *** BOOTSTRAPPING Module::Metadata *** Checking prerequisites... requires: ! CPAN::Meta is not installed build_requires: ! Parse::CPAN::Meta (1.40) is installed, but we need version = 1.4401 ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation Could not create MYMETA files Creating new 'Build' script for 'Module-Build' version '0.3800' Copied META.yml to MYMETA.yml for bootstrapping These additional prerequisites must be installed: requires: ! Perl::OSType (we need version 1.00) ! version (we need version 0.87) ! Module::Metadata (we need version 1.02) === Building for p5-Module-Build-0.3800_1 Can't locate Perl/OSType.pm in @INC (@INC contains: t/lib t/bundled lib /usr/local/lib/perl5/5.12.4/BSDPAN /usr/local/lib/perl5/site_perl/5.12.4/mach /usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.4/mach /usr/local/lib/perl5/5.12.4 .) at lib/Module/Build.pm line 13. BEGIN failed--compilation aborted at lib/Module/Build.pm line 13. Compilation failed in require at Build line 42. BEGIN failed--compilation aborted at Build line 42. *** Error code 2 Stop in /usr1/ports/devel/p5-Module-Build. *** Error code 1 Stop in /usr1/ports/converters/p5-Encode-Detect. *** Error code 1 Stop in /usr1/ports/mail/p5-Mail-SpamAssassin. *** Error code 1 Stop in /usr1/ports/mail/p5-Mail-SpamAssassi Hello Tim, list, I have the same problem on one of my boxes. Cannot upgrade p5-Module-Build-0.3800 port because of this. Cheers, Lars. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Perl Problem After Upgrade to 5.12.4
On Fri, 08 Jul 2011 13:00:24 +0200 SoCruel.NU FreeBSD Questions Mailbox articulated: On Wed, 06 Jul 2011 10:01:21 -0500, Tim Daneliuk wrote: Ideas anyone? I am trying to rebuild SpamAssassin after a perl upgrade to 5.12.4 and get this (I DID run perl-after-upgrade prior to this): === p5-Encode-Detect-1.01 depends on file: /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm - not found ===Verifying install for /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm in /usr/ports/devel/p5-Module-Build === License check disabled, port has not defined LICENSE === Extracting for p5-Module-Build-0.3800_1 = SHA256 Checksum OK for Module-Build-0.3800.tar.gz. === p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found === Patching for p5-Module-Build-0.3800_1 === p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found === p5-Module-Build-0.3800_1 depends on package: p5-CPAN-Meta=2.110420 - found === p5-Module-Build-0.3800_1 depends on package: p5-Module-Metadata=1.02 - found === p5-Module-Build-0.3800_1 depends on package: p5-Parse-CPAN-Meta=1.44.01 - found === p5-Module-Build-0.3800_1 depends on package: p5-Perl-OSType=1.000 - found === p5-Module-Build-0.3800_1 depends on package: p5-version=0.87 - found === p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found === Configuring for p5-Module-Build-0.3800_1 *** BOOTSTRAPPING Perl::OSType *** *** BOOTSTRAPPING version *** *** BOOTSTRAPPING Module::Metadata *** Checking prerequisites... requires: ! CPAN::Meta is not installed build_requires: ! Parse::CPAN::Meta (1.40) is installed, but we need version = 1.4401 ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation Could not create MYMETA files Creating new 'Build' script for 'Module-Build' version '0.3800' Copied META.yml to MYMETA.yml for bootstrapping These additional prerequisites must be installed: requires: ! Perl::OSType (we need version 1.00) ! version (we need version 0.87) ! Module::Metadata (we need version 1.02) === Building for p5-Module-Build-0.3800_1 Can't locate Perl/OSType.pm in @INC (@INC contains: t/lib t/bundled lib /usr/local/lib/perl5/5.12.4/BSDPAN /usr/local/lib/perl5/site_perl/5.12.4/mach /usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.4/mach /usr/local/lib/perl5/5.12.4 .) at lib/Module/Build.pm line 13. BEGIN failed--compilation aborted at lib/Module/Build.pm line 13. Compilation failed in require at Build line 42. BEGIN failed--compilation aborted at Build line 42. *** Error code 2 Stop in /usr1/ports/devel/p5-Module-Build. *** Error code 1 Stop in /usr1/ports/converters/p5-Encode-Detect. *** Error code 1 Stop in /usr1/ports/mail/p5-Mail-SpamAssassin. *** Error code 1 Stop in /usr1/ports/mail/p5-Mail-SpamAssassi Hello Tim, list, I have the same problem on one of my boxes. Cannot upgrade p5-Module-Build-0.3800 port because of this. Has anyone filed a PR against this problem? -- Jerry ✌ jerry+f...@seibercom.net Disclaimer: off-list followups get on-list replies or ignored. Do not CC this poster. Please do not ignore the Reply-To header. http://www.catb.org/~esr/faqs/smart-questions.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
School Management Software (School ERP)
Hello Sir/Madam, Greetings, I am Amrish Patel from NGPL(Nem.Con Grandeur Pvt. Ltd.),Ahmedabad, India. Basically we are in development field since year 2001. We offer the complete set of web development services from requirement specifications to prototyping, copy writing, graphic design and development. We also offer custom software programming services, from software development to support and enhancement.We have also our ready to use software like School Management, Document Management, Appointment Scheduler, Complaint Management Software, Farming ERP, Hospital Management Software, Booking Scheduler etc. The prime features of our School Management Software are as under. Administrative Module Other Module: 1. Notice Board 2. SMS Module: Just to keep the parents update about their child status ESM provide the SMS service where admin can send the information like the scheduled meeting or exam result etc. to the parents. 3. Backup: Backup of the database as and when required. 4. Permission: Create users and assign different level of access permission. 5. Change Password : User can change the password. 6. Mail: Internal mailing system where teachers can communicate with the admin. Teacher Module . One of the key stakeholders is the Teacher and we give the teacher a new media of interaction with the Student. ESMS simplifies laborious and routine functions by automating pertinent data collection, generation and management. . Profile: The Teacher can view his/her profile . Attendance: The module enables the Teacher to view status of attendance as well as generate attendance reports for Students . Time Table: A unique media that allows you to view and edit the class timetable and disseminate the information to the stakeholders in Real time . Library: Teacher can search the database and reserve a book online . Leave Status: Teacher can view Leave status as well as submit leave requests online . Salary: Teacher can view his/her salary details . Mail: Teacher can mail to Principal, Vice-Principal and Head Master . Assignment: Teacher can submit assignments and review completed assignments by students . Exam Schedule: Teacher can upload and view Examination Schedules . Progress Report: The cumbersome process of recording marks in ledgers is done away with. With the use of navigational aids such as graphical icons, the Teacher can easily update and generate Progress Reports . Search Student: Teacher can view relevant Student details . Feedback: The Teacher now has a timesaving media for constantly updating Parents and students as well as sending mail or receiving feedback from other key stakeholders . Leave Application: The Teacher can Submit Leave Application to the Administrator online Student Module . We live in the Information Age where computers have become inevitable in educational institution, with more than 90% of students being computer savvy. . Profile: The Student can view his/her profile, Class Time Tables, attendance record, check examination schedules, see test scores and access subject syllabus . Homework and Assignments: Using ESM, Students have a new platform to increase their knowledge base as well as receive and submit assignments . Leave application: The student can submit leave applications online. . Feedback: Students can keep channels of communication open with the administrator and teaching faculty and can give and receive feedback . Transport: Students can access details regarding bus routes, bus timings and bus fares . Hostel: Students can get online information about hostel details such as room availability and booking, mess details and other facilities offered . Progress Reports: Students can access their performance scores and print Progress Reports . Library: Students can access Library records for availability of books as well as reserve a book online . Fee structure: Students can view fee structure and payment schedules. Technology: Front End: PHP Back End Database: MySQL You can have the demo of our software on www.ngplarena.com/demo/newschool1 For Admin User Name :admin Password : winadminwin For Teachers User name : ramya Password : ramya For Students User Name : diya2005 Password : diya2005 Please feel free to contact us for any further query Awaiting for your favorable reply. Thanking you, For NGPL, Amrish Patel (Business Development) (M)9824523645 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: tftp - bad checksum error? can't transfer file
On Thu, 7 Jul 2011, Anton Shterenlikht wrote: I'm trying to troubleshoot tftpd(8). % grep boot /etc/inetd.conf tftp dgram udp wait root /usr/libexec/tftpd tftpd -dd -l -s /tftpboot tftp dgram udp wait root /usr/libexec/tftpd tftpd -dd -l -s /tftpboot bootps dgram udp wait root /usr/libexec/bootpd bootpd -d4 -t0 /etc/bootptab % I'm trying to boot another node via bootp/tftp. I'm monitoring what's going on with tcpdump -vv. bootpd starts fine, and seems to read /etc/bootptab correctly. But after that nothing happens, and after a few minutes I get on the console of the host which I want to boot: bootp()/bsd.rd.IP32 Unable to execute bootp()/bsd.rd.IP32: invalid argument How big is bsd.rd.IP32? Does the BUGS section of tftpd(8) apply? If so, try ftp/tftp-hpa. It's faster, too, AFAIR. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Perl Problem After Upgrade to 5.12.4
On 7/8/2011 6:52 AM, Jerry said this: On Fri, 08 Jul 2011 13:00:24 +0200 SoCruel.NU FreeBSD Questions Mailbox articulated: On Wed, 06 Jul 2011 10:01:21 -0500, Tim Daneliuk wrote: Ideas anyone? I am trying to rebuild SpamAssassin after a perl upgrade to 5.12.4 and get this (I DID run perl-after-upgrade prior to this): === p5-Encode-Detect-1.01 depends on file: /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm - not found ===Verifying install for /usr/local/lib/perl5/site_perl/5.12.4/Module/Build.pm in /usr/ports/devel/p5-Module-Build === License check disabled, port has not defined LICENSE === Extracting for p5-Module-Build-0.3800_1 = SHA256 Checksum OK for Module-Build-0.3800.tar.gz. === p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found === Patching for p5-Module-Build-0.3800_1 === p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found === p5-Module-Build-0.3800_1 depends on package: p5-CPAN-Meta=2.110420 - found === p5-Module-Build-0.3800_1 depends on package: p5-Module-Metadata=1.02 - found === p5-Module-Build-0.3800_1 depends on package: p5-Parse-CPAN-Meta=1.44.01 - found === p5-Module-Build-0.3800_1 depends on package: p5-Perl-OSType=1.000 - found === p5-Module-Build-0.3800_1 depends on package: p5-version=0.87 - found === p5-Module-Build-0.3800_1 depends on file: /usr/local/bin/perl5.12.4 - found === Configuring for p5-Module-Build-0.3800_1 *** BOOTSTRAPPING Perl::OSType *** *** BOOTSTRAPPING version *** *** BOOTSTRAPPING Module::Metadata *** Checking prerequisites... requires: ! CPAN::Meta is not installed build_requires: ! Parse::CPAN::Meta (1.40) is installed, but we need version = 1.4401 ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation Could not create MYMETA files Creating new 'Build' script for 'Module-Build' version '0.3800' Copied META.yml to MYMETA.yml for bootstrapping These additional prerequisites must be installed: requires: ! Perl::OSType (we need version 1.00) ! version (we need version 0.87) ! Module::Metadata (we need version 1.02) === Building for p5-Module-Build-0.3800_1 Can't locate Perl/OSType.pm in @INC (@INC contains: t/lib t/bundled lib /usr/local/lib/perl5/5.12.4/BSDPAN /usr/local/lib/perl5/site_perl/5.12.4/mach /usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.4/mach /usr/local/lib/perl5/5.12.4 .) at lib/Module/Build.pm line 13. BEGIN failed--compilation aborted at lib/Module/Build.pm line 13. Compilation failed in require at Build line 42. BEGIN failed--compilation aborted at Build line 42. *** Error code 2 Stop in /usr1/ports/devel/p5-Module-Build. *** Error code 1 Stop in /usr1/ports/converters/p5-Encode-Detect. *** Error code 1 Stop in /usr1/ports/mail/p5-Mail-SpamAssassin. *** Error code 1 Stop in /usr1/ports/mail/p5-Mail-SpamAssassi Hello Tim, list, I have the same problem on one of my boxes. Cannot upgrade p5-Module-Build-0.3800 port because of this. Has anyone filed a PR against this problem? I was able to work around this by: 1) Uninstalling spamassassin and perl 5.12 2) Upgrading to perl 5.14 3) Running perl-after-upgrade 4) Reinstalling spamassassin I still cannot build remmina. There seems to be some hocus pocus having to do with missing dependent perl XML parser libs. Sigh. I can't wait until the planet either: a) Migrates 100% to python or b) Learns to do batteries included packaging like python. -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Perl Problem After Upgrade to 5.12.4
On Fri, 08 Jul 2011 08:12:16 -0500 Tim Daneliuk articulated: I was able to work around this by: 1) Uninstalling spamassassin and perl 5.12 2) Upgrading to perl 5.14 3) Running perl-after-upgrade 4) Reinstalling spamassassin That is not exactly the method prescribed in UPDATING: quote 20110517: AFFECTS: users of lang/perl* AUTHOR: s...@freebsd.org lang/perl5.14 is out. If you want to switch to it from, for example lang/perl5.12, that is: Portupgrade users: 0) Fix pkgdb.db (for safety): pkgdb -Ff 1) Reinstall new version of Perl (5.14): env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.14 -f perl-5.12.\* 2) Reinstall everything that depends on Perl: portupgrade -fr perl Portmaster users: portmaster -o lang/perl5.14 lang/perl5.12 Conservative: portmaster p5- Comprehensive (but perhaps overkill): portmaster -r perl- Note: If the perl- glob matches more than one port you will need to specify the name of the Perl directory in /var/db/pkg explicitly. /quote I used the portupgrade method without incident. From what I have been told, perl-after-upgrade != env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.14 -f perl-5.12.\* As always, YMMV! -- Jerry ✌ jerry+f...@seibercom.net Disclaimer: off-list followups get on-list replies or ignored. Do not CC this poster. Please do not ignore the Reply-To header. http://www.catb.org/~esr/faqs/smart-questions.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: DNS and file system messed up...
On Jul 8, 2011, at 3:01 AM, Matthew Seaman wrote: On 08/07/2011 08:25, Doug Hardie wrote: On 7 July 2011, at 22:58, Gary Kline wrote: Jul 7 10:16:33 ethic named[54366]: none:0: open: /etc/ named.conf: file not found Jul 7 10:17:56 ethic named[54371]: starting BIND 9.3.6-P1 -c / var/named/etc/namedb/named.conf The first one that fails is looking for /etc/named.conf. The second one shows its in /var/named/etc/named/named.conf Those are different locations. I suspect you have named_flags setup in rc.conf pointing to /etc/namedb/named.conf rather than the right location. Its also possible that its not set in rc.conf but defaults in either the rc script or /etc/rc.d/named. On my system it appears to default in /etc/rc.d/named. FreeBSD defaults to running named chrooted. /etc/namedb is actually a symbolic link: % ls -la /etc/namedb lrwxr-xr-x 1 root wheel 21 Jul 6 06:24 /etc/namedb@ - /var/named/etc/namedb so the files referenced are in fact exactly the same file. Actually /etc/named.conf is NOT the same as /etc/namedb/named.conf ergo it is not the same as /var/named/etc/ namedb/named.conf Gary, add named_flags=-c /etc/namedb/named.conf to /etc/rc.conf. Or change /etc/namedb/named.conf to the /var version if you like/there is no symlink. Dan However, the flags from the log extract don't look like the defaults to me. (I'm running the dns/bind98 port, and the equivalent info from the log line is '-t /var/named -u bind') Gary, what named related settings do you have in /etc/rc.conf? You almost certainly don't need anything more than: named_enable=YES and perhaps syslogd_flags=-ss -l /var/named/var/run/log so named can log to the system syslog. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
import users from LDAP to local password file (pwd.db)
Hello I need to import the necessary users's data from an OpenLDAP directory server to put them in the local password files , anyone has done this before ? The machine use nss_ldap and pam_ldap to authenticate users but for robustness during the holidays I would like to have a local password file on this machine which is our mailhub. The OpenLDAP server runs on another machine and if it fails during holidays I want my mailhub to be standalone for authentication in order to let email service running even the directory server crash. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Just a quick note/correction for whomever edits the web page:
On the installation pages describing the process to make a USB installation, you reference downloading win32-image-writer for making a USB from Windows. Your link points to http://launchpad.net/win32-image-writer/, which is actually (or is now) https://launchpad.net/win32-image-writer/. I'm not sure why it would change to HTTPS, but I thought it might be worth changing on the web site. :) Cheers, __ Scott Lucas IT Officer, m.s. Statendam Holland America Line 300 Elliot Avenue West, Seattle, WA 98119 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Just a quick note/correction for whomever edits the web page:
Hi, Reference: From: SADM-IT Officer (HAL) sadm-it_offi...@hollandamerica.com Date: Fri, 8 Jul 2011 06:23:33 -0800 Message-id: aff5047dc54c6b4cab1426a816a02b506a83e09...@statendamex01.stdmdomain.hal.com SADM-IT Officer (HAL) wrote: On the installation pages describing the process to make a USB installation, you reference downloading win32-image-writer for making a USB from Windows. Your link points to http://launchpad.net/win32-image-writer/, which is actually (or is now) https://launchpad.net/win32-image-writer/. I'm not sure why it would change to HTTPS, but I thought it might be worth changing on the web site. :) Cheers, __ Scott Lucas IT Officer, m.s. Statendam Holland America Line 300 Elliot Avenue West, Seattle, WA 98119 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Hi, Nice of you to try to file a bug report, but writing to this list will not get it fixed, as you'r just writing to list questi...@freebsd.org Please: 1 give precise web ref = URL of bug you refer to 2 choose correct list to write to (if you even need a list) Look at list of mail lists http://lists.freebsd.org/mailman/listinfo Maybe you want USB list or some other ? Or ... 3 Main Thing, Do file a bug report Either use send-pr or http://www.freebsd.org/support/bugreports.html Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com Reply below, not above; Indent with ; Cumulative like a play script. Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
error in installation of uwsgi
Hi, I'm going to setup machine for developing web application in python. But some errors appear when I install uwsgi using ports. The following is the first I met: *cc -c -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -fno-strict-aliasing -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_BUILD_DATE=\08 July 2011 23:09:03\ -DUWSGI_HAS_IFADDRS -DUWSGI_LOCK_USE_UMTX -DUWSGI_EVENT_USE_KQUEUE -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE -DUWSGI_EMBEDDED -DUWSGI_UDP -DUWSGI_VERSION=\0.9.8.1\ -DUWSGI_VERSION_BASE=0 -DUWSGI_VERSION_MAJOR=9 -DUWSGI_VERSION_MINOR=8 -DUWSGI_VERSION_REVISION=1 -DUWSGI_VERSION_CUSTOM=\\ -DUWSGI_ASYNC -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE -I/usr/local/include/libxml2 -I/usr/local/include -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_SQLITE3 -DUWSGI_PLUGIN_DIR=\.\ -DUWSGI_SPOOLER -DUWSGI_DECLARE_EMBEDDED_PLUGINS=UDEP(python);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rpc);UDEP(fastrouter);UDEP(http);UDEP(ugreen); -DUWSGI_LOAD_EMBEDDED_PLUGINS=ULEP(python);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rpc);ULEP(fastrouter);ULEP(http);ULEP(ugreen); -In file included from plugins/python/uwsgi_python.h:2,* * from plugins/python/python_plugin.c:1:* */usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file or directory* *o spooler.o spooler.c* uWSGI compiling embedded plugins * * After sort of searching in google, I used following command to solve this problem. *ln -s /usr/local/include/pth/pth.h /usr/local/include/python2.7/pth.h* Then I rebuilt this port again. The second error appeared. *cc -c -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -fno-strict-aliasing -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_BUILD_DATE=\08 July 2011 23:18:14\ -DUWSGI_HAS_IFADDRS -DUWSGI_LOCK_USE_UMTX -DUWSGI_EVENT_USE_KQUEUE -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE -DUWSGI_EMBEDDED -DUWSGI_UDP -DUWSGI_VERSION=\0.9.8.1\ -DUWSGI_VERSION_BASE=0 -DUWSGI_VERSION_MAJOR=9 -DUWSGI_VERSION_MINOR=8 -DUWSGI_VERSION_REVISION=1 -DUWSGI_VERSION_CUSTOM=\\ -DUWSGI_ASYNC -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE -I/usr/local/include/libxml2 -I/usr/local/include -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUplugins/python/wsgi_handlers.c: In function 'uwsgi_Input_getline':* *plugins/python/wsgi_handlers.c:54: error: 'struct wsgi_request' has no member named 'pth_poll'* *plugins/python/wsgi_handlers.c:60: error: 'struct wsgi_request' has no member named 'pth_poll'* *plugins/python/wsgi_handlers.c:63: error: 'struct wsgi_request' has no member named 'pth_poll'* *plugins/python/wsgi_handlers.c: In function 'uwsgi_Input_read':* *plugins/python/wsgi_handlers.c:162: error: 'struct wsgi_request' has no member named 'pth_poll'* *plugins/python/wsgi_handlers.c:168: error: 'struct wsgi_request' has no member named 'pth_poll'* *plugins/python/wsgi_handlers.c: In function 'uwsgi_request_wsgi':* *plugins/python/wsgi_handlers.c:584: error: 'struct wsgi_request' has no member named 'pth_poll'* *WSGI_SQLITE3 -DUWSGI_PLUGIN_DIR=\.\ -DUWSGI_SPOOLER -DUWSGI_DECLARE_EMBEDDED_PLUGINS=UDEP(python);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rpc);UDEP(fastrouter);UDEP(http);UDEP(ugreen); -DUWSGI_LOAD_EMBEDDED_PLUGINS=ULEP(python);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rpc);ULEP(fastrouter);ULEP(http);ULEP(ugreen); -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 -o plugins/python/pyloader.o plugins/python/pyloader.c* * * I checked every file mentioned in the message, but nothing can not be find. Anybody can help me? Cheers Frank ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
EXABYTE 8200 on FreeBSD 5.3
I know this is ancient technology, but we have a pile of exabyte tapes made on an 8200 and would like to recover some of the data on them. We have an old 5.3 machine which has an adaptec 2120S, and the Exabyte is connected to that. The kernel identifies the Exabyte on boot, but it's all downhill after that. The driver sometimes spits out a pile of errors (I'll append a sample at the end) and mt doesn't seem to do simple commands (like a retension). I note that the MT page for 5.3 says that not all SCSI-1 devices are supported. So before I invest more time in this, I am wondering if anyone can tell if the support is there for this configuration? If not, what (inexpensive) options do I have for possibly retrieving this data? Thanks a lot, Scott -- s...@ssr.com An mt status causes the driver to report: (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information While mt reports: Mode Density Blocksize bpi Compression Current: default variable 0unsupported -available modes- 0:default variable 0unsupported 1:default variable 0unsupported 2:default variable 0unsupported 3:default variable 0unsupported - Current Driver State: at rest. - File Number: 0 Record Number: 0Residual Count 0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: import users from LDAP to local password file (pwd.db)
Hi You can try with getent(1) passwd and see if you can work with the output Regards On Fri, Jul 8, 2011 at 9:56 AM, Frank Bonnet f.bon...@esiee.fr wrote: Hello I need to import the necessary users's data from an OpenLDAP directory server to put them in the local password files , anyone has done this before ? The machine use nss_ldap and pam_ldap to authenticate users but for robustness during the holidays I would like to have a local password file on this machine which is our mailhub. The OpenLDAP server runs on another machine and if it fails during holidays I want my mailhub to be standalone for authentication in order to let email service running even the directory server crash. Thanks __**_ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-** unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: import users from LDAP to local password file (pwd.db)
getent does not show the encrypted password field On 07/08/2011 05:43 PM, Moises Castellanos wrote: Hi You can try with getent(1) passwd and see if you can work with the output Regards On Fri, Jul 8, 2011 at 9:56 AM, Frank Bonnetf.bon...@esiee.fr wrote: Hello I need to import the necessary users's data from an OpenLDAP directory server to put them in the local password files , anyone has done this before ? The machine use nss_ldap and pam_ldap to authenticate users but for robustness during the holidays I would like to have a local password file on this machine which is our mailhub. The OpenLDAP server runs on another machine and if it fails during holidays I want my mailhub to be standalone for authentication in order to let email service running even the directory server crash. Thanks __**_ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-** unsubscr...@freebsd.orgfreebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Frank BONNET 01.45.92.66.17 Service des Moyens Informatiques Generaux ESIEE PARIS Cité Descartes / BP 99 93162 NOISY-LE-GRAND Cedex http://www.esiee.fr http://www.esiee.fr/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Perl Problem After Upgrade to 5.12.4
On 7/8/2011 8:39 AM, Jerry said this: On Fri, 08 Jul 2011 08:12:16 -0500 Tim Daneliuk articulated: I was able to work around this by: 1) Uninstalling spamassassin and perl 5.12 2) Upgrading to perl 5.14 3) Running perl-after-upgrade 4) Reinstalling spamassassin That is not exactly the method prescribed in UPDATING: You're right, of course - I ordinarily do this when I upgrade perl ... somehow it slipped my tiny and aging mind. Thanks for the reminder :) quote 20110517: AFFECTS: users of lang/perl* AUTHOR: s...@freebsd.org lang/perl5.14 is out. If you want to switch to it from, for example lang/perl5.12, that is: Portupgrade users: 0) Fix pkgdb.db (for safety): pkgdb -Ff 1) Reinstall new version of Perl (5.14): env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.14 -f perl-5.12.\* 2) Reinstall everything that depends on Perl: portupgrade -fr perl Portmaster users: portmaster -o lang/perl5.14 lang/perl5.12 Conservative: portmaster p5- Comprehensive (but perhaps overkill): portmaster -r perl- Note: If the perl- glob matches more than one port you will need to specify the name of the Perl directory in /var/db/pkg explicitly. /quote I used the portupgrade method without incident. From what I have been told, perl-after-upgrade != env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.14 -f perl-5.12.\* As always, YMMV! -- Tim Daneliuk tun...@tundraware.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: import users from LDAP to local password file (pwd.db)
In the last episode (Jul 08), Frank Bonnet said: On 07/08/2011 05:43 PM, Moises Castellanos wrote: On Fri, Jul 8, 2011 at 9:56 AM, Frank Bonnetf.bon...@esiee.fr wrote: I need to import the necessary users's data from an OpenLDAP directory server to put them in the local password files , anyone has done this before ? The machine use nss_ldap and pam_ldap to authenticate users but for robustness during the holidays I would like to have a local password file on this machine which is our mailhub. The OpenLDAP server runs on another machine and if it fails during holidays I want my mailhub to be standalone for authentication in order to let email service running even the directory server crash. You can try with getent(1) passwd and see if you can work with the output getent does not show the encrypted password field LDAP servers usually don't allow clients to see the raw password hash. Authentication checks are done by binding as the requested user, so the calling app doesn't have a chance to grab the hash and do an offline brute-force attack on it. To ensure LDAP availability, the usual thing to do is set up multiple servers with LDAP replication between them, and configure your client's ldap.conf to use all of them (or use carp or some other IP management app to provide a single always-up IP address). -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: error in installation of uwsgi
On Jul 8, 2011, at 8:23 AM, Zhong Yubin wrote: Hi, I'm going to setup machine for developing web application in python. But some errors appear when I install uwsgi using ports. The following is the first I met: Evidently, this uwsgi software wants a threaded Python. You likely need to rebuild Python with threading enabled Regards, -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: error in installation of uwsgi
Am 08.07.2011, 17:23 Uhr, schrieb Zhong Yubin zhon...@gmail.com: Hi, I'm going to setup machine for developing web application in python. But some errors appear when I install uwsgi using ports. The following is the first I met: *cc -c -O2 -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -fno-strict-aliasing -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DUWSGI_BUILD_DATE=\08 July 2011 23:09:03\ -DUWSGI_HAS_IFADDRS -DUWSGI_LOCK_USE_UMTX -DUWSGI_EVENT_USE_KQUEUE -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE -DUWSGI_EMBEDDED -DUWSGI_UDP -DUWSGI_VERSION=\0.9.8.1\ -DUWSGI_VERSION_BASE=0 -DUWSGI_VERSION_MAJOR=9 -DUWSGI_VERSION_MINOR=8 -DUWSGI_VERSION_REVISION=1 -DUWSGI_VERSION_CUSTOM=\\ -DUWSGI_ASYNC -DUWSGI_MULTICAST -DUWSGI_MINTERPRETERS -DUWSGI_INI -DUWSGI_YAML -DUWSGI_SNMP -DUWSGI_THREADING -DUWSGI_SENDFILE -I/usr/local/include/libxml2 -I/usr/local/include -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_SQLITE3 -DUWSGI_PLUGIN_DIR=\.\ -DUWSGI_SPOOLER -DUWSGI_DECLARE_EMBEDDED_PLUGINS=UDEP(python);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rpc);UDEP(fastrouter);UDEP(http);UDEP(ugreen); -DUWSGI_LOAD_EMBEDDED_PLUGINS=ULEP(python);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rpc);ULEP(fastrouter);ULEP(http);ULEP(ugreen); -In file included from plugins/python/uwsgi_python.h:2,* * from plugins/python/python_plugin.c:1:* */usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file or directory* *o spooler.o spooler.c* uWSGI compiling embedded plugins * * After sort of searching in google, I used following command to solve this problem. *ln -s /usr/local/include/pth/pth.h /usr/local/include/python2.7/pth.h* Then I rebuilt this port again. The second error appeared. I hit that one a few days ago. Haven't solved it. If it's an option for you, you can compile Python without GNU Pth support. This will solve your uwsgi installation problem. Regards, Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: OpenNMS under FreeBSD?
On Wed, 29 Jun 2011, Brandon Gooch wrote: On Wed, Jun 29, 2011 at 12:03 PM, Dennis Glatting free...@penx.com wrote: I am looking at OpenNMS under FreeBSD but it isn't in the ports tree although there are various discussions of OpenNMS under FreeBSD. Is there a reason why OpenNMS isn't in the ports tree, such as it doesn't port, no one is willing to step up as a maintainer, or there are licensing issues? There is a port here, created by Sevan Janiyan: http://www.geeklan.co.uk/files/opennms/ I don't know whether or not it's been submitted to ports yet, but I'd be interested to see if you get it up and running. Report back with your findings! Status report. I don't have it working yet but: 1) My NMS requires the use of a proxy to access the web. Configuring the proxy is an adventure which I didn't find well documented. The key proxy configuration point is in the Java installation but it appears not to be the only configuration point. Consequently, after humming along downloading and installing Java files the process hit another snag. I haven't had the chance to chase down which tool and which configuration point needs to change. This is a show stopper. 2) OpenNMS requires Postgres. I have a SQL infrastructure and I am loath to install yet-another SQL server regardless of its wonderfulness, but I have installed it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
openldap24-sasl-client preventing kde4 from installing
Even after I pkg_delete -f openldap-sasl-client* trying to compile kde4, or in this case I narrowed it down to kdepimlibs4, I always end up with this. How do I get myself out of this dependency? === Starting check for runtime dependencies === Gathering dependency list for net/openldap24-sasl-client from ports === Starting dependency check === Checking dependency: security/cyrus-sasl2 === Dependency check complete for net/openldap24-sasl-client deskutils/kdepimlibs4 net/openldap24-sasl-client === Installing for openldap-sasl-client-2.4.25_2 === Generating temporary packing list === Checking if net/openldap24-sasl-client already installed === openldap-sasl-client-2.4.25_2 is already installed You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of net/openldap24-sasl-client without deleting it first, set the variable FORCE_PKG_REGISTER in your environment or the make install command line. *** Error code 1 Stop in /usr/ports/net/openldap24-sasl-client. *** Error code 1 Stop in /usr/ports/net/openldap24-sasl-client. === Installation of openldap-sasl-client-2.4.25_2 (net/openldap24-sasl-client) failed === Aborting update === Update for net/openldap24-sasl-client failed === Aborting update === You can restart from the point of failure with this command line: portmaster flags deskutils/kdepimlibs4 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: DNS and file system messed up...
On Fri, Jul 08, 2011 at 12:25:34AM -0700, Doug Hardie wrote: Date: Fri, 8 Jul 2011 00:25:34 -0700 From: Doug Hardie bc...@lafn.org Subject: Re: DNS and file system messed up... To: Gary Kline kl...@thought.org Cc: FreeBSD Mailing List freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.1084) On 7 July 2011, at 22:58, Gary Kline wrote: Jul 7 10:16:33 ethic named[54366]: none:0: open: /etc/named.conf: file not found Jul 7 10:17:56 ethic named[54371]: starting BIND 9.3.6-P1 -c /var/named/etc/namedb/named.conf The first one that fails is looking for /etc/named.conf. The second one shows its in /var/named/etc/named/named.conf Those are different locations. I suspect you have named_flags setup in rc.conf pointing to /etc/namedb/named.conf rather than the right location. Its also possible that its not set in rc.conf but defaults in either the rc script or /etc/rc.d/named. On my system it appears to default in /etc/rc.d/named. Hm.. i understand most of this. grep -r from /etc found something i've never uderstood. chroot stuff. to me, root is always / and root's home is /rrot. I've never dug deeper. here is the named stuff in /etc/defaults dir: named_enable=NO # Run named, the DNS server (or NO). named_program=/usr/sbin/named # Path to named, if you want a different one. #named_flags=-c /etc/namedb/named.conf # Uncomment for named not in /usr/sbin named_pidfile=/var/run/named/pid # Must set this in named.conf as well named_uid=bind# User to run named as named_chrootdir=/var/named# Chroot directory (or not to auto-chroot it) named_chroot_autoupdate=YES # Automatically install/update chrooted # components of named. See /etc/rc.d/named. named_symlink_enable=YES # Symlink the chrooted pid file in my /etc/rc.conf file are the 3 named lines: named_enable=YES named_program=/usr/local/sbin/named named_pidfile=/var/run/named/pid I dont see anything here that could be messing me up unless by using the default lines, something is going waaay South. Lastly, has the /etc/rc.d/named script changed in the past year or two? thankee -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: DNS and file system messed up...
On Fri, Jul 08, 2011 at 10:01:45AM +0100, Matthew Seaman wrote: Date: Fri, 08 Jul 2011 10:01:45 +0100 From: Matthew Seaman m.sea...@infracaninophile.co.uk Subject: Re: DNS and file system messed up... To: freebsd-questions@freebsd.org On 08/07/2011 08:25, Doug Hardie wrote: On 7 July 2011, at 22:58, Gary Kline wrote: Jul 7 10:16:33 ethic named[54366]: none:0: open: /etc/named.conf: file not found Jul 7 10:17:56 ethic named[54371]: starting BIND 9.3.6-P1 -c /var/named/etc/namedb/named.conf The first one that fails is looking for /etc/named.conf. The second one shows its in /var/named/etc/named/named.conf Those are different locations. I suspect you have named_flags setup in rc.conf pointing to /etc/namedb/named.conf rather than the right location. Its also possible that its not set in rc.conf but defaults in either the rc script or /etc/rc.d/named. On my system it appears to default in /etc/rc.d/named. FreeBSD defaults to running named chrooted. /etc/namedb is actually a symbolic link: hi matthew, i found an in-depth post you wrote re mtree yesterday ( 07july ), but i figured it was over my head in resetting anything i might need to reset. i was going to write you offlist. decided to ask the entire list. % ls -la /etc/namedb lrwxr-xr-x 1 root wheel 21 Jul 6 06:24 /etc/namedb@ - /var/named/etc/namedb so the files referenced are in fact exactly the same file. However, the flags from the log extract don't look like the defaults to me. (I'm running the dns/bind98 port, and the equivalent info from the log line is '-t /var/named -u bind') i was using bind98 rather than the earlier bind9 which is out of date. but bind98 gave me troubles with the rndc.key and other, so i chose to go back with what worked. --first thing is to get this working with the older bind9. FWIW, both bind9's given me the same error and failure. i have walked thru the named script to the point where it creates the symlink. regardless, i cannot understand the error and failure messages. i only know that my kill -9 and my initialization by hand work. Gary, what named related settings do you have in /etc/rc.conf? You almost certainly don't need anything more than: named_enable=YES and perhaps syslogd_flags=-ss -l /var/named/var/run/log so named can log to the system syslog. Hmmm [c]. as you may have seen in my post to Doug H. i only have -- named_enable=YES named_program=/usr/local/sbin/named named_pidfile=/var/run/named/pid Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: EXABYTE 8200 on FreeBSD 5.3
On Fri, 08 Jul 2011 15:21 +, Scott Ballantyne s...@ssr.com wrote: I know this is ancient technology, but we have a pile of exabyte tapes made on an 8200 and would like to recover some of the data on them. We have an old 5.3 machine which has an adaptec 2120S, and the Exabyte is connected to that. The kernel identifies the Exabyte on boot, but it's all downhill after that. The driver sometimes spits out a pile of errors (I'll append a sample at the end) and mt doesn't seem to do simple commands (like a retension). I note that the MT page for 5.3 says that not all SCSI-1 devices are supported. So before I invest more time in this, I am wondering if anyone can tell if the support is there for this configuration? If not, what (inexpensive) options do I have for possibly retrieving this data? Thanks a lot, Scott -- s...@ssr.com An mt status causes the driver to report: (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information (sa0:aacp0:0:4:0): MODE SENSE(06). CDB: 1a 0 f 0 1c 0 (sa0:aacp0:0:4:0): ILLEGAL REQUEST asc:0,0 (sa0:aacp0:0:4:0): No additional sense information While mt reports: Mode Density Blocksize bpi Compression Current: default variable 0unsupported -available modes- 0:default variable 0unsupported 1:default variable 0unsupported 2:default variable 0unsupported 3:default variable 0unsupported - Current Driver State: at rest. - File Number: 0 Record Number: 0Residual Count 0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Hi Scott, Do any of these links help? http://cis.kutztown.edu/~frye/cgi-bin/unixManPages.cgi?st+7D http://h2.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=encc=ustaskId=115prodSeriesId=63988prodTypeId=12169objectID=lpg51061 http://www.sunmanagers.org/archives/1995/0984.html There were also a couple hits to the drivers if those would help. Thanks, William ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: DNS and file system messed up...
On Fri, Jul 08, 2011 at 07:27:12AM -0600, Dan Busarow wrote: Date: Fri, 8 Jul 2011 07:27:12 -0600 From: Dan Busarow d...@buildingonline.com Subject: Re: DNS and file system messed up... To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.753.1) On Jul 8, 2011, at 3:01 AM, Matthew Seaman wrote: On 08/07/2011 08:25, Doug Hardie wrote: On 7 July 2011, at 22:58, Gary Kline wrote: Jul 7 10:16:33 ethic named[54366]: none:0: open: /etc/named.conf: file not found Jul 7 10:17:56 ethic named[54371]: starting BIND 9.3.6-P1 -c /var/named/etc/namedb/named.conf The first one that fails is looking for /etc/named.conf. The second one shows its in /var/named/etc/named/named.conf Those are different locations. I suspect you have named_flags setup in rc.conf pointing to /etc/namedb/named.conf rather than the right location. Its also possible that its not set in rc.conf but defaults in either the rc script or /etc/rc.d/named. On my system it appears to default in /etc/rc.d/named. FreeBSD defaults to running named chrooted. /etc/namedb is actually a symbolic link: % ls -la /etc/namedb lrwxr-xr-x 1 root wheel 21 Jul 6 06:24 /etc/namedb@ - /var/named/etc/namedb so the files referenced are in fact exactly the same file. Actually /etc/named.conf is NOT the same as /etc/namedb/named.conf ergo it is not the same as /var/named/etc/namedb/named.conf Gary, add named_flags=-c /etc/namedb/named.conf to /etc/rc.conf. Or change /etc/namedb/named.conf to the /var version if you like/there is no symlink. Dan Dan! I think you fixed something. I haven't figured this out yet, and would be grateful if you could decode this in /var/log/messages:: Jul 8 20:39:32 ethic named[83003]: stopping command channel on ::1#953 Jul 8 20:39:32 ethic named[83003]: exiting Jul 8 20:39:37 ethic named[84090]: starting BIND 9.3.6-P1 -c /etc/namedb/named.conf -t /var/named -u bind Jul 8 20:39:37 ethic named[84090]: none:0: open: /etc/rndc.key: file not found Jul 8 20:39:37 ethic named[84090]: couldn't add command channel 127.0.0.1#953: file not found Jul 8 20:39:37 ethic named[84090]: none:0: open: /etc/rndc.key: file not found Jul 8 20:39:37 ethic named[84090]: couldn't add command channel ::1#953: file not found Jul 8 20:39:37 ethic named[84090]: the working directory is not writable Jul 8 20:39:37 ethic named[84090]: running This, after I added your named_flags line into /etc/rc.conf. Where I get lost is *what* gives me that none:0 lines?? I see the same or worse err when I drop in bind98. IIRC, named does run, but the messages log is fulll of rndc.key error messages that I just cannot understand. _Now_, having dropped in your named_flags line, I am seeing something similar. I haved grepped thru the entire /etc/ tree and haven't found anything that explains where I messed up Ideas? thanks to you or anybody else onlist. gary However, the flags from the log extract don't look like the defaults to me. (I'm running the dns/bind98 port, and the equivalent info from the log line is '-t /var/named -u bind') Gary, what named related settings do you have in /etc/rc.conf? You almost certainly don't need anything more than: named_enable=YES and perhaps syslogd_flags=-ss -l /var/named/var/run/log so named can log to the system syslog. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Just a quick note/correction for whomever edits the web page:
I actually made it general (although I definitely should have pointed out the instance I was looking at) on purpose; I find that in instruction sets such as these there are often multiple sets of instructions. Either way, I'm glad you were able to see it, just trying to help. :) Cheers, __ Scott Lucas IT Officer, m.s. Statendam Holland America Line 300 Elliot Avenue West, Seattle, WA 98119 -Original Message- From: Warren Block [mailto:wbl...@wonkity.com] Sent: Friday, July 08, 2011 9:22 AM To: SADM-IT Officer (HAL) Cc: 'freebsd-questions@FreeBSD.org' Subject: Re: Just a quick note/correction for whomever edits the web page: On Fri, 8 Jul 2011, SADM-IT Officer (HAL) wrote: On the installation pages describing the process to make a USB installation, you reference downloading win32-image-writer for making a USB from Windows. Your link points to http://launchpad.net/win32-image-writer/, which is actually (or is now) https://launchpad.net/win32-image-writer/. I'm not sure why it would change to HTTPS, but I thought it might be worth changing on the web site. :) As Julian Stacey notes, an exact pointer to the mistake helps. There's a lot of FreeBSD docs, and a lot of people working on them. I'm familiar with this one, so I entered a PR for it. http://www.freebsd.org/cgi/query-pr.cgi?pr=158739 Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Color Spills Over From SSH Session
Hello everybody, I've tried to setup a kind of 'dedicated ssh client' using FreeBSD, and I'm having some issues with the terminal colors. I have a basic install of FreeBSD 8.2-RELEASE (I only had kernel-dev packages checked at installation) and I rebuilt the GENERIC kernel with the VESA and SC_PIXEL_MODE options enabled (for a high resolution terminal). Now here's the problem: when I ssh into another box and issue a command with colors (like vim's syntax hilighting or a colored ls) the primary color of the terminal will change. I'm often left with a crazy colored and hard to read bash prompt (all in the ssh session). When I exit the session back to FreeBSD, the colors persist. I have to use the command 'reset' to fix the issue. I believe my primary FreeBSD shell is csh (it's whatever the default is in FreeBSD) and I'm not sure if it can handle colors or if it has them enabled. I generally ssh into a bash shell. I'm really a newcomer with FreeBSD, and any help would be greatly appreciated. Thanks a bunch, David Krauser david.krau...@gmail.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org