Re: FreeBSD 9.0 hang

2012-07-02 Thread Doug Hardie

On 2 July 2012, at 22:59, Wojciech Puchar wrote:

>> 
>> I have no ATM interfaces so it shouldn't be loading to my way of thinking.
> 
> so check while this module is loading at all, no matter if it's unsuccessull. 
> FreeBSD is not random place like windows, everything
> must have a reason.
> 

True it must, but I have no idea why if_en would try to be loaded or even how 
to figure that out.  There is nothing in the logs.  My understanding is that 
you would have to have an interface that requires the en driver.  pciconf 
doesn't show any.

___
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"


Tweetless

2012-07-02 Thread Lars Eighner


Call me crazy, but it seems that since the perl bump (5.12 -> threaded-5.16)
when firefox (13.0.1,1) got rebuilt, it seems twitter pages do not fully
load, give me the slow loading banner, and the page (not browser or X)
freezes, but no such problems were evident before, and twitter seems
entirely normal in Opera 12.00.

FreeBSD noos.larseighner.com 8.3-RELEASE-p2 FreeBSD 8.3-RELEASE-p2 #0: \
Thu Jun 14 10:31:16 CDT 2012   \
t...@noos.6dollardialup.com:/usr/obj/usr/src/sys/NOOSJUNE12  amd64

I'm guessing weirdness in Firefox 13.0.1,1.  Many other sites (Facebook,
Google Maps, Google, Bing, etc seem to be normal.

Is anyone else noticing something of the sort?


--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
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: FreeBSD 9.0 hang

2012-07-02 Thread Wojciech Puchar


I have no ATM interfaces so it shouldn't be loading to my way of thinking.


so check while this module is loading at all, no matter if it's 
unsuccessull. FreeBSD is not random place like windows, everything

must have a reason.
___
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: WITHOUT_MODULES in /etc/make.conf doesn't work

2012-07-02 Thread Wojciech Puchar


I think MODULES_OVERRIDE is for building only a few modules instead of a large 
number of modules?


true. definitely works for me.



Alternatively, how can I prevent ulpt.ko from automatically loading when I 
connect a USB printer (HP) that is supposed to work with ugen but not ulpt.


devd.conf?

___
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: WITHOUT_MODULES in /etc/make.conf doesn't work

2012-07-02 Thread Polytropon
On Mon, 02 Jul 2012 22:59:44 -0400, Thomas Mueller wrote:
> How does one, when building the kernel, prevent building one or more modules?

Use the "new" means of /etc/src.conf (see "man src.conf" for
details) to prevent the building of modules.



> I have
> WITHOUT_MODULES= ulpt
> in /etc/make.conf
> but ulpt.ko always appears in /boot/kernel directory.
> 
> For now, I want to build all modules except for this one, but
> perhaps I could keep everything in kernel config and not build modules.

Also a possibility - for "best control" case, combine both, e. g.
a custom kernel that only includes what you explicitely specity,
and src.conf to avoid building of modules you're intendedly not
going to need.





-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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"


WITHOUT_MODULES in /etc/make.conf doesn't work

2012-07-02 Thread Thomas Mueller
How does one, when building the kernel, prevent building one or more modules?

I have
WITHOUT_MODULES= ulpt
in /etc/make.conf
but ulpt.ko always appears in /boot/kernel directory.

For now, I want to build all modules except for this one, but perhaps I could 
keep everything in kernel config and not build modules.

I think MODULES_OVERRIDE is for building only a few modules instead of a large 
number of modules?

I can't see any way one would use both MODULES_OVERRIDE and WITHOUT_MODULES at 
the same time.

Alternatively, how can I prevent ulpt.ko from automatically loading when I 
connect a USB printer (HP) that is supposed to work with ugen but not ulpt.

What would a FreeBSD user do in order to be able to be able to connect USB 
printers by either ugen or ulpt, might have two or more printers, using one at 
a time?

I have "device ulpt" line commented out in kernel config.

Tom
___
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: FreeBSD 9.0 hang

2012-07-02 Thread Doug Hardie

On 2 July 2012, at 08:50, Wojciech Puchar wrote:

>> 
>> link_eif symbol atm_event undefined
>> KLD if_en.ko: depends on utopia - not available or version mismatch.

Those were the last 2 lines on the console before the hang.  There is nothing 
at all in messages about this.  I suspect the system was not totally hung, just 
the etnernet interfaces (2 different ones) as I could still ping both 
interfaces successfully.  However, no attempt to access any service worked.

>> 
>> I haven't found anything relevant on those through Google.  if_en.ko os 
>> present as is utopia.ko.  I don't understand why the kernel would try to 
>> load if_en as I don't have any of those devices.  There are em0 and dc0 
>> ethernet interfaces.  This is almost a generic kernel.  The config file 
>> contains:
> Was that line printed just before hangup?
> 
> Do you actually tried to load ATM interface driver. If no - check why it 
> loads at all.

I have no ATM interfaces so it shouldn't be loading to my way of thinking.
> 
> Check what is last in your logfile.

Nothing.
> 
> Check if any addon drivers you use (fuse.ko, vboxdrv.ko) was compiled with 
> the same kernel sources that you compiled kernel.

kldstat -v shows:

 21 0xc5b36000 4000 fdescfs.ko (/boot/kernel/fdescfs.ko)
Contains modules:
Id Name
493 fdescfs
 31 0xc5c8f000 3000 pflog.ko (/boot/kernel/pflog.ko)
Contains modules:
Id Name
495 pflog
 41 0xc5c92000 34000pf.ko (/boot/kernel/pf.ko)
Contains modules:
Id Name
494 pf


if_en is not listed as compiled into the kernel.

The kernel and userland were built shortly after an install from memstick image 
using the procedure in UPDATING:

To rebuild everything and install it on the current system.
---
# Note: sometimes if you are running current you gotta do more than
# is listed here if you are upgrading from a really old current.


make buildworld
make kernel KERNCONF=YOUR_KERNEL_HERE
[1]
 [3]
mergemaster -p  [5]
make installworld
mergemaster -i  [4]
make delete-old [6]



After that the ports and application software were installed.  Basically the 
only services that run on this system are nagios and mrtg.  It is used only as 
a monitoring system for my production server and for testing new software.  It 
has only been used for monitoring since the upgrade.  I can't do any 
development work till I get the production servers upgraded from 8.2 to 9.0.


> 
> If this doesn't help then recompile your kernel with
> 
> makeoptions   DEBUG="-O0 -g"
> optionsINCLUDE_CONFIG_FILE
> optionsDEADLKRES
> optionsKDB
> optionsDDB
> optionsINVARIANTS
> optionsINVARIANT_SUPPORT
> optionsWITNESS
> optionsWITNESS_SKIPSPIN
> optionsDIAGNOSTIC
> 
> make sure that dump device is active
> 
> dumpon="/dev/dumpdevicename"
> 
> and reboot with that kernel.
> 
> At next crash you will get full dump with all symbols and all data where it 
> crashes.

When this repeats I will do that.  Thanks for the help.

-- Doug

> 
> 
> 

___
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"


7.0-RELEASE tty/pty problems ?

2012-07-02 Thread b. nyec
Hello, 

We've been experiencing problems with allocating tty/pty's on a few of our 
systems running FreeBSD 7.0-RELEASE. I could be way off, but it seems that the 
tty/pty's are not being made available after being used and/or are no longer 
valid or corrupted ?? I am aware that 8.x and up uses Unix98-style PTYS 
(/dev/ptmx). Unfortunately, upgrading is not an option at this time. 

Thanks for any Help. 
PS, Sorry if this is bad netiquette, but i've posted this on freebsd forums, (a 
tad bit more info http://forums.freebsd.org/showthread.php?t=33080) just 
figured I'd ask here as well. 

- B

# uname -mv
FreeBSD 7.0-RELEASE #0: Mon Apr 28 17:36:07 CDT 2008 
root@:/usr/obj/usr/src/sys/COLONEL  amd64

rancid running from crontab, log errors
  
clogin error: Error: telnet failed: The system has no more ptys.  
Ask your system administrator to create more.

ssh logins sometimes produce: 

Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.

sshd logs, 
 
sshd[68948]: debug1: Allocating pty.
sshd[68948]: error: openpty: No such file or directory
sshd[68948]: error: session_pty_req: session 0 alloc failed

There appear to be plenty of tty/pty devices...

# ls -la /dev/pty* | wc -l
 512
# ls -la /dev/tty* | wc -l
 534

Test program demonstrating the problem, 

# test_openpty.c
/* gcc -Wall test_openpty.c -lutil */

int main() {
int max = 10; /* number to try */ 
int i = 1;
int masterfd, slavefd, status;
char ptyname[256];

 while(max--) {
status = openpty(&masterfd, &slavefd, ptyname, NULL, NULL);
if(status < 0) {
  fprintf(stderr, "openpty() failed: %s\n",strerror(errno));
   exit(1);
}
printf("%d: openpty: %s\n",i,ptyname);
revoke(ptyname)
  
i++;
 }

 return 0;
}

# who | wc -l
   6

# ./a.out
1: openpty: /dev/ttyOm
2: openpty: /dev/ttyOq
3: openpty: /dev/ttyOt
4: openpty: /dev/ttyOu
openpty() failed: No such file or directory
# 

Truss output...

open("/dev/ttyOu",O_RDWR,00) = 10 (0xa)
4: openpty: /dev/ttyOu
write(1,"4: openpty: /dev/ttyOu\n",23)   = 23 (0x17)
revoke(0x7fffea70,0x800a19000,0x0,0x17,0xb0644d40,0x7fffe0b8) = 
0 (0x0)
stat("/etc/nsswitch.conf",{mode=-rw-r--r-- 
,inode=17145912,size=313,blksize=4096}) = 0 (0x0)
open("/etc/group",O_RDONLY,0666) = 11 (0xb)
fstat(11,{mode=-rw-r--r-- ,inode=17145897,size=565,blksize=4096}) = 0 (0x0)
lseek(11,0x0,SEEK_CUR)   = 0 (0x0)
lseek(11,0x0,SEEK_SET)   = 0 (0x0)
read(11,"# $FreeBSD: src/etc/group,v 1.35"...,4096) = 565 (0x235)
close(11)= 0 (0x0)
open("/dev/ptyp0",O_RDWR,00) ERR#5 'Input/output error'
open("/dev/ptyp1",O_RDWR,00) ERR#5 'Input/output error'
open("/dev/ptyp2",O_RDWR,00) ERR#5 'Input/output error'
open("/dev/ptyp3",O_RDWR,00) ERR#5 'Input/output error'

[] 

open("/dev/ptyOu",O_RDWR,00) ERR#5 'Input/output error'
open("/dev/ptyOv",O_RDWR,00) ERR#5 'Input/output error'
openpty() failed: No such file or directory
write(2,"openpty() failed: No such file o"...,44) = 44 (0x2c)
process exit, rval = 1


FWIW, "/etc/rc.d/devfs restart" and "kill -HUP 1" does not fix the problem. 

# df /dev
Filesystem 1K-blocks Used Avail Capacity  Mounted on
devfs  11 0   100%/dev





___
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: FreeBSD 9.0 hang

2012-07-02 Thread Wojciech Puchar


link_eif symbol atm_event undefined
KLD if_en.ko: depends on utopia - not available or version mismatch.

I haven't found anything relevant on those through Google.  if_en.ko os present 
as is utopia.ko.  I don't understand why the kernel would try to load if_en as 
I don't have any of those devices.  There are em0 and dc0 ethernet interfaces.  
This is almost a generic kernel.  The config file contains:

Was that line printed just before hangup?

Do you actually tried to load ATM interface driver. If no - check why it 
loads at all.


Check what is last in your logfile.

Check if any addon drivers you use (fuse.ko, vboxdrv.ko) was compiled with 
the same kernel sources that you compiled kernel.


If this doesn't help then recompile your kernel with

makeoptions DEBUG="-O0 -g"
optionsINCLUDE_CONFIG_FILE
optionsDEADLKRES
optionsKDB
optionsDDB
optionsINVARIANTS
optionsINVARIANT_SUPPORT
optionsWITNESS
optionsWITNESS_SKIPSPIN
optionsDIAGNOSTIC

make sure that dump device is active

dumpon="/dev/dumpdevicename"

and reboot with that kernel.

At next crash you will get full dump with all symbols and all data where 
it crashes.



___
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: video buffer location

2012-07-02 Thread Wojciech Puchar

to work for a lot of other sites. I just tested it for Dailymotion.

Thanks also for the get-flash-videos link which I am glad to study
in detail, including the git port I've now installed.

FreeBSD is a wonderful OS!


absolutely agree but to be clear, both youtube-dl and get-flash-videos 
have nothing to do with FreeBSD. They runs under it just as under any unix 
and possibly other OSes


I would recommend you to remove flash at all. It actually improves web 
browsing experience, removing problems with constant CPU load because you 
have few tabs with flash crap running, and will teach you good habit of 
actually OWN all  interesting things ON YOUR DISK, not "on the internet"

that happens to disappear in a short time.

The same for webpage - don't "bookmark" nice articles but save to disk.
___
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"


Kerberos. Can I get a ticket for several principals?

2012-07-02 Thread Ross
Hello. This is what I have:

ross@coffin /home/ross pts/2> sudo ktutil list
FILE:/etc/krb5.keytab:

Vno  Type Principal
  5  des-cbc-md5  nfs/coffin.local@LOCAL
  5  des-cbc-md4  nfs/coffin.local@LOCAL
  5  des-cbc-crc  nfs/coffin.local@LOCAL
  5  aes256-cts-hmac-sha1-96  nfs/coffin.local@LOCAL
  5  des3-cbc-sha1nfs/coffin.local@LOCAL
  5  arcfour-hmac-md5 nfs/coffin.local@LOCAL

krb4:/etc/srvtab:

Vno  Type Principal
  5  des-cbc-md5  nfs/coffin.local@LOCAL
  5  des-cbc-md4  nfs/coffin.local@LOCAL
  5  des-cbc-crc  nfs/coffin.local@LOCAL


ross@coffin /home/ross pts/2> kinit
ross@LOCAL's Password:


ross@coffin /home/ross pts/2> klist
Credentials cache: FILE:/tmp/krb5cc_1001
Principal: ross@LOCAL

  Issued   Expires  Principal
Jul  2 13:21:00  Jul  3 13:21:00  krbtgt/LOCAL@LOCAL


The question is: how do I get a ticket for both krbtgt and nfs/coffin.local?
___
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: PostgreSQL Slony-I Replication

2012-07-02 Thread Iqbal Aroussi
*
*
On Mon, Jul 2, 2012 at 9:34 AM, Jorge Medina  wrote:

> look this
> http://raghavt.blogspot.com/2012/07/simple-slony-i-replication-setup.html
>
> On Sun, Jul 1, 2012 at 6:37 PM, Wojciech Puchar
>  wrote:
> > AFAIK postgres is just unix processes nothing special compared to say ..
> > linux
> >
> >
> > On Sun, 1 Jul 2012, Iqbal Aroussi wrote:
> >
> >> Hi dear friends,
> >>
> >> I'm trying to setup a master-slave replication with PostgreSQL 9.1 /
> >> Slony-I, this is first time I'm doing it and I'm kind of lost :(
> >> Is there any tutorial explaining the steps how to do it with FreeBSD ?
> >>
> >> I'm using FreeBSD db1 9.0-RELEASE / postgresql-server-9.1.4 /
> >> slony1v2-2.1.1
> >>
> >> Thanks a lot in advance
> >>
> >> Best Regards
> >>
> >> Iqbal A.
> >> ___
> >> 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"
> >>
> > ___
> > 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"
>
>
>
> --
> Jorge Andrés Medina Oliva.
> Computer engineer.
> IT consultant
> http://www.bsdchile.cl
>


Hi Jorge.

Thanks so much for your link , This is what I wanted, a clean detailed
steps like this.

Best Regards.

Iqbal A.
___
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: PostgreSQL Slony-I Replication

2012-07-02 Thread Jorge Medina
look this 
http://raghavt.blogspot.com/2012/07/simple-slony-i-replication-setup.html

On Sun, Jul 1, 2012 at 6:37 PM, Wojciech Puchar
 wrote:
> AFAIK postgres is just unix processes nothing special compared to say ..
> linux
>
>
> On Sun, 1 Jul 2012, Iqbal Aroussi wrote:
>
>> Hi dear friends,
>>
>> I'm trying to setup a master-slave replication with PostgreSQL 9.1 /
>> Slony-I, this is first time I'm doing it and I'm kind of lost :(
>> Is there any tutorial explaining the steps how to do it with FreeBSD ?
>>
>> I'm using FreeBSD db1 9.0-RELEASE / postgresql-server-9.1.4 /
>> slony1v2-2.1.1
>>
>> Thanks a lot in advance
>>
>> Best Regards
>>
>> Iqbal A.
>> ___
>> 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"
>>
> ___
> 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"



-- 
Jorge Andrés Medina Oliva.
Computer engineer.
IT consultant
http://www.bsdchile.cl
___
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"