portmaster + unknown dependency problem
I have a 8.2-STABLE system. Last port upgrade was about a year ago. (I know, this is bad.) I was trying to update all ports, by following the UPDATING file. As it turned out, some ports has been deprecated/deleted. I have a problem in particular with the py-bittornado-core port. I do not need it. So I have deleted it: # pkg_info | grep bittornado # Clearly, it is not installed. However, when I write in this command: # portmaster -a Then I get this error: === The net-p2p/py-bittornado-core port has been deleted: Has expired: Depends on the deprecated wx 2.4 === Aborting update Well, here is the question: why does it want to build a port that does not even exist in the ports tree? It was really deleted, there is no such thing as /usr/ports/net-p2p/py-bittornado-core . I have also tried to do this: # portmaster -a -x py-bittornado-core but it has exactly the same problem. Is this a stale dependency to a nonexistent port? How can I overcome this problem? Thanks, Laszlo ___ 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: MySQL 3 needed but how? [SOLVED]
I could install FreeBSD 6.4 on a virtual machine, replace the data dir and run mysqldump from there. Thank you for your help! L -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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
MySQL 3 needed but how?
Hi, I have an old backup from a MySQL data directory. It was created with MySQL version 3. If I install MySQL 4 then I get this message telling that the table was created with a different MySQL version. So I try to install mysql 3. Here is the problem: gw# pwd /usr/ports/databases/mysql323-server gw# make === mysql-server-3.23.59.n.20050301_3 obsolete and does not build with gcc4.2; use mysql 5 or later. *** Error code 1 Stop in /usr/ports/databases/mysql323-server. gw# But I really need mysql 3. I usually install everything from the ports tree, but in this case this won't work. I need a quick solution. Maybe I can install a different OS in a virtual machine. But do you know where can I download a BSD OS version that has a binary package of MySQL server 3? (I don't know how to search for a BSD OS that has binary packages for mysql3...) Thanks, Laszlo ___ 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: MySQL 3 needed but how?
On 2011-03-26 18:41, John Levine wrote: In article4d8e1e4a.5000...@shopzeus.com you write: Hi, I have an old backup from a MySQL data directory. It was created with MySQL version 3. If I install MySQL 4 then I get this message telling that the table was created with a different MySQL version. You should be able to restore the individual database directories under mysql 4 and use ALTER TABLE to upgrade the file formats. You'll lose the user access stuff, but that's usually easy enough to reconstruct. In MySQL, each database is self-describing. That is, for database foo, the files in the foo/ directory are both the description of the tables and the data in them. http://dev.mysql.com/doc/refman/4.1/en/upgrading-from-3-23.html Okay, I tried to follow the instruction. So instead of installing 4.1, I have installed 4.0. After replacing /var/db/mysql with my archived directory: gw# /usr/local/etc/rc.d/mysql-server start Starting mysql. gw# /usr/local/etc/rc.d/mysql-server status mysql is not running. gw# There is nothing in /var/log/messages. It was working with 4.1 server, but I just uninstalled that (because the upgrading faq told me to install 4.0 instead.) So what now? L ___ 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: MySQL 3 needed but how?
There is nothing in /var/log/messages. It was working with 4.1 server, but I just uninstalled that (because the upgrading faq told me to install 4.0 instead.) Do you have the following in your /etc/rc.conf file: mysql_enable=YES Yes. I'm in the process of installing FreeBSD 6.4 in a virtual machine. Hopefully I'll be able to compile mysql 3.23 and make a backup from there. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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: MySQL 3 needed but how?
Sounds like you'll have to do some debugging. Try adding --verbose to mysql_args in /etc/rc.conf, and see the other advice in http://dev.mysql.com/doc/refman/4.1/en/starting-server.html gw# /usr/local/bin/mysqld_safe --verbose Starting mysqld daemon with databases from /var/db/mysql STOPPING server from pid file /var/db/mysql/gw.sznet.pid 110326 16:44:14 mysqld ended The data directory is correct. I don't understand why it is stopping immediatelly after startup. Trying the other way around (FreeBSD 6.4 on a virtual machine) It may be something really simple, like the mysql data directory not being where the server expects it to be. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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
fstat bug?
Hi All, I have a Python program that goes up to 100% CPU. Just like this (top): PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 80212 user1 2 440 70520K 16212K select 1 0:30 100.00% /usr/local/bin/python process_updates_ss_od.py -l 10 I have added extra logs and it turns out that there are two threads. One thread is calling time.sleep() and the other is calling os.stat call. (Actually it is calling os.path.isfile, but I hunted down the last link in the chain.) The most interesting thing is that the process is in SELECT state. As far as I know, CPU load should be 0% because select state should block program execution until the I/O completes. I must also tell you that the os.stat call is taking long because this system has about 7 million files on a slow disk under heavy load. It would be normal for an os.stat call to return after 10 seconds. I have no problem with that. But I think that the 100% CPU is not acceptable. I guess that the code is running a system call in kernel mode. I think this because I can send a KILL signal to it and the state changes to the following: PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 80212 user1 2 440 70520K 15256K STOP5 1:27 100.00% /usr/local/bin/python process_updates_ss_od.py -l 10 So the state of the process changes to STOP, but the program does not stop until the os.stat call returns back. Sometimes for a minute. Could it be a problem with the operation system? Is it possible that an os.stat call requires 100% CPU power from the OS? (I believe that os.stat ends in fstat()). Or is it a problem with the Python implementation? (Unfortunately I cannot give you an example program. Giving an example would require giving you a slow I/O device with millions of files on it.) OS version: FreeBSD 8.1-STABLE amd64 Python version: 2.6.6 Thanks, Laszlo -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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: do i need a dedicated ip address for https?
On 2010-12-22 07:53, S Mathias wrote: http://help.godaddy.com/article/1054 # Set up SSL protection on your website. is it an inescapable requirement to have a dedicated [not fix] ip address, when i want to use ssl on my domain? Obviously, you cannot have a website without an IP address. Another strict rule is that you can only use one SSL certificate per IP address + PORT. This is determined by the SSL protocol, and you cannot do anything to change it. But there are possibilities. You can use different SSL certificates for the same ip address and different port numbers: https://your_domain_1:4430 https://your_domain_2:4431 etc. (where your_domain_1 and your_domain_2 have the same IP, and you have different certificates from them). You can also use many host names with the same IP address and port number, but they will have to share the same SSL certificate. It is not a problem, if they are subdomains, and you own a wildcard certificate. Example: https://sub1.yourdomain.com https://sub2.yourdomain.com https://sub3.yourdomain.com etc. (where you have a wildcard certificate for *.yourdomain.com) And finally, it is possible to use different domains and the same port, without wildcard certificate or subdomains, but then all connecting clients will complain about the problem (e.g. certificate belongs to a domain that differs from the one you are connecting to.) For any serious projects, this is not recommended. You cannot expect customers sending you private information on a website that cannot identify itself... Best, Laszlo ___ 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
What is loading my server so much?
System is FreeBSD shopzeus.com 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Oct 31 02:55:28 EDT 2010 amd64 It has two quad-core Xeon CPUs, 24GB memory, and a RAID 1+0 array with 10 disks + Areca 1680 controller with 2GB write back cache. Server is running: mailscanner + apache multihost + PHP + postgresql. Main load on the server is usually postgresql. Today something happened. Number of http processes went up to 200. As a result, number of connections to database also went up to 200, and the web server is now refusing clients with Cannot connect to database messages (coming from PHP). This is a typical output from top: last pid: 12789; load averages: 7.77, 10.77, 13.46 up 26+03:00:30 06:22:04 6637 processes: 7 running, 623 sleeping, 7 zombie CPU: 32.9% user, 0.0% nice, 7.6% system, 0.6% interrupt, 58.9% idle Mem: 3885M Active, 15G Inact, 3236M Wired, 627M Cache, 2465M Buf, 656M Free Swap: 12G Total, 12M Used, 12G Free PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 66834 pgsql1 1180 443M 417M CPU22 16:17 99.46% postgres 11473 pgsql1 720 441M 242M sbwait 5 0:02 4.59% postgres 11026 pgsql1 470 439M 249M sbwait 7 0:01 3.17% postgres 6642 www 1 480 236M 42928K select 0 0:01 2.29% httpd 10147 www 1 480 236M 44048K select 6 0:01 2.10% httpd 3961 shopzeus29 440 208M 96364K uwait 4 18.4H 1.37% python Here is what I don't understand. last pid is increasing relatively slowly, e.g. there are no hidden processes. Only the first one or two processes are showing CPU load 10%. The CPU User% value is about 50%. We have lots of free memory. I/O load is almost nothing (see iostat below). However, server load is between 7 and 13! In fact sometimes it is above 16. And everybody complains that the server is too slow. How can I find out what is causing the problem? Example gstat output: dT: 1.006s w: 1.000s L(q) ops/sr/s kBps ms/rw/s kBps ms/w %busy Name 0 0 0 00.0 0 00.00.0| ad4 0 0 0 00.0 0 00.00.0| ad4s1 0 0 0 00.0 0 00.00.0| ad4s1d 0 0 0 00.0 0 00.00.0| da0 0 0 0 00.0 0 00.00.0| da0s1 1304 3 34 14.0301 75220.25.1| da1 0 2 2 32 11.9 0 00.02.4| da2 0 0 0 00.0 0 00.00.0| da3 0 0 0 00.0 0 00.00.0| da4 0 0 0 00.0 0 00.00.0| da0s1a 0 0 0 00.0 0 00.00.0| da0s1b 0 0 0 00.0 0 00.00.0| da0s1d 0 0 0 00.0 0 00.00.0| da0s1e 1304 3 34 14.0301 75220.35.3| da1s1 0 2 2 32 11.9 0 00.02.4| da2s1 0 0 0 00.0 0 00.00.0| da3s1 0 0 0 00.0 0 00.00.0| da4s1 1304 3 34 14.0301 75220.45.4| da1s1d 0 2 2 32 11.9 0 00.02.4| da2s1d 0 0 0 00.0 0 00.00.0| da3s1d Example iostat output: tty ad4 da0 da1 cpu tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id 0 349 30.81 16 0.49 16.51 11 0.18 22.56 124 2.72 29 0 9 1 61 0 9282 0.00 0 0.00 0.00 0 0.00 16.00 7 0.11 41 0 11 1 47 0 12520 0.00 0 0.00 0.00 0 0.00 18.00 8 0.14 45 0 14 0 41 0 12205 0.00 0 0.00 0.00 0 0.00 0.00 0 0.00 38 0 15 0 47 Example systat output: /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average /0% /10 /20 /30 /40 /50 /60 /70 /80 /90 /100 pgsql postgres X root idle XXX root idle X root idle XX www httpd X root idle X root idle root idle XXX root idle XXX root idle www httpd XX pgsql postgres XXX pgsql postgres X www httpd X root intr X www httpd X www httpd X www httpd X www httpd X shopzeus python X www httpd X www httpd X www
Re: What is loading my server so much?
Step 1, get them to define server and too slow: If you log in and do shell ops, is the system slow to respond? Based on what you've reported, I'd be willing to bet that shell ops are pretty responsive. I can't be 100% sure without more information, but I'm willing to be that what your users are complaining about is your web application being slow. Since you don't say what that application is, I can only provide general advice. Shell response is fast. The application may be slow, but we should see why (high CPU load or high I/O?) I'm guessing that PostgreSQL is the bottleneck. I'm going to first make a few general suggestions, then provide suggestions on how to isolate the problem more specifically. First off, you have 24G of RAM available and PostgreSQL only seems to have access to 400M of it. Bump shared_buffers up to 2 or 3 G at least, and bump up work_mem to at least a few hundred meg, and maintenance_work_mem up to at 1/2G or so. Good point. Changed shared_buffers to 4G, work_mem to 512M and maintenance_work_mem to 2G If the top and gstat outputs are typical, it looks like PostgreSQL is doing mostly writes, but is not significantly blocked on writes. It looks like individual PostgreSQL processes are simply taking a long time to do their work. What's in your PostgreSQL log files? If there's nothing, then bump up the logging information in your postgresql.conf. I particularly like log_min_duration_statement at 500 ... any query that takes longer than 1/2 second to execute is suspect in the types applications I work with most frequently. Thanks for that hint also. We have some programs making huge queries (once in a day or so) so I set this to 3000 for now. If your application is developed in-house, I'd be willing to bet a paycheck that there are LOTS of indexes missing and that PostgreSQL is doing lots of seq scans where it could run lots faster if it had indexes. Check also your autovacuum settings and ensure that tables are not bloating out of control due to insufficient vacuuming. You may have to vacuum full/ reindex the entire database to get things back under control, which can take a long time if it's badly bloated. Well, we have tables with 5M+ rows (table size over 4G) and we have 500+ tables. This is probably something that is out of scope - probably you cannot help with that without knowing the structure of the database and how it is used, and it would take a long time to understand. But anyway, if there is a problem with the database (not having indexes), we see heavy I/O or CPU load of the postgresql processes right? I mean, if the bottleneck is postgresql, then we should be able to see it at the OS level. Your application may also be suffering from lock contention if there are lots of table locks used. Looking at the pg_locks table while things are slow can quickly identify if this is the case, and looking at pg_stat_activity in conjunction with that table will usually narrow down the problem pretty quickly. We do not issue lock statements directly, but we use database transactions. We have a tool for checking the state of those. Most of the time, only a few open database transactions are opened, and usually we don't have locks that are not granted. Finally, if you find that PostgreSQL is the bottleneck and you can't narrow it down enough to fix, join the PostgreSQL general questions mailing list and ask for help with the same level of detail you did here. You'll find that they're an equally helpful community. I'll do that, but first let me test the new settings. Yes, thank you very much for you help. Laszlo ___ 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: What is loading my server so much?
First off, you have 24G of RAM available and PostgreSQL only seems to have access to 400M of it. Bump shared_buffers up to 2 or 3 G at least, and bump up work_mem to at least a few hundred meg, and maintenance_work_mem up to at 1/2G or so. All right. Here is what I did. I setup a new shmmax value this way: sysctl kern.ipc.shmmax=8589934592 It is 8G. (By the way I also have kern.ipc.shm_use_phys: 1 ) Then I have changed shared_mem to 1024MB in postgresql.conf. Then I tried to start postgresql I got this message in the log: Dec 9 17:53:59 shopzeus postgres[27247]: [1-4] The PostgreSQL documentation contains more information about shared memory configuration. Dec 9 17:55:52 shopzeus postgres[27328]: [1-1] FATAL: could not create shared memory segment: Cannot allocate memory Dec 9 17:55:52 shopzeus postgres[27328]: [1-2] DETAIL: Failed system call was shmget(key=5432001, size=1105051648, 03600). Dec 9 17:55:52 shopzeus postgres[27328]: [1-3] HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory or swap space. To reduce the request size (currently 1105051648 bytes), reduce PostgreSQL's shared_buffers parameter (currently 131072) and/or its max_connections parameter (currently 203). Dec 9 17:55:52 shopzeus postgres[27328]: [1-4] The PostgreSQL documentation contains more information about shared memory configuration. I do not understand. Doc says these: max_connections cost ~ 400 bytes of shared memory slot, plus lock space (see max_locks_per_transaction). Even if I had max_connections = 5000, total shared memory required would be way below shmmax=8G. What am I missing here? Thanks Laszlo ___ 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
Copy all users between systems
I would like to copy all user accounts, including root from an already installed 8.0 system to a fresh new 8.1 system. My plan is to boot into single user mode, then copy these: /etc/passwd /etc/master.passwd /etc/group then run pwd_mkdb and finally restart the system. (Obviously, I also need to copy user home directories) Will this be enough? Did I miss something? Thanks, Laszlo ___ 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: cron not sending emails
Cron is still not sending emails. Any idea? Is there any output in the 'maillog' log? May 14 10:53:00 server postfix/sendmail[2958]: fatal: user(1001): No recipient addresses found in message header ___ 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: cron not sending emails
It doesn't work. With, or without the MAILTO. Just for completeness, I have used this: MAILTO=gandalf The gandalf user is a local user on the system. I can send local mail to this user using the sendmail postfix program (checked twice). Cron is still not sending emails. Any idea? Yes, check the log of cron (/var/log/cron) if you job is run at all; if so check the log of mails (/var/log/maillog). Cron jobs are started. Just their output are not sent in emails. The output of the maillog I already sent before: May 14 10:53:00 server postfix/sendmail[2958]: fatal: user(1001): No recipient addresses found in message header Btw: what is the purpose of putting TEST into ? I tend to use double quotes for command line parameters. This is just a habit that I use it even when it is not really necessary. Output from /var/log/cron follows Jun 1 04:55:00 shopzeus /usr/sbin/cron[89378]: (tmp.27734) ORPHAN (no passwd entry) Jun 1 04:55:00 shopzeus /usr/sbin/cron[89378]: (root) RELOAD (tabs/root) Jun 1 04:55:00 shopzeus /usr/sbin/cron[89378]: NSSWITCH(_nsdispatch): nis, passwd_compat, endpwent, not found, and no fallback provided Jun 1 04:55:00 shopzeus /usr/sbin/cron[27073]: (operator) CMD (/usr/libexec/save-entropy) Jun 1 04:55:00 shopzeus /usr/sbin/cron[27075]: (root) CMD (/usr/libexec/atrun) Jun 1 04:55:00 shopzeus cron[27075]: NSSWITCH(_nsdispatch): nis, passwd_compat, endpwent, not found, and no fallback provided Jun 1 04:55:00 shopzeus /usr/sbin/cron[27082]: (root) CMD (echo Test) (Followed by other similar rows with NSSWITCH and CMD.) Thanks Laszlo ___ 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: cron not sending emails
If I put this into root's crontab * * * * * echo TEST a quick guess, you have a line like: MAILTO=address It doesn't work. With, or without the MAILTO. Just for completeness, I have used this: MAILTO=gandalf The gandalf user is a local user on the system. I can send local mail to this user using the sendmail postfix program (checked twice). Cron is still not sending emails. Any idea? Thanks Laszlo ___ 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
cron not sending emails
Hi All! After upgrading to 8.0 RELEASE, I'm not getting any emails from cron. If I put this into root's crontab * * * * * echo TEST then I see this in the maillog: May 14 10:53:00 server postfix/sendmail[2958]: fatal: user(1001): No recipient addresses found in message header I'm using postfix. Sendmail config looks fine: A /etc/mail/mailer.conf -ban ez van: # # Execute the Postfix sendmail program, named /usr/local/sbin/sendmail # sendmail/usr/local/sbin/sendmail send-mail/usr/local/sbin/sendmail mailq/usr/local/sbin/sendmail newaliases/usr/local/sbin/sendmail I tried to run cron -x: # cron -x bit,ext,load,misc,pars,proc,sch cron.log debug flags enabled: ext sch proc pars load misc bit [92380] cron started log_it: (tmp.27734 92380) ORPHAN (no passwd entry) log_it: (root 92429) CMD (echo Test) ^C The cron.log file itself is very very long (there are many programs and user configs). I'll paste the relevant parts only: root:load_user() load_env, read MAILTO=gandalf load_env, MAILTO gandalf - MAILTO=gandalf load_env, read SHELL=/bin/sh load_env, SHELL /bin/sh - SHELL=/bin/sh load_env, read PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin load_env, PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin - PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin load_env, read * * * * * echo Test load_env, parse error, state = 7 load_entry()...about to eat comments load_entry()...about to parse numerics load_entry()...about to parse command load_entry()...returning successfully ...load_user() done [done] At the end of the file: [2400] checking account with PAM [2401] grandchild process Vfork()'ed [2402] grandchild process Vfork()'ed [2403] grandchild process Vfork()'ed [2404] grandchild process Vfork()'ed [2405] grandchild process Vfork()'ed [2395] child continues, closing pipes [2395] child reading output from grandchild [2406] grandchild process Vfork()'ed [2396] child continues, closing pipes [2396] child reading output from grandchild [2397] child continues, closing pipes [2397] child reading output from grandchild [2398] child continues, closing pipes [2398] child reading output from grandchild [2399] child continues, closing pipes [2399] child reading output from grandchild [2400] child continues, closing pipes [2400] child reading output from grandchild [2395] closing pipe to mail [2331] sigchld...pid #2395 died, stat=0 [2331] sigchld...no dead kids [2331] TargetTime=1275040320, sec-to-wait=60 [2331] sleeping for 60 seconds [2399] got EOF from grandchild [2399] waiting for grandchild #2 to finish [2399] grandchild #2404 finished, status= [2399] waiting for grandchild #1 to finish [2399] no more grandchildren--mail written? [2399] child process done, exiting [2331] sigchld...pid #2399 died, stat=0 [2331] sigchld...no dead kids [2331] TargetTime=1275040320, sec-to-wait=60 [2331] sleeping for 60 seconds [2398] got EOF from grandchild [2398] waiting for grandchild #2 to finish [2398] grandchild #2405 finished, status= [2398] waiting for grandchild #1 to finish [2398] no more grandchildren--mail written? [2398] child process done, exiting [2331] sigchld...pid #2398 died, stat=0 [2331] sigchld...no dead kids [2331] TargetTime=1275040320, sec-to-wait=60 [2331] sleeping for 60 seconds [2397] got EOF from grandchild [2397] waiting for grandchild #2 to finish [2397] grandchild #2403 finished, status= [2397] waiting for grandchild #1 to finish [2397] no more grandchildren--mail written? [2397] child process done, exiting [2331] sigchld...pid #2397 died, stat=0 [2331] sigchld...no dead kids [2331] TargetTime=1275040320, sec-to-wait=59 [2331] sleeping for 59 seconds So, what is wrong? Thanks, Laszlo ___ 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: cron not sending emails
Chuck Swiger írta: Hi-- On May 28, 2010, at 4:42 AM, Laszlo Nagy wrote: If I put this into root's crontab * * * * * echo TEST then I see this in the maillog: May 14 10:53:00 server postfix/sendmail[2958]: fatal: user(1001): No recipient addresses found in message header These do not correspond. I can assure you, that the maillog DOES correspond to the cron job. E.g. if I add two jobs for the same point in time, then two new lines will appear in the maillog, at exactly the given time. If I remove them, then no line will show up etc. It seems to think that the crontab is for uid 1001, but it can't seem to lookup a passwd entry for that uid: log_it: (tmp.27734 92380) ORPHAN (no passwd entry) Well, actually it is not just user=1001. Many users have crontabs on this system. I cannot tell which one is orphaned. (Maybe munin? That was removed recently from the system...) Actually, user 1001 does have a password entry. So do others, and their crontabs are working. Programs are started by cron, but their output is lost. L ___ 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: cron not sending emails
Matthias Fechner írta: Am 28.05.10 13:42, schrieb Laszlo Nagy: If I put this into root's crontab * * * * * echo TEST a quick guess, you have a line like: MAILTO=address Bye, Matthias It doesn't work. With, or without the MAILTO. Just for completeness, I have used this: MAILTO=gandalf The gandalf user is a local user on the system. I can send local mail to this user using the sendmail postfix program (checked twice). Best, Laszlo ___ 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
transmission-daemon: Couldn't create socket: Protocol not supported (fdlimit.c:642)
I have 4 virtual machines. They have exactly the same settings, except port numbers. Only one is doing this. Writes messages to syslog like: Feb 27 11:06:32 vm04 transmission-daemon: Couldn't create socket: Protocol not supported (fdlimit.c:642) Feb 27 11:09:20 vm04 transmission-daemon: Couldn't create socket: Protocol not supported (fdlimit.c:642) Feb 27 11:09:57 vm04 last message repeated 11 times Feb 27 11:13:25 vm04 transmission-daemon: Couldn't create socket: Protocol not supported (fdlimit.c:642) and also the rpc part is not reachable. Usually when I try to connect to the rpc port of transmission-daemon, I get connection timed out or connection reset by peer messages. But sometimes (rarely) it works. Some more information: vm04# uname -a FreeBSD vm04 7.2-STABLE FreeBSD 7.2-STABLE #2: Wed Nov 18 08:50:04 CET 2009 gand...@vm04:/usr/obj/usr/src/sys/DARKSUN amd64 vm04# sysctl kern.maxfiles kern.maxfiles: 12328 vm04# sysctl kern.openfiles kern.openfiles: 784 File uploads/downloads work as expected. Just I cannot monitor them, cannot add new files, remove old ones etc. because the RPC interface is not available. Where should I look for the problem? Thanks Laszlo ___ 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
transmission-web settings do not work
Basic system, installed these packages: transmission-daemon és transmission-web. Here is rc.conf: transmission_enable=YES transmission_flags= -a 192.168.0.1 transmission_download_dir=/download Other settings are the defaults. Then I do this: vm01# mkdir -p /download vm01# chown -R transmission:transmission /download vm01# /usr/local/etc/rc.d/transmission start Starting transmission. vm01# ps axww | grep transm 8963 ?? SsJ0:00.00 /usr/local/bin/transmission-daemon -g /usr/local/etc/transmission/home -a 192.168.0.1 -w /download My problem: cannot use web UI from outside. Here is the error I get: Unauthorized IP Address. Either disable the IP address whitelist or add your address to it. If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries. If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details. However, it is useless to change rpc-whitelist-enable to false in the ~transmission/settings.json file. I can even delete it. It doesn't matter. Anytime I start transmission-daemon, it ignores all the settings. Then, if I stop it, it dumps out the default settings again to settings.json. régi settings.json-t. When starting up transmission-daemon, it doesn't tell anything about not found config file, cannot read or parse it etc. What did I wrong? System info: vm01# uname -a FreeBSD vm01.test.dyndns.org 7.2-STABLE FreeBSD 7.2-STABLE #2: Wed Nov 18 08:50:04 CET 2009 gand...@test.dyndns.org:/usr/obj/usr/src/sys/DARKSUN amd64 vm01# pkg_info | grep trans transmission-daemon-1.75 A fast and lightweight daemon BitTorrent client transmission-web-1.75 A fast and lightweight WebUI for Transmission BitTorrent cl vm01# Thanks Laszlo ___ BSD levlista b...@hu.freebsd.org https://lists.hu.freebsd.org/mailman/listinfo/bsd -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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: jail - beginner questions
The address 192.168.0.11 must be assigned to a interface in the host FreeBSD. You can do it before starting the jail, or when the jail is being started. To assign the address before starting the jail do somthing like this: # ifconfig lnc0 alias 192.168.0.11/24 where lnc0 is the name of nic in the host FreeBSD Great. Here is what I did: sorb# mkdir -p /usr/jails/vm1 sorb# cd /usr/src sorb# setenv D /usr/jails/vm1 sorb# make installworld DESTDIR=$D sorb# make distribution DESTDIR=$D sorb# cat /etc/rc.conf jail_enable=YES jail_list=vm1 jail_vm1_rootdir=/usr/jails/vm1 jail_vm1_hostname=vm1.localdomain jail_vm1_ip=192.168.0.11 jail_vm1_interface=lnc0 jail_vm1_devfs_enable=YES jail_vm1_devfs_ruleset=vm1_ruleset ^D sorb#mount -t devfs devfs $D /dev sorb# /etc/rc.d/jail start vm1 Configuring jails:. Starting jails:ifconfig: interface lnc0 does not exist vm1.localdomain. See, I do not understand how this works. If I use a real physical interface then it works: sorb# ifconfig re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=389bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC ether 00:1a:4d:7b:cf:d6 inet X.X.X.X netmask 0xff00 broadcast X.X.X.255 inet 192.168.0.11 netmask 0x broadcast 192.168.0.11 media: Ethernet autoselect (100baseTX full-duplex) status: active where X.X.X.X is my public internet IP address. But I do not like this. I do not want to expose my jail's private IP address to the internet. Am I too paranoid? Should I just add rules like ipfw add 1000 allow all from X.X.X.X to 192.168.0.11 ipfw add 1001 allow all from 192.168.0.11 to X.X.X.X ipfw add 1002 deny all from any to 192.168.0.11 ipfw add 1003 deny all from 192.168.0.11 to any and be happy? Or would it be better to create a virtual ethernet interface for my jails? Somehow? d.) It requires to use firewall either ipfw or pf. For example you can add to your /etc/pf.conf: nat on lnc0 from 192.168.0.11 to any - 192.168.37.133 But the firewall requires more lines then this one to work correcly with all network traffic. And you have to know exactly what you want to get for using it. I'm using ipfw. I think I'll use natd+divert on the host. Thank you very much! I feel I'm over the hard part. :-) Laszlo ___ 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
jail - beginner questions
I'm experimenting with jails. I have installed a 7.2 stable FreeBSD inside vmware. Then I have created two jails, using the method written in the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-build.html The only thing that didn't work is this: cd /etc make distribution DESTDIR=$D I really think that it should be corrected to: cd /usr/src make distribution DESTDIR=$D After mounting devfs (mount -t devfs devfs /vm1/dev) I try to start it: /etc/rc.d/vm1 start vm1 But then I get this error in syslog: bind: Can't assign requested address Here is the config from /etc/rc.conf (in the host): jail_enable=YES# Set to NO to disable starting of any jails jail_list=vm1 vm2 # Space separated list of names of jails jail_vm1_rootdir=/vm1 # jail's root directory jail_vm1_hostname=vm1.localdomain # jail's hostname jail_vm1_ip=192.168.0.11 # jail's IP address jail_vm1_devfs_enable=YES # mount devfs in the jail jail_vm1_devfs_ruleset=vm1_ruleset # devfs ruleset to apply to jail jail_vm2_rootdir=/vm2 # jail's root directory jail_vm2_hostname=vm2.localdomain # jail's hostname jail_vm2_ip=192.168.0.12 # jail's IP address jail_vm2_devfs_enable=YES # mount devfs in the jail jail_vm2_devfs_ruleset=vm2_ruleset # devfs ruleset to apply to jail Please help. Thank you, Laszlo ___ 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: jail - beginner questions
No, I think you added the '/' before 'etc', which isn't in the web page. Gotcha. Is the problem perhaps in your /etc/rc.d/vm1 script? Normally you would use /etc/rc.d/jail. Yes, I'm. Sorry - it was a typo. I used this: /etc/rc.d/jail start vm1 Are those addresses already assigned on the host? Was the jail perhaps already running? My computer is a windows machine, with address 192.168.0.X Then the FreeBSD host is actually a guest os running in wvmare. It has address 192.168.37.133 And finally, the vm1 jail should have 192.168.0.11 I don't know why 192.168.0.11 is not working for the jail. Anyway, if I change the jail's address to 192.168.10.11 then /etc/rc.d/jail start vm1 Starting jails: vm1.localdomain. Now the next question: how can I access the hosted (jailed) OS? I know it is a dumb question, but I have no idea. I would like to: a.) run sshd in the jail b.) login from the host to the jailed (hosted) OS c.) install programs on the jail, configure them and finally d.) use NATD to divert some pacakges from the host to the jail and back Probably this is what everybody does, so if you could point me to a tutorial or something, I would appriciate it. Thanks, Laszlo ___ 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 stable + postfix - how to setup chroot?
What I already did: syslogd_flags=-s -l /var/spool/postfix/var/run/log # put into /etc/rc.conf Then I changed n to y for all lines in /usr/local/etc/postfix/master.cf in the chroot column. But I don't know how to create chrooted environment under /var/spool/postfix. Is there a command that can create it for me? Or is there a manual telling what files I need to copy from my root fs? Thanks, Laszlo ___ 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
load average + with no visible load ?
#uptime 9:06AM up 6:14, 12 users, load averages: 25.39, 13.19, 9.55 I would think that CPU is under 100% when load=15.58 . But it is not: #top -S last pid: 17095; load averages: 13.26, 11.20, 8.57 up 0+06:12:25 09:04:27 514 processes: 3 running, 490 sleeping, 1 zombie, 20 waiting CPU states: 16.1% user, 0.0% nice, 1.8% system, 0.0% interrupt, 82.1% idle Mem: 1406M Active, 272M Inact, 247M Wired, 70M Cache, 112M Buf, 8380K Free Swap: 4096M Total, 4096M Free PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 11 root 1 171 52 0K 8K RUN0 214:21 43.70% idle: cpu0 10 root 1 171 52 0K 8K RUN1 282:08 34.28% idle: cpu1 21 root 1 -68 -187 0K 8K WAIT 1 2:15 2.05% irq19: myk0 uhci3 16480 timea 1 970 34376K 17628K select 0 0:03 1.81% wnck-applet 14813 kornel1 960 34376K 27384K select 0 0:20 1.12% skype 17095 root 1 960 3104K 2324K CPU1 1 0:00 1.00% top 16443 timea 1 960 17304K 12560K select 1 0:03 0.98% metacity 12 root 1 -44 -163 0K 8K WAIT 1 1:21 0.88% swi1: net 16550 timea 1 970 41760K 37284K select 0 0:15 0.73% wish8.4 2317 zsolt 1 960 29680K 22344K select 1 3:13 0.59% skype 3450 szgabor 1 960 28344K 21484K select 1 2:56 0.49% skype The most strange is that last pid is almost constant, about 1 process started per second. So how it is possible that top -S tells 82% idle but load tells 15.58 ? Thanks, Laszlo ___ 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: truss is buggy?
It looks like the ptrace() syscall is the problem: DESCRIPTION The ptrace() system call provides tracing and debugging facilities. It allows one process (the tracing process) to control another (the traced process). The tracing process must first attach to the traced process, and then issue a series of ptrace() system calls to control the execution of the process, as well as access process memory and register state. For the duration of the tracing session, the traced process will be ``re-parented'', with its parent process ID (and resulting behavior) changed to the tracing process. I imagine that also explains why a truss'ed program will die if you kill -9 the truss process. It looks like the reset parent when trussing behaviour appeared back in 1996 (sys_process.s r1.21). The fix would probably be to store the pid of the tracing process somewhere other than p_ppid... My problem is that there is a process (namely, postgresql stats collector) that may have a bug inside. I was asked on the devel list to send in some traces so they can figure out why it is in an infinite loop, eating 100% CPU time. However, when I start truss-ing this process, getppid() call changes return value. The postgresql stats collector periodically checks if the postmaster (its parent process) is alive or not, and will exit unconditionally if the postmaster has died. After I start truss-ing, the stats collector exits, making it impossible to debug the problem. I'm not able to change the stats collector's source code, because I'm not a C programmer, and because it is a production server and this would be too risky. I also tried to install strace, but it is not available on my platform (amd64). I cannot move to i386, because (apparently) the problem exists on this platform only. Is this a hopeless situation? BTW I'm not an expert, but I believe that the process being debugged should not see any difference, and it should not be able to tell if it is debugged or not. I think this is a bug indeed. ___ 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
truss is buggy?
Apparently, the truss trace tool has a bug. At least I was told that the tracer program should not change the return value of the getppid() call inside the traced process. Here is an example program: %cat test.c #include stdio.h int main() { while(1) { sleep(5); printf(ppid = %d\n, getppid()); } } %gcc -o test test.c %./test ppid = 47653 ppid = 47653 ppid = 47653 # Started truss -p 48864 here! ppid = 49073 ppid = 49073 ppid = 49073 I cannot install strace, beacuse my platform is amd64. What other options do I have? Thanks Laszlo ___ 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: CUPS: cannot see printer from various program
Hello Laszlo, You might want to add the following lines to /etc/make.conf CUPS_OVERWRITE_BASE=yes NO_LPR=yes WITH_CUPS=yes And rebuild the application you want to print from. (The above was found on the excellent guide at http://www.math.colostate.edu/~reinholz/freebsd/) Thank you! I already have a running system, so I had to setenv WITH_CUPS cd /usr/ports/x11-toolkits/gtk20 make deinstall make install clean I do not fully understand why it is done this way. Most users - including me - are going to install gnome2 first, and most likely CUPS is not installed by that time. It is also true that many users who install gnome2 will have a printer and want to use it. So I would recommend to create a make option [X] CUPS support for gtk20, or at least for gnome2. It was quite hard to find information about this issue on the internet! Should I post a PR for this? (It is not a real bug but I think it causes problems for many users.) Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Creating a CUPS printer instance from web interface?
The base page for CUPS has a button labeled Add Printer. On *my* setup, anyway. On mine too. What it really does is add a queue, so you can do it any number of times for the same physical printer. I did not know that! But it is not clear in the docs. CUPS talks about printers and printer instances. They recommend using lpoptions to create instances, and use them. Moreover, printer instances the way they are created with lpoptions are NOT available from the gtk print menu. All right, I'm going to try to add more printers for the same USB device. I hope it will work. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CUPS: cannot see printer from various program
The printer is Epson Stylus Photo R265. I'm using gutenprint 5 and CUPS. The test page prints well from CUPS. I can also print images and web pages from firefox, because the CUPS/R265 printer can be selected in the print dialog of firefox. However, when I open an image from eog (eye of gnome), the only printer destination I can choose is LPR. Which is bad, because this is a printer server with diskless clients, and the users must be able to select print options from the GUI. The system is FreeBSD 7.0. My girlfriend had the same problem with Ubuntu before, but not with kiwi, so it might not be related to FreeBSD. Thanks, Laci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Creating a CUPS printer instance from web interface?
I would like to create named instances for an Epson printer. We are printing invoices on normal A4, photos on glossy photo paper, and draft papers (with draft quality). E.g. the paper size, margins and print quality changes from time to time. I have two problems. First, I do not see any way on the CUPS web admin interface to add printer instances. I only have 'set printer options' but it does not allow me to create instances. The other problem is that lpoptions lists the options, but I do not know their meaning and the possible values. Example: [EMAIL PROTECTED]:~$ lpoptions media=A4 finishings=3 copies=1 job-hold-until=no-hold job-priority=50 number-up=1 auth-info-required=none job-sheets=none,none printer-info='EPSON Stylus Photo R265' printer-is-accepting-jobs=1 printer-is-shared=1 printer-location printer-make-and-model='Epson Stylus Photo R265 - CUPS+Gutenprint v5.0.2 Simplified' printer-state=5 printer-state-change-time=1227085737 printer-state-reasons=paused printer-type=8556556 Which option is for printing quality? What are its possible values? It depends on the driver, and therefore it is not covered in the CUPS manual. The drivers themselves does not have a documentation. So where can I get this information? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
eps to jpg conversion - which program?
Hi, I need to convert eps files into jpeg files in batch mode. Gimp works perfectly, except that I cannot use an X display. I tried eps2png with no success: %file test.eps test.eps: DOS EPS Binary File Postscript starts at byte 30 length 566887 TIFF starts at byte 566917 length 4741 %eps2png -jpg -width 1000 -verbose -output test.jpg test.eps Producing jpg (jpeg) image. Not EPS file: test.eps, skipped What port should I use to convert EPS into JPG? I would like to use a program that shares the same library with Gimp, because we know that Gimp works great for this task. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gjournal: journaled slices vs. journaled partitions
So how do I achieve per-slice journaling instead of per-partition? The docs only says this: gjournal only supports UFS2. It does not specifically say that you cannot have per-slice journaling. However, since you could have other filesystems on your slice, I bet that slice based journaling is not supported. Consider this: how would you journal an NTFS file system (and then boot windows after an unclean shutdown?) Another tricky question: why would you journal a SWAP partition? Best, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 7.1 hangs, shutdown terminated
Johan Hendriks írta: If find / -sx is running and is consuming all CPU, what is the value of vfs.ufs.dirhash_mem: # sysctl -a | grep dirhash shopzeus# sysctl -a | grep dirhash vfs.ufs.dirhash_docheck: 0 vfs.ufs.dirhash_mem: 2095818 vfs.ufs.dirhash_maxmem: 2097152 vfs.ufs.dirhash_minsize: 2560 Make sure vfs.ufs.dirhash_mem: is not close to vfs.ufs.dirhash_maxmem: All right. It is close to it. Which one should I increase? I put this into /etc/sysctl.conf: vfs.ufs.dirhash_maxmem=8228608 Would it be scufficient? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
7.1 hangs, shutdown terminated
Hi, A computer hangs every day in the morning at a specific time, between 8 AM and 9 AM. We can ping it. Apparently the console works, also gdm works on it, but we are not able to login at all. ssh accepts connections, but the authentication does not continue (e.g. ssh client waits for the server forever...) I even cannot login on the console as root because it accepts the user name, but does not ask for the password! Pressing Ctrl+Alt+Del on the console waits for about one or two minutes, then I see this on the screen: http://www.imghype.com/viewer.php?imgdata=9d95ee9d1fstrange_shutdown.jpg Here is /var/log/messages just before the crash: Oct 10 01:52:47 shopzeus postgres[81114]: [5-1] WARNING: nonstandard use of escape in a string literal at character 193 Oct 10 01:52:47 shopzeus postgres[81114]: [5-2] HINT: Use the escape string syntax for escapes, e.g., E'\r\n'. Oct 10 01:57:11 shopzeus postgres[84132]: [5-1] WARNING: nonstandard use of escape in a string literal at character 188 Oct 10 01:57:11 shopzeus postgres[84132]: [5-2] HINT: Use the escape string syntax for escapes, e.g., E'\r\n'. Oct 10 02:00:01 shopzeus postfix/postfix-script[86167]: fatal: the Postfix mail system is already running Oct 10 02:30:00 shopzeus postfix/postfix-script[7240]: fatal: the Postfix mail system is already running Oct 10 03:00:00 shopzeus postfix/postfix-script[27437]: fatal: the Postfix mail system is already running Oct 10 04:07:54 shopzeus rc.shutdown: 30 second watchdog timeout expired. Shutdown terminated. Oct 10 04:09:16 shopzeus postgres[30455]: [5-1] FATAL: terminating connection due to administrator command Oct 10 04:09:17 shopzeus syslogd: exiting on signal 15 Oct 10 04:11:31 shopzeus syslogd: kernel boot file is /boot/kernel/kernel Oct 10 04:11:31 shopzeus kernel: Copyright (c) 1992-2008 The FreeBSD Project. Oct 10 04:11:31 shopzeus kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 After rebooting the machine, nothing happens until the next day. Here are some possible problems I can think of: #1. We are using gjournal. It might be that the journal size is too small. Although I do not think this is the case, because we have 40GB journal space for each journaled partition below (except for /home, it has 10GB only, but /home is rarely used) Filesystem 1G-blocks Used Avail Capacity Mounted on /dev/da0s1a 91 714%/ devfs 00 0 100%/dev /dev/da0s1f.journal 140 12 117 9%/home /dev/da0s2d.journal 106889 8%/pgdata0 /dev/da0s1d29026 0%/tmp /dev/da0s2e.journal 585 74 46414%/usr /dev/da0s1e.journal 145 17 11613%/var /dev/da1s1d.journal 4160 383 0%/data Is it possible that gjournal is hanging up the machine? #2. Yesterday when I logged in in the morning, I saw a process running under root, it was something like find / -sx ... and then something. I don't remember but it was scanning the whole filesystem. It was using 100% cpu and 100% disk I/O. I wonder if that might be freezing the computer. I do not know how to disable this maintenance process but I should. After killing this process, the system worked fine. (We have zillions of files on the disks, running find / ... is a bad idea.) #3. In the screenshot above, you can see that the IMAP server dovecot was terminated on signal 11. Can it be the problem? I can't believe that dovecot could freeze the whole system. #4. Hardware error. I don't think this is the case since the computer freezes at the same time, every day, so it is more likely a software problem. Any thoughts what is causing this? uname -a: FreeBSD shopzeus.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #3: Mon Oct 6 07:50:31 EDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SHOPZEUS amd64 Thank you, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 7.1 hangs, shutdown terminated
This could be a periodic job (since you said this happens daily) which runs early in the morning (2-3am?) and for some reason isn't finishing in a timely manner. You haven't provided any actual ps -auxwww data, so we can't easily discern if it's a periodic job or something amiss on your system (for all we know the system could be compromised). I wanted to, but since I could not log in... I'm also curious what controller your SCSI disks are attached to. Can you provide that information? ARECA 1680 ix 12 dmesg would be useful. Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-PRERELEASE #3: Mon Oct 6 07:50:31 EDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SHOPZEUS module_register: module g_journal already exists! Module g_journal failed to register: 17 Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(R) CPU E5420 @ 2.50GHz (2508.72-MHz K8-class CPU) Origin = GenuineIntel Id = 0x10676 Stepping = 6 Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0xce3bdSSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,b19 AMD Features=0x20100800SYSCALL,NX,LM AMD Features2=0x1LAHF Cores per package: 4 usable memory = 8571047936 (8173 MB) avail memory = 8260050944 (7877 MB) ACPI APIC Table: INTEL S5000PSL FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 cpu4 (AP): APIC ID: 4 cpu5 (AP): APIC ID: 5 cpu6 (AP): APIC ID: 6 cpu7 (AP): APIC ID: 7 ioapic0 Version 2.0 irqs 0-23 on motherboard ioapic1 Version 2.0 irqs 24-47 on motherboard lapic0: Forcing LINT1 to edge trigger kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: INTEL S5000PSL on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a (3) failed Timecounter ACPI-fast frequency 3579545 Hz quality 1000 acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0 acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0 Timecounter HPET frequency 14318180 Hz quality 900 acpi_button0: Sleep Button on acpi0 acpi_button1: Power Button on acpi0 pcib0: ACPI Host-PCI bridge port 0xca2,0xca3,0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 pcib1: ACPI PCI-PCI bridge at device 2.0 on pci0 pci1: ACPI PCI bus on pcib1 pcib2: ACPI PCI-PCI bridge irq 16 at device 0.0 on pci1 pci2: ACPI PCI bus on pcib2 pcib3: ACPI PCI-PCI bridge irq 16 at device 0.0 on pci2 pci3: ACPI PCI bus on pcib3 pcib4: ACPI PCI-PCI bridge irq 18 at device 2.0 on pci2 pci4: ACPI PCI bus on pcib4 em0: Intel(R) PRO/1000 Network Connection 6.9.5 port 0x2020-0x203f mem 0xb882-0xb883,0xb840-0xb87f irq 18 at device 0.0 on pci4 em0: Using MSI interrupt em0: [FILTER] em0: Ethernet address: 00:15:17:81:99:d0 em1: Intel(R) PRO/1000 Network Connection 6.9.5 port 0x2000-0x201f mem 0xb880-0xb881,0xb800-0xb83f irq 19 at device 0.1 on pci4 em1: Using MSI interrupt em1: [FILTER] em1: Ethernet address: 00:15:17:81:99:d1 pcib5: ACPI PCI-PCI bridge at device 0.3 on pci1 pci5: ACPI PCI bus on pcib5 pcib6: PCI-PCI bridge at device 3.0 on pci0 pci6: PCI bus on pcib6 pcib7: ACPI PCI-PCI bridge at device 4.0 on pci0 pci7: ACPI PCI bus on pcib7 pcib8: ACPI PCI-PCI bridge at device 5.0 on pci0 pci8: ACPI PCI bus on pcib8 pcib9: ACPI PCI-PCI bridge at device 6.0 on pci0 pci9: ACPI PCI bus on pcib9 pcib10: PCI-PCI bridge at device 7.0 on pci0 pci10: PCI bus on pcib10 pci0: base peripheral at device 8.0 (no driver attached) pcib11: ACPI PCI-PCI bridge irq 16 at device 28.0 on pci0 pci11: ACPI PCI bus on pcib11 arcmsr0: Areca SAS Host Adapter RAID Controller (RAID6 capable) mem 0xb8b0-0xb8b01fff irq 16 at device 0.0 on pci11 ARECA RAID ADAPTER0: Driver Version 1.20.00.15 2007-10-07 ARECA RAID ADAPTER0: FIRMWARE VERSION V1.45 2008-04-29 arcmsr0: [ITHREAD] uhci0: Intel 631XESB/632XESB/3100 USB controller USB-1 port 0x3080-0x309f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: Intel 631XESB/632XESB/3100 USB controller USB-1 on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: Intel 631XESB/632XESB/3100 USB controller USB-2 port 0x3060-0x307f irq 22 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: Intel 631XESB/632XESB/3100 USB controller USB-2 on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: Intel 631XESB/632XESB/3100 USB controller USB-3 port 0x3040-0x305f irq 23 at
Re: [SOLVED] Re: 7.1 hangs, shutdown terminated
Firstly, I see a periodic(8) job that DOES use find -sx, which means your attempt to track it down was faulty, and your syntax should have been find -sx / not find / -sx. See here: /etc/periodic/security/100.chksetuid: find -sx $MP /dev/null -type f \ Thanks for clearing that out. :-) I did not remember what it was and failed to find it. $MP == mountpoint, e.g. /, /var, or any other mounted filesystem. So, what you saw was the periodic check looking for setuid-root binaries. Secondly, the kernel does not spawn userland processes like find(1). Thirdly, dirmem and dirmem_max are *pure* kernel things. What they do is control the amount of memory used for directory structure caching; rather than continually hit the disk every time and spend all that time handling directory contents, the kernel can cache previously-fetched contents in memory Now it stays this value constantly: vfs.ufs.dirhash_mem: 44306131 I think it is now caching everything. Thank you again, and sorry for the dumb questions. Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [SOLVED] Re: 7.1 hangs, shutdown terminated
Thank you very much! Probably you are right. Our users use shared IMAP folders and sometimes they keep ten thousands of messages in one folder. I have increased dirhash_maxmem to 64MB and see what happens. Unfortunately, I cannot play with the hardware because it is in a server park, and it must be up 99.99% on workdays. I hope dirhash will solve the problem. I'm setting this to [SOLVED] and come back if it happens again. (Maybe on monday?) By the way, there is nothing in /etc/periodic that would execute find / -sx. Can somebody explain what is this for, and why it was started by root? Is it being used instead for enumerating files in a directory, when dir hash is full? I'm starting to believe that this was the problem. Within an hour, I see this: shopzeus# sysctl vfs.ufs vfs.ufs.dirhash_docheck: 0 vfs.ufs.dirhash_mem: 33708867 vfs.ufs.dirhash_maxmem: 134217728 vfs.ufs.dirhash_minsize: 2560 Went up to 32MB! L ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[SOLVED] Re: 7.1 hangs, shutdown terminated
If find / -sx is running and is consuming all CPU, what is the value of vfs.ufs.dirhash_mem: # sysctl -a | grep dirhash shopzeus# sysctl -a | grep dirhash vfs.ufs.dirhash_docheck: 0 vfs.ufs.dirhash_mem: 2095818 vfs.ufs.dirhash_maxmem: 2097152 vfs.ufs.dirhash_minsize: 2560 Make sure vfs.ufs.dirhash_mem: is not close to vfs.ufs.dirhash_maxmem: All right. It is close to it. Which one should I increase? I put this into /etc/sysctl.conf: vfs.ufs.dirhash_maxmem=8228608 Would it be scufficient? We don't know, and can't tell you. You'll have to monitor vfs.ufs.dirhash_mem occasionally to see if you start to reach vfs.ufs.dirhash_maxmem. I have a tendency to use vfs.ufs.dirhash_maxmem=16777216, which is 16384*1024 (16MBytes). I'm not fully confident this is what's causing your problem, but it's definitely a recommendation by Johan. Thank you very much! Probably you are right. Our users use shared IMAP folders and sometimes they keep ten thousands of messages in one folder. I have increased dirhash_maxmem to 64MB and see what happens. Unfortunately, I cannot play with the hardware because it is in a server park, and it must be up 99.99% on workdays. I hope dirhash will solve the problem. I'm setting this to [SOLVED] and come back if it happens again. (Maybe on monday?) By the way, there is nothing in /etc/periodic that would execute find / -sx. Can somebody explain what is this for, and why it was started by root? Is it being used instead for enumerating files in a directory, when dir hash is full? Thanks, Laszo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GEOM_JOURNAL: Timeout. Journal gjournal XXXX cannot be completed.
GEOM_JOURNAL: Timeout. Journal gjournal 2578807269 cannot be completed. Screenshots will not come through on the list, could you upload them somewhere and send a link? Is the partition you are trying to journal mounted? Now I figured out that the size of the journal partition was too small. I changed it to 40GB and now it is fine. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: php5 segfault
Also, you cannot use a threaded Apache (e.g. threaded MPMs) with PHP since not all extensions support threading. Your Apache needs to be built without threads and use a non-thread model (e.g. prefork). I've also had success with Apache-ITK-mpm. This is very true for mod_php, but less so if PHP is run as FastCGI. I am currently running a box at work with the event mpm and mod_fcgid for testing and it seems to be doing well. YMMV All right. The problem is that we are getting segfaults with the CLI version too. We are running some background PHP programs and they also throw segfault. Here is the interesting part. I wrote a test script that tries to connect to the postgresql server. - if the hostname is wrong for the connection, there is no segfault - if the hostname is right but the password is wrong (e.g. it cannot connect to the server) then there IS segfault. There are no options to configure in php5-pgsql. I tried to change the order or module in extensions.ini, no success so far. Best, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: php5 segfault
There are no options to configure in php5-pgsql. I tried to change the order or module in extensions.ini, no success so far. Then my recommendation is to build PHP with DEBUG enabled (see make config), reproduce the situation, and provide a backtrace here. Problem solved. I put pgsql.so on top of all other modules and now there is no segfault. Thank you! Although I do not understand why it has not been fixed. The same problem existed two years ago, right? Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: php5 segfault
I thought you said you changed the order and it didn't work? *confused* I said no success so far. There are more than 20 modules and there is no description about what the good order should be. I had to keep trying... If so: it should be obvious why it hasn't been fixed. It doesn't appear to affect everyone -- for example, we have never seen this problem in the 4-5 years we've been using PHP on FreeBSD -- and the solution doesn't really make much sense anyway. It smells of a missing symbol problem (e.g. libxx.so wants a symbol named hello_bob, but the symbol is available in libyy.so, which has to be loaded first; however, ld.so and dlopen(3) have explicit handling for this scenario (see RTLD_NOW vs. RTLD_LAZY), so I'm at a loss). Maybe you are right. But I would think that a missing symbol problem should throw an error message telling missing symbol instead of making a segfault. That said, if you feel this is a humongous issue, I highly recommend you mail the PHP port maintainer and express your concerns, or open a PR We had the same problem on our previous server. I'm going to install another box today and test it. If the problem comes out again, I'm going to write a PR. Thank you! Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
GEOM_JOURNAL: Timeout. Journal gjournal XXXX cannot be completed.
Hi, I'm trying to add a new disk to my system. I'm ready with labeling the disk. It is an SCSI device with and UFS partition and a SWAP partition. The swap is turned off, and I would like to use it as journal space. There is a screenshot attached showing what happens after entering single user mode. swaps are turned off, and the journal cannot be initialized. The message says: GEOM_JOURNAL: Timeout. Journal gjournal 2578807269 cannot be completed. Why is that? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
php5 segfault
uname -a: FreeBSD shopzeus.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #3: Mon Oct 6 07:50:31 EDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SHOPZEUS amd64 when compiling /usr/ports/php5 I see messages like: bin/sh /usr/ports/lang/php5/work/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile cc -IZend/ -I/usr/ports/lang/php5/work/php-5.2.6/Zend/ -DPHP_ATOM_INC -I/usr/ports/lang/php5/work/php-5.2.6/include -I/usr/ports/lang/php5/work/php-5.2.6/main -I/usr/ports/lang/php5/work/php-5.2.6 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/ports/lang/php5/work/php-5.2.6/ext/date/lib -I/usr/ports/lang/php5/work/php-5.2.6/TSRM -I/usr/ports/lang/php5/work/php-5.2.6/Zend-O2 -fno-strict-aliasing -pipe -c /usr/ports/lang/php5/work/php-5.2.6/Zend/zend_API.c -o Zend/zend_API.lo So it is using -O2 and -pipe. Is this something that I can disable? It might be because we are using postgresql connections. For pages without pgsql connection, there is no segfault. It must be noted that the segfault happens on cleanup. E.g. all web sites are working fine, except that we are getting many many segfault messages in the logs all the time. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
dd piperd
Sziasztok, Ilyet látok top-ban: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 11475 gandalf 1 -8 0 4600K 864K piperd 5 21:41 8.06% cat 11472 gandalf 1 -8 0 4604K 876K piperd 3 21:30 8.06% dd Tehát összesen 16% procit zabál valami, amiről nem tudom hogy mi! ps ezt mondja: 1001 11472 11471 0 -8 0 4604 876 piperd S ?? 21:24.52 dd bs=1 count=1926717440 ilyet én biztosan nem futtatok magamtól. De akkor ki? Van ötletetek arra hogy a cat + dd párost melyik program futtathatja ilyen hülye módon? Valami maintenance cron job esetleg? Parázok hogy valaki betört. Köszi, Laci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
VNC server embedded into Xorg server
Hi All, There was a port called net/vnc that contained a vnc.so file. That file could be loaded into the Xorg server and then I was able to monitor the X desktop with VNC. Now I'm using gnome, and gnome2-fifth-toe installs tightvnc. It conflicts with net/vnc. So I cannot install net/vnc. What other options I have to run an X server? The only extra wish is that the X server must be able to start automatically, e.g. without logging into gnome. I need this because the X server will be located at a distant location and I have to be able to use it after a system restart. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dovecot, maildir, UFS 2 performance
#1 maildir stores each message in a separate file. I think I need to dedicate a separate disk slice for maildirs and decrease block size on it. How big should the blocksize be? i have everything (/) on single partition on most of my servers, including those having lots of mail. I don't think that is clever. sysinstall creates different partitions for / /usr /var and /tmp by default. There must be good reasons for this. #2 searching in messages is a common operation. Possibly read speed is very most important. But since there will be thousands of files to open, seek operation is also important. On which RAID array should I put mail dirs? dovecot do make indexes and scans all files only when rebuilding them. Except when my users search for a text in the message body. Unfortunately, they often do this. :-( assuming you configured your RAID1+0 properly it will give you MUCH more performance from 10 disks, than RAID1 on 2 - a bit faster - drives. IMHO you wasted money for SAS drives, simply having SATA only system could be enough. This is true for raw read/write speed. But some I/O operations are seek intensive. Seek time for a 15 000 rpm SAS disk is lower than it is for a 10 disk SATA2 RAID. Seek intensive operations should go to SAS. But I'm not sure what they are. If you say that dovecot is not seek intensive then you answered my question. :-) just keep your SAS drives for OS, ports, sources, logs, whatever, while /home on your big RAID1+0 volume. Thank you Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dovecot, maildir, UFS 2 performance
You can treat UFS as ext2/3 with dir_index enabled by default (not exactly but that's what dirhash translates to in practice). UFS by default creates 2k fragments (sub-blocks), so in practice any tuning in this direction won't do much. More drives=better in this case. Don't forget to tune dirhash_maxmem. I think this is what I really wanted to know. Thank you! Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
dovecot, maildir, UFS 2 performance
I need to install a new server. Primarily it will run apache + PHP + PostgreSQL. Its main task is to serve several websites, and provide web based admin interface for OLTP. The server will have 2xSAS disks in RAID 1 for the base system and 10xSATA2 disks in RAID 1+0 for the rest. The SAS pair will only have 150GB space. The RAID 1+0 array will be above 1.5 TB. I already have a good idea about how to tune PostgreSQL: log files go to SAS and data dir goes to SATA. The secondary task for this server is to be an IMAP and mail server. We will be using dovecot, and shared maildir folders with ten thousands of messages. I'm not sure where to put the maildir folders, and what options to use for the filesystem. Dovecot wiki is not talking about UFS, only ext3, reiserfs and xfs: http://wiki.dovecot.org/MailboxFormat/Maildir Can you tell me some basic idea about how to configure this? I have some ideas but they may be competely wrong: #1 maildir stores each message in a separate file. I think I need to dedicate a separate disk slice for maildirs and decrease block size on it. How big should the blocksize be? #2 searching in messages is a common operation. Possibly read speed is very most important. But since there will be thousands of files to open, seek operation is also important. On which RAID array should I put mail dirs? Small SAS or bigger SATA array? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Filesystem of choice for a Linux/FreeBSD shared backup disk?
For making backups I would probably just use FAT32 and tar, because practically anything (not just FreeBSD Linux) will mount FAT32 file systems, and tar should respect your file attributes (owner, group, creation timestamp, last modified timestamp, etc). Except that you cannot create files with 4GB size on FAT32. You might be able to use an archiver that is able to split archives into smaller parts. This has always been a problem. FreeBSD is open source. So Linux is, but they do not have a common filesystem that could be accessed from both system, WITHOUT compromises. :-( Best, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Max. number of opened files, efficiency
How many files can I open under FreeBSD, at the same time? Problem: I'm making a pivot table, and when I drill down the facts, I would like to create a new temporary file for each possible dimension value. In most cases, there will be less than 1000 dimension values. I tried to open 1000 temporary files and I could do so within one second. But how efficient is that? What happens when I open 1000 temporary files, and write data into them randomly, 10 million times. (avg. 10 000 write operations per file) Will this be handled efficiently by the OS? Is efficiency affected by the underlying filesystem? I also tried to create 10 000 temporary files, but performance dropped down. Example in Python: import tempfile import time N = 1 start = time.time() files = [ tempfile.TemporaryFile() for i in range(N)] stop = time.time() print created %s files/second % ( int(N/(stop-start)) ) On my computer this program prints 3814 files/second for N=1000, and 1561 files/second for N=1. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Max. number of opened files, efficiency
Directories generally start to perform poorly when you put too many files in them (i.e. the time required to add a new directory entry or find an existing name in the entry goes up) If you're going to be making 10s of 1000s of files, I'd recommend making a tree of directories. I.e., make directories 1 - 10, then put files 0-999 in directory 1 and files 1000-1999 in directory 2, etc In fact I do not need any name associated with the file. I just need a temporary file object, I would like to access it in read write mode and then throw it. For some reason, this kind of temporary file is implemented this way (at least in Python): 1. create file name with mkstemp 2. create file object with that name 3. save the file handle number 4. unlink the file name (remove directory entry) 5. return the file handle (that can be closed later) This is executed each time I create a temporary file. As you can see, the number of entries in the tmp directory won't increase at all. (If it would be possible, I would create a file without a name for the first time.) When I close the file handle, the OS will hopefully deallocate the disk space because from that point, nothing references the file. Another interesting (offtopic) question is that I could not open 10 000 files under Windows XP. Error was too many open file. How to overcome this? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
List of active users, logged in with gdm
Hi, I would like to get the list of the users who are actively logged in remotely with gdm, along with their IP address. The commands 'w' and 'users' does not work. What is the right command to get this list? uname: FreeBSD test.dyndns.org 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #4: Wed Aug 29 14:01:04 CEST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/DARKSUN i386 (The computer is an application server, serving applications to diskless machines with gdm + gnome.) Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gnumeric fails to install, 6.3-PRERELEASE
Laszlo Nagy wrote: Enviroment: cassiopeia# uname -a FreeBSD cassiopeia.ronet 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #2: Tue Jan 15 04:41:41 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA amd64 cassiopeia# portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found. Fetching snapshot tag from portsnap2.FreeBSD.org... done. Latest snapshot on server matches what we already have. No updates needed. cassiopeia# portsnap update Ports tree is already up to date. The problem itself: portupgrade -a fails to install gnumeric. I tried to do this: cd /usr/ports/math/gnumeric make distclean make make install It starts to install gnumeric and stops with this: gmake[4]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C/figures' gmake[3]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C/figures' gmake[3]: Entering directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[4]: Entering directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[4]: Nothing to be done for `install-exec-am'. /bin/sh ../../mkinstalldirs /usr/local/share/gnome/help/gnumeric/C for file in about-authors.xml about-history.xml about-license.xml analysis-complexNumbers.xml analysis-goalseek.xml analysis-overview.xml analysis-scenarios.xml analysis-simulation.xml analysis-solver.xml analysis-statistical.xml appendix-glossary.xml appendix-keybindings.xml bugs.xml compiling.xml configuration-localization.xml configuration-overview.xml configuration-plugins.xml configuration-preferences.xml configuration-toolbars.xml data-commentNlink.xml data-delete.xml data-entry-advanced.xml data-entry-external.xml data-entry.xml data-format.xml data-generate.xml data-insert.xml data-modify.xml data-filter.xml data-move-copy.xml data-overview.xml data-selections.xml data-types.xml documenting.xml extending-functions.xml extending-overview.xml extending-plugins.xml extending-python.xml files-formats.xml files-email.xml files-opening.xml files-overview.xml files-saving.xml files-ssconvert.xml files-textopen.xml files-textsave.xml getting-involved.xml graphics-drawings.xml graphics-images.xml graphics-overview.xml graphics-plots.xml graphics-widgets.xml gui-menus.xml gui-mouse.xml gui-other-elements.xml gui-overview.xml gui-toolbars.xml installing.xml legal.xml manual-usage.xml morehelp.xml printing.xml quick-start.xml welcome.xml workbooks.xml worksheets.xml functions.xml gnumeric.xml; do \ cp ./$file /usr/local/share/gnome/help/gnumeric/C; \ done if test figures; then \ /bin/sh ../../mkinstalldirs /usr/local/share/gnome/help/gnumeric/C/figures; \ for file in ./figures/*.png; do \ basefile=`echo $file | sed -e 's,^.*/,,'`; \ install -o root -g wheel -m 444 $file /usr/local/share/gnome/help/gnumeric/C/figures/$basefile; \ done \ fi test -z /usr/local/man/man1 || /usr/local/bin/gmkdir -p /usr/local/man/man1 install -o root -g wheel -m 444 'gnumeric.1' '/usr/local/man/man1/gnumeric.1' install -o root -g wheel -m 444 'ssconvert.1' '/usr/local/man/man1/ssconvert.1' install -o root -g wheel -m 444 'ssindex.1' '/usr/local/man/man1/ssindex.1' gmake install-data-hook gmake[5]: Entering directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' /bin/sh ../../mkinstalldirs /usr/local/share/omf/gnumeric for file in gnumeric-C.omf; do \ install -o root -g wheel -m 444 $file.out /usr/local/share/omf/gnumeric/$file; \ done install: gnumeric-C.omf.out: No such file or directory gmake[5]: *** [install-data-hook-omf] Error 71 gmake[5]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[4]: *** [install-data-am] Error 2 gmake[4]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[3]: *** [install-am] Error 2 gmake[3]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[2]: *** [install-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[1]: *** [install-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc' gmake: *** [install-recursive] Error 1 *** Error code 2 Stop in /usr/ports/math/gnumeric. *** Error code 1 Stop in /usr/ports/math/gnumeric. Is this a known bug? Should I post a PR? Apparently knowbody knows the answer here. I'm going to wait for another day and then post a PR. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: routing question
Laszlo Nagy írta: - ping from pc on 0.0 network to 192.168.2.138 Well, I cannot do this from here. Those computers are X terminals, they do not run inetd nor sshd. I cannot login from here and I cannot leave now, but I can do it later if necessary. - sysctl -a net.inet.ip.forwarding (on the GatewayComp) cassiopeia# sysctl -a net.inet.ip.forwarding net.inet.ip.forwarding: 1 cassiopeia# I can answer the missed question in about an hour. I'm sorry, not today. I'll try tomorrow. I did it. It was not working: could not ping 192.168.2.138 from 192.168.0.114. Then I added a static route -net 192.168.2.0 192.168.0.1 255.255.255.0 and it started to work. But here is something I still do not understand. The given gateway 192.168.0.1 was already the default gateway. Why do I need to add another gateway to the routing table to make it work? I have similar installations and specifing one default gateway did the work so far. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
gnumeric fails to install, 6.3-PRERELEASE
Enviroment: cassiopeia# uname -a FreeBSD cassiopeia.ronet 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #2: Tue Jan 15 04:41:41 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA amd64 cassiopeia# portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found. Fetching snapshot tag from portsnap2.FreeBSD.org... done. Latest snapshot on server matches what we already have. No updates needed. cassiopeia# portsnap update Ports tree is already up to date. The problem itself: portupgrade -a fails to install gnumeric. I tried to do this: cd /usr/ports/math/gnumeric make distclean make make install It starts to install gnumeric and stops with this: gmake[4]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C/figures' gmake[3]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C/figures' gmake[3]: Entering directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[4]: Entering directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[4]: Nothing to be done for `install-exec-am'. /bin/sh ../../mkinstalldirs /usr/local/share/gnome/help/gnumeric/C for file in about-authors.xml about-history.xml about-license.xml analysis-complexNumbers.xml analysis-goalseek.xml analysis-overview.xml analysis-scenarios.xml analysis-simulation.xml analysis-solver.xml analysis-statistical.xml appendix-glossary.xml appendix-keybindings.xml bugs.xml compiling.xml configuration-localization.xml configuration-overview.xml configuration-plugins.xml configuration-preferences.xml configuration-toolbars.xml data-commentNlink.xml data-delete.xml data-entry-advanced.xml data-entry-external.xml data-entry.xml data-format.xml data-generate.xml data-insert.xml data-modify.xml data-filter.xml data-move-copy.xml data-overview.xml data-selections.xml data-types.xml documenting.xml extending-functions.xml extending-overview.xml extending-plugins.xml extending-python.xml files-formats.xml files-email.xml files-opening.xml files-overview.xml files-saving.xml files-ssconvert.xml files-textopen.xml files-textsave.xml getting-involved.xml graphics-drawings.xml graphics-images.xml graphics-overview.xml graphics-plots.xml graphics-widgets.xml gui-menus.xml gui-mouse.xml gui-other-elements.xml gui-overview.xml gui-toolbars.xml installing.xml legal.xml manual-usage.xml morehelp.xml printing.xml quick-start.xml welcome.xml workbooks.xml worksheets.xml functions.xml gnumeric.xml; do \ cp ./$file /usr/local/share/gnome/help/gnumeric/C; \ done if test figures; then \ /bin/sh ../../mkinstalldirs /usr/local/share/gnome/help/gnumeric/C/figures; \ for file in ./figures/*.png; do \ basefile=`echo $file | sed -e 's,^.*/,,'`; \ install -o root -g wheel -m 444 $file /usr/local/share/gnome/help/gnumeric/C/figures/$basefile; \ done \ fi test -z /usr/local/man/man1 || /usr/local/bin/gmkdir -p /usr/local/man/man1 install -o root -g wheel -m 444 'gnumeric.1' '/usr/local/man/man1/gnumeric.1' install -o root -g wheel -m 444 'ssconvert.1' '/usr/local/man/man1/ssconvert.1' install -o root -g wheel -m 444 'ssindex.1' '/usr/local/man/man1/ssindex.1' gmake install-data-hook gmake[5]: Entering directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' /bin/sh ../../mkinstalldirs /usr/local/share/omf/gnumeric for file in gnumeric-C.omf; do \ install -o root -g wheel -m 444 $file.out /usr/local/share/omf/gnumeric/$file; \ done install: gnumeric-C.omf.out: No such file or directory gmake[5]: *** [install-data-hook-omf] Error 71 gmake[5]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[4]: *** [install-data-am] Error 2 gmake[4]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[3]: *** [install-am] Error 2 gmake[3]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[2]: *** [install-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc/C' gmake[1]: *** [install-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/math/gnumeric/work/gnumeric-1.8.0/doc' gmake: *** [install-recursive] Error 1 *** Error code 2 Stop in /usr/ports/math/gnumeric. *** Error code 1 Stop in /usr/ports/math/gnumeric. Is this a known bug? Should I post a PR? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: release or rc?
Jeff Laine wrote: Hi to all. Stupid question here ) I've cvsup'ed recently from 6.1 to RELENG_6_3. All seems to works pretty well right now. There are plenty of new drivers and fixes that I needed so much! Many thanks to developers! But now uname -a says it's 6.3-RELEASE. I thought it would be 6.3-RC2 . Is it still release candidate or not? Usually it means that this is a new RELEASE, but it is not announced until all mirrors and ftp sites have the right thing up. Whew, so now we have 7.0 release? :-) Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
routing question
Hi, I have this configuration: Internet - [Hw Router] (LAN1: 192.168.2.0/24) - [ 192.168.2.138 GatewayComp 192.168.0.1 ] -- (LAN2: 192.168.0.0/24) I would like to access a computer from LAN1 to LAN2. LAN1 machine is: FreeBSD office1adsl.dyndns.org 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Jan 12 10:40:27 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 office1adsl# ifconfig fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 192.168.2.114 netmask 0xff00 broadcast 192.168.2.255 ether 00:50:8b:f7:30:24 media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 office1adsl# netstat -nr Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.2.1UGS 0 1262107 fxp0 127.0.0.1 127.0.0.1 UH 0 127122lo0 192.168.0 192.168.2.138 UGS 04 fxp0 192.168.2 link#1 UC 00 fxp0 192.168.2.100:13:f7:26:42:69 UHLW2 108 fxp0 1188 192.168.2.138 00:50:fc:8c:f6:62 UHLW2 1469 fxp0143 192.168.2.255 ff:ff:ff:ff:ff:ff UHLWb 110044 fxp0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#3 UHL lo0 ff01:3::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 office1adsl# ipfw show ipfw: getsockopt(IP_FW_GET): Protocol not available GatewayComp machine is: cassiopeia# uname -a FreeBSD cassiopeia.ronet 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #5: Wed Aug 29 14:18:01 EDT 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA i386 cassiopeia# ifconfig myk0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=2bRXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255 ether 00:17:31:c3:d2:fe media: Ethernet autoselect (1000baseTX full-duplex) status: active rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 192.168.2.138 netmask 0xff00 broadcast 192.168.2.255 ether 00:50:fc:8c:f6:62 media: Ethernet autoselect (100baseTX full-duplex) status: active lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet 127.0.0.1 netmask 0xff00 cassiopeia# netstat -nr Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire default192.168.2.1UGS 016241rl0 127.0.0.1 127.0.0.1 UH 0 4600lo0 192.168.0 link#1 UC 00 myk0 192.168.0.121 00:02:a5:23:f3:d0 UHLW1 153132 myk0121 192.168.0.126 00:02:a5:e5:19:39 UHLW194435 myk0581 192.168.0.128 00:02:a5:c8:65:f8 UHLW1 230797 myk0130 192.168.0.130 00:02:a5:e0:e1:9c UHLW1 124633 myk0306 192.168.0.131 00:02:a5:e0:c8:f4 UHLW1 258495 myk0165 192.168.0.132 00:02:a5:08:76:85 UHLW1 161701 myk0957 192.168.2 link#2 UC 00rl0 192.168.2.100:13:f7:26:42:69 UHLW2 30rl0 1127 192.168.2.114 00:50:8b:f7:30:24 UHLW2 1876rl0 72 192.168.2.138 00:50:fc:8c:f6:62 UHLW1 70lo0 cassiopeia# grep gateway /etc/rc.conf gateway_enable=YES cassiopeia# ipfw show 1 29588 12691049 allow ip from any to any 2 0 0 allow udp from any to any 3 0 0 allow tcp from any to any 001009512 297448 allow ip from any to any via lo0 00200 0 0 deny ip from any to 127.0.0.0/8 00300 0 0 deny ip from 127.0.0.0/8 to any 65000 2172178 1136712828 allow ip from any to any 65535 1330 deny ip from any to any cassiopeia# Now, here is what I try from LAN1 machine: office1adsl# ping 192.168.0.132 PING 192.168.0.132 (192.168.0.132): 56 data bytes ^C --- 192.168.0.132 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss office1adsl# telnet 192.168.0.132 5900 Trying 192.168.0.132... ^C The same from the GatewayComp machine: cassiopeia# ping 192.168.0.132 PING 192.168.0.132
Re: routing question
Steve Bertrand wrote: Internet - [Hw Router] (LAN1: 192.168.2.0/24) - [ 192.168.2.138 GatewayComp 192.168.0.1 ] -- (LAN2: 192.168.0.0/24) I would like to access a computer from LAN1 to LAN2. Perform the following and post the results of: - ping from GatewayComp to pc on 0.0 network and a pc on 2.0 network cassiopeia# ping 192.168.2.114 PING 192.168.2.114 (192.168.2.114): 56 data bytes 64 bytes from 192.168.2.114: icmp_seq=0 ttl=64 time=0.171 ms 64 bytes from 192.168.2.114: icmp_seq=1 ttl=64 time=0.184 ms 64 bytes from 192.168.2.114: icmp_seq=2 ttl=64 time=0.229 ms ^C --- 192.168.2.114 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.171/0.195/0.229/0.025 ms cassiopeia# ping 192.168.0.132 PING 192.168.0.132 (192.168.0.132): 56 data bytes 64 bytes from 192.168.0.132: icmp_seq=0 ttl=64 time=0.260 ms 64 bytes from 192.168.0.132: icmp_seq=1 ttl=64 time=0.235 ms 64 bytes from 192.168.0.132: icmp_seq=2 ttl=64 time=0.133 ms ^C --- 192.168.0.132 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.133/0.209/0.260/0.055 ms cassiopeia# - ping from pc on 2.0 network to 192.168.0.1 office1adsl# ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1): 56 data bytes 64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.270 ms 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=0.456 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.178 ms ^C --- 192.168.0.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.178/0.301/0.456/0.116 ms - ping from pc on 0.0 network to 192.168.2.138 Well, I cannot do this from here. Those computers are X terminals, they do not run inetd nor sshd. I cannot login from here and I cannot leave now, but I can do it later if necessary. - sysctl -a net.inet.ip.forwarding (on the GatewayComp) cassiopeia# sysctl -a net.inet.ip.forwarding net.inet.ip.forwarding: 1 cassiopeia# I can answer the missed question in about an hour. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: routing question
- ping from pc on 0.0 network to 192.168.2.138 Well, I cannot do this from here. Those computers are X terminals, they do not run inetd nor sshd. I cannot login from here and I cannot leave now, but I can do it later if necessary. - sysctl -a net.inet.ip.forwarding (on the GatewayComp) cassiopeia# sysctl -a net.inet.ip.forwarding net.inet.ip.forwarding: 1 cassiopeia# I can answer the missed question in about an hour. I'm sorry, not today. I'll try tomorrow. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: goffice fails to install
Daniel Rucci írta: Ghirai wrote: Hello list, I had gnumeric installed, and wanted to upgrade. portupgrade gnumeric failed because it wanted a newer version of goffice. I deinstalled the old goffice and did make install. It fails here: I'd remove devel/goffice/work and try make; make install again . I have the same problem. I did remove devel/goffice/work but it did not help. (Ports tree was updated one day ago, and everything is being updated with portupgrade -a) Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: goffice fails to install
I'd remove devel/goffice/work and try make; make install again . I have the same problem. I did remove devel/goffice/work but it did not help. (Ports tree was updated one day ago, and everything is being updated with portupgrade -a) It has been fixed in the tree: http://docs.freebsd.org/cgi/mid.cgi?200801101834.m0AIYEX7060675 Re-cvsup/csup and try it again. It should work now. Power of free software. :-D ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Photo organizer for FreeBSD?
Hi, Can you tell me what kind of software should I use for organizing photos? Here are my requirements: - should be able to handle many photos (right now we are using Picasa on Ubuntu but for 100 000+ photos it is very slow and unstable) - should be able to save comments/annotations for the photos (I do not like Picasa because it uses a special database for that. I would like to have txt files saved in the same directory where the photos are, or something similar.) - should have a full text search feature (search for photos with given keywords) - should run on Windows and FreeBSD. (Actually, I would like to burn self-starting DVDs, so a Python or Perl based GUI would be great) Well, if there is a web server based solution, that is fine with me, I need to burn photos to DVDs and be able to use them. Can you recommend something from the ports tree? Or should I write my own program? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
skype cannot login
Hi All, My network configuration is a bit odd: Internet --- SMC Hardware Router (192.168.1.0/225.255.255.0) --- FreeBSD Gateway --- (192.168.0.0/255.255.255.0) --- Client computer - skype is running on the client computer. - The FreeBSD Gateway is a computer with two NIC cards, running natd, and named - The client computer is 6.3-PRERELEASE i386 using linux compatibility mode for skype I can access everything on the internet from the client. Here are some things that I tried: - ping - nslookup - smtp - imaps - www All the above work fine. However, when I try to login with skype, it tells me Logging in failed. When I try to register a new user, it tells me Register failed with friendly red letters. Do you have any idea what is the problem with my configuration? It might be that skype cannot do NAT traversal through two NATs? BTW, the client computer uses NFS to mount /, but I hope this is not related to the problem. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: remove X11
Jeff Maxwell wrote: I have X11 installed on a server 6.1. Is there an easy way to remove it all? Do I have to remove each package individually? Suppose you have installed the xorg server, you could remove it easily. But it also matters how you installed. If you did it from ports, you can probably cd /usr/ports/x11/xorg make deinstall I recommend that you read these manual pages: pkg_info pkg_add pkg_delete pkg_deinstall (might not be on your system) Best, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: skype cannot login
Rodolfo Pellegrino wrote: On Nov 28, 2007 2:29 PM, Laszlo Nagy [EMAIL PROTECTED] wrote: Hi All, My network configuration is a bit odd: Internet --- SMC Hardware Router (192.168.1.0/225.255.255.0) --- FreeBSD Gateway --- (192.168.0.0/255.255.255.0) --- Client computer - skype is running on the client computer. - The FreeBSD Gateway is a computer with two NIC cards, running natd, and named - The client computer is 6.3-PRERELEASE i386 using linux compatibility mode for skype I can access everything on the internet from the client. Here are some things that I tried: - ping - nslookup - smtp - imaps - www All the above work fine. However, when I try to login with skype, it tells me Logging in failed. When I try to register a new user, it tells me Register failed with friendly red letters. Do you have any idea what is the problem with my configuration? It might be that skype cannot do NAT traversal through two NATs? BTW, the client computer uses NFS to mount /, but I hope this is not related to the problem. Thanks, Laszlo Lazlo, I've found a similar problem, but in Skype there are a configuration in Tools that tells Skype the port to use. Try port 80 as I did and worked. All items in the tools menu are greyed out for me, except for Select Language. I see an item called Options... but it is not available. Skype version is: 1.2.0.18_API Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: remove X11
Do I have to remove each package individually? Suppose you have installed the xorg server, you could remove it easily. But it also matters how you installed. If you did it from ports, you can probably cd /usr/ports/x11/xorg make deinstall That just deletes the metaport (which is purely a list of dependencies), try: ports-mgmt/pkg_cutleaves I stand corrected. :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: xdmcp not working
Laszlo Nagy wrote: On a client machine I invoke this command: X -broadcast On the server side, gdm is runnning with [debug] enabled=true and this is logged: Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: decode_packet: GIOCondition 1 Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Received opcode QUERY from client : Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: gdm_xdmcp_host_allow: client-hostname is 192.168.0.139 Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Sending WILLING to Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: decode_packet: GIOCondition 1 Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Received opcode QUERY from client : Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: gdm_xdmcp_host_allow: client-hostname is 192.168.0.139 Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Sending WILLING to This is repeating continuously. On the client side, I see the X server with gray background, without windows. ipfw on the server side (running gdm): 00100 624 60642 allow ip from any to any via lo0 00200 0 0 deny ip from any to 127.0.0.0/8 00300 0 0 deny ip from 127.0.0.0/8 to any 65000 79294 34601476 allow ip from any to any 65535 0 0 deny ip from any to any IPFIREWALL is not enabled on the client (X server) side. What did I wrong? I posted this 5 days ago, and nobody answered. What can I do? Should I re-post after a week? (Nobody knows the answer, or - hopefully - the guy who knows the answer did not read the question?) (I tried to look for a FAQ but I could not find it here: http://lists.freebsd.org/mailman/listinfo/freebsd-questions ) Thank you, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: xdmcp not working
I read your email about gdm and xdmcp My setup for 2.20 does not work at all so I installed the old 2.18.3 from the ports, (I build the package from the ports) and it works just ok as before... I think there is a bug in the 2.20/2.21 xdmcp code... I had no time to fix ... Thank you for your quick answer. I did this: cd /usr/ports/x11/gdm /usr/local/etc/rc.d/gdm stop make deinstall pkg_add -r gdm I got many warning messages, but finally it started to work! Is this a know bug? Should we report it or is it already reported? Thank you, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: gdm-binary: Unable to connect to socket: hostname nor servname provided (SOLVED)
The problem was that gdm was compiled with IPv6 support but the kernel wasn't. This should not cause the gdm process to freeze and only exit with kill -9 right? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
xdmcp not working
Hi, On a client machine I invoke this command: X -broadcast On the server side, gdm is runnning with [debug] enabled=true and this is logged: Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: decode_packet: GIOCondition 1 Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Received opcode QUERY from client : Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: gdm_xdmcp_host_allow: client-hostname is 192.168.0.139 Nov 21 13:23:38 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Sending WILLING to Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: decode_packet: GIOCondition 1 Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Received opcode QUERY from client : Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: gdm_xdmcp_host_allow: client-hostname is 192.168.0.139 Nov 21 13:23:41 cassiopeia gdm-binary[1569]: DEBUG: XDMCP: Sending WILLING to This is repeating continuously. On the client side, I see the X server with gray background, without windows. ipfw on the server side (running gdm): 00100 624 60642 allow ip from any to any via lo0 00200 0 0 deny ip from any to 127.0.0.0/8 00300 0 0 deny ip from 127.0.0.0/8 to any 65000 79294 34601476 allow ip from any to any 65535 0 0 deny ip from any to any IPFIREWALL is not enabled on the client (X server) side. What did I wrong? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
gdm-binary: Unable to connect to socket: hostname nor servname provided
Hi All, Do you have any idea what is the problem with my settings? gdm places this message in /var/log/messages: Nov 20 12:19:05 cassiopeia gdm-binary[1167]: ERROR: Unable to connect to socket: hostname nor servname provided, or not known aborting... The local X server starts, but gdm is not accepting connections on TCP/177. This is the problem, because I want many clients connect to this computer with xdmcp. My ports tree was first downloaded via portsnap fetch three days ago. All ports have been compiled from this ports tree. My /usr/local/etc/gdm/custom.conf file has these modifications: snip [security] DisallowTCP=false [xdmcp] Enable=true /snip Here is some more information: snip cassiopeia# uname -a FreeBSD cassiopeia.ronet 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1: Thu Nov 15 17:19:45 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CASSIOPEIA amd64 cassiopeia# hostname cassiopeia.ronet cassiopeia# cat /etc/resolv.conf search ronet nameserver 192.168.0.1 cassiopeia# host cassiopeia cassiopeia.ronet has address 192.168.0.1 cassiopeia# ipfw show 00050 4320 696526 divert 8668 ip4 from any to any via rl0 00100 112 8560 allow ip from any to any via lo0 002000 0 deny ip from any to 127.0.0.0/8 003000 0 deny ip from 127.0.0.0/8 to any 65000 4320 696526 allow ip from any to any 655350 0 deny ip from any to any cassiopeia# pkg_info | grep gdm gdm-2.20.1_1GNOME 2 version of xdm display manager cassiopeia#ifconfig rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet 192.168.1.105 netmask 0xff00 broadcast 192.168.1.255 ether 00:0e:2e:8f:13:03 media: Ethernet autoselect (100baseTX full-duplex) status: active re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=1bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING inet 192.168.0.1 netmask 0xff00 broadcast 192.168.0.255 ether 00:1a:4d:7b:cf:d6 media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet 127.0.0.1 netmask 0xff00 cassiopeia# cat /etc/rc.conf moused_flags= moused_port=/dev/psm0 moused_type=auto moused_enable=YES gateway_enable=YES hostname=cassiopeia.ronet ifconfig_rl0=inet 192.168.1.105 netmask 255.255.255.0 ifconfig_re0=inet 192.168.0.1 netmask 255.255.255.0 firewall_enable=YES firewall_type=/etc/ipfw.conf local_startup=/usr/local/etc/rc.d gnome_enable=YES inetd_enable=YES # TFTP named_enable=YES # DNS cache, local DNS (diskless1XX.ronet) dhcpd_enable=YES # dhcpd enabled? dhcpd_flags=-q# command option(s) dhcpd_conf=/usr/local/etc/dhcpd.conf # configuration file dhcpd_ifaces=re0 # ethernet interface(s) dhcpd_withumask=022 # file creation mask nfs_server_enable=YES nfs_reserved_port_only=YES rcpbind_enable=YES mountd_flags=-r rpc_lockd_enable=YES rpc_statd_enable=YES natd_enable=YES natd_interface=rl0 natd_flags= /snip Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
mount -u -o rw / not working on NFS?
Hi All, I have a system where a diskless FreeBSD 6.3 i386 machine boots with pxeboot from a FreeBSD 6.3 amd64 machine. I have lines in /etc/fstab for the diskless machine like: # DeviceMountPoint FsType Options DumpPass 172.16.0.1:/usr /usrnfs rw 0 0 172.16.0.1:/mnt/d2/rootfs/root /root nfs rw 0 0 The machine boots from network nicely, then I can login as root and invoke these commands: mount -u -o rw / mount -u -o rw /usr mount -u -o rw /root There is no error message on the console, nor in the system log. However, this happens afterwards: diskless101#mkdir /aaa mkdir aaa: Read-only file system Question: if the remount did not succeed, why didn't it throw an error? If succeeded, why can't I write on the filesystem? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: permissions for www acting strangely
Steve Franks wrote: Few weeks ago, I installed apache22. Just wanted to put up some family photos. Whenever I tried to connect, got a apache doesn't have permisson to acess ~/. on this system or somesuch. The only way to get around it appeared to be a chmod 777 on my pic folder (no luck with 775!). Now I restored some stuff from a backup over my photos, and now 777 won't work either. Is there something fundamental about permissions I am totally missing? Look at your apache config file. Most probably, /usr/local/etc/apache22/httpd.conf. Look for User and Group options - it tells you the user and group apache is running under. Now look at the ownership of your files and directories. Apache needs to have rx on directories and r on file to read them. One common approach for this problem is to set the set group id bit on your folder containing your photos, and do chown user1:group1 -R yourfolder Where: user1- can be you (?) group1 - should be the group apache is running under Well, it is just a bad example. You need to develop your own strategy for security. They key is that you also need to check ownership. It is not enough to chmod, sometimes you need to chown. Best, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mount -u -o rw / not working on NFS?
diskless101#mkdir /aaa mkdir aaa: Read-only file system Question: if the remount did not succeed, why didn't it throw an error? If succeeded, why can't I write on the filesystem? The answer to the second portion is that you're mounted as a read only file system, so there's no write access. You were right. Actually I had /etc/exports file setup correctly, but I forgot to invoke killall -HUP mountd after the last change. My bad. :-( But... I'm still interested in the first portion. Why didn't I get an error message if the nfs share was read-only? There's an nfs permissions file you may need to edit, /etc/exports/, which controls whether NFS shares the file system as read only, read write, whether root can have root on the file system etc. The case is solved, but I still have this question. :-) Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to set maximum disk cache size?
Ivan Voras wrote: Bruce Cran wrote: Wojciech Puchar wrote: Laszlo wrote: Hi All, Is there a way (sysctl?) to tell FreeBSD (6.2 RELEASE) how many memory can it use for caching file data from disk? It might be that FreeBSD will use all available RAM, and reduce the cache it already does It may seem strange since it's generally accepted that you can never have enough disk cache, but FreeBSD apparently doesn't actually use all the free memory for caching. By default it uses up to 256MB for This is wrong. See http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/vm-fileio.html I read this too but I don't understand. Too difficult for me. So what is the answer? Do I need to set a sysctl or will FreeBSD use all available free memory for caching file data from disk? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to set maximum disk cache size?
Bruce Cran írta: Wojciech Puchar wrote: Laszlo wrote: Hi All, Is there a way (sysctl?) to tell FreeBSD (6.2 RELEASE) how many memory can it use for caching file data from disk? It might be that FreeBSD will use all available RAM, and reduce the cache it already does It may seem strange since it's generally accepted that you can never have enough disk cache, but FreeBSD apparently doesn't actually use all the free memory for caching. By default it uses up to 256MB for buffering/caching and there's no way it can use all available memory on i386 in machines with more than 1GB installed since the buffer/cache is allocated from KVM and the default maximum is 1GB. You can increase the amount of memory used, but it might not help - there's a thread on performance@ from 2004 which describes how it all works; see http://lists.freebsd.org/pipermail/freebsd-performance/2004-April/000785.html The information there is quite old now though so I don't know if things are done differently in 6.x. OK, and how about amd64 arch? The reason I ask this is that we have a big postresql database (over 3GB) and PostgreSQL rely on the OS for caching files in memory. This database is mostly read-only, so it would be nice to use all free memory for caching. Especially that this machine is the database server, it does nothing else. Now, it is an i386 but we are about to migrate to AMD X2, then we can put in 8GB of memory. But only if the OS can use if for caching. Otherwise it would be useless. Thank you for the link. That thread is quite old - things might have changed. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to set maximum disk cache size?
Hi All, Is there a way (sysctl?) to tell FreeBSD (6.2 RELEASE) how many memory can it use for caching file data from disk? It might be that FreeBSD will use all available RAM, and reduce the cache size whenever a program wants to allocate more memory. It is my hope, but I could not find the documentation. RTFM is fine with me but please give a keyword where I can start. :-) Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: TCP/IP questions
Bram wrote: Nikos Vassiliadis schreef: On Wednesday 07 November 2007 18:02:44 Bram wrote: Hi all, Can you change the timeout for a tcp connection ? I need to do the following: start a tcp connection , unplug the network cable (it's actually wifi but the effect is the same),send some data over the connection,wait 20 seconds , reinsert the network cable and just keep working. When you normally do this the connection will be dead. Is there a way in freebsd to change this ? are there parameters wich you can set so that the above would work (20 seconds without network can happen) ? TCP using the default FreeBSD settings, can survive 20 secs of inactivity. It can be an application forced timeout. What application/protocol are talking about? Nikos This is the more full explanation: I have setup a mobile pc to roam across our building. By reducing the dwell time and changing the channel list to only the channels I use roaming now works within ten seconds en sometimes within one or two seconds. The previous configuration was with fedora and there I was unable to get roaming time under 25 seconds. I do have one very annoying problem however and I have no idea how to solve it. The software uses psycopg (a python postgresql module) wich uses the standard system parameters for connections (At least that is what I think). -On fedora if the connection gets lost and it takes 30 seconds to remake a new connection operation is not interupted, after the 30 seconds you get the data you've been waiting for. -On freebsd however we get it a lot that the connection is lost, you can easily start a new connection wich works fine, but the old connection you wore using stops working and the app. hangs (If I had to guess I would say that roaming works about 95% of the time and the connection is lost about 5% of the time). I also get a lot of IFDOWN IFUP messages but this seems normal to me. I am now going to program something in twisted using udp to see if this works better. Did you try to use some RPC library? You can have the psycopg connection on the server side, and use it through an object broker. You will probably find an object broker that can even survive a TCP reconnect. Then you do not need to rewrite the whole program. Well, it is just an idea, may not be applicable for you. Regards, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sshfs - fuse: failed to open fuse device: No such file or directory
I have installed fusefs-sshfs. I tried this: sshfs [EMAIL PROTECTED]:/usr/fileshare/pub /usr/fileshare/pub fuse: failed to open fuse device: No such file or directory sshfs has no manual page, just sshfs -h but it did not help. I could not find useful information in the archives. I have tried env FUSE_DEV_NAME=/dev/fuse0 but did not help. I tried to follow http://fuse4bsd.creo.hu/doc/html_single_out/doc.html#hd001003003 but I do not have a kernel module for fusefs (why not???), so I cannot do this: kldload fuse_module/fuse.ko sysctl vfs.usermount=1 Output of uname -a: FreeBSD neptunus.msnet 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #6: Thu Aug 23 21:03:16 CEST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/NEPTUNUS i386 Ports tree was updated a week ago and portupgrade -a was completed. Please help me! Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sshfs - fuse: failed to open fuse device: No such file or directory
Make sure your dependencies are correct: $ ls /var/db/pkg|grep fuse fusefs-kmod-0.3.9.p1 fusefs-libs-2.7.0_1 fusefs-sshfs-1.8 Same here. :-) It should have been installed automatically. Not sure why it didn't. My mistake. I did not add fusefs_enable=YES to rc.conf, because I installed fusefs-sshfs from the ports tree. The ports system installed fusefs-kmod as a dependency for me, and of course I could not read the instructions at the end of the installation. In fact I did not even know that there is separate package for this. (What a pity that sshfs has no manual.) After starting the daemon, I get this error: neptunus# kldstat Id Refs AddressSize Name 17 0xc040 77e068 kernel 21 0xc0b7f000 15a60geom_mirror.ko 31 0xc0b95000 6810 snd_via8233.ko 42 0xc0b9c000 25828sound.ko 51 0xd0683000 3000 daemon_saver.ko 61 0xd2ffb000 e000 fuse.ko neptunus# sshfs [EMAIL PROTECTED]:/usr/fileshare/pub /usr/fileshare/pub fuse: bad mount point `/usr/fileshare/pub': Bad file descriptor neptunus# ls -l /usr/fileshare/ ls: pub: Bad file descriptor total 22 -rw-r--r-- 1 fileshare fileshare 767 Aug 30 19:41 .cshrc -rw--- 1 fileshare fileshare 214 Aug 30 20:12 .history -rw-r--r-- 1 fileshare fileshare 248 Aug 30 19:41 .login -rw-r--r-- 1 fileshare fileshare 158 Aug 30 19:41 .login_conf -rw--- 1 fileshare fileshare 373 Aug 30 19:41 .mail_aliases -rw-r--r-- 1 fileshare fileshare 331 Aug 30 19:41 .mailrc -rw-r--r-- 1 fileshare fileshare 797 Aug 30 19:41 .profile -rw--- 1 fileshare fileshare 276 Aug 30 19:41 .rhosts -rw-r--r-- 1 fileshare fileshare 975 Aug 30 19:41 .shrc drwx-- 2 fileshare fileshare 512 Aug 30 19:43 .ssh neptunus# This is interesting. Now I have a special node called pub in that directory and I cannot delete it. What is wrong? :-) Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sshfs - fuse: failed to open fuse device: No such file or directory
Looks like your mount point didn't exist before connecting. Shouldn't mount_sshfs check it? No idea how to get rid of that bad descriptor - neptunus# /usr/local/etc/rc.d/fusefs stop Stopping fusefs. kldunload: can't unload file: Device busy Neither do I. :-) but if you: mkidr /usr/fileshare/mnt sshfs [EMAIL PROTECTED]:/usr/fileshare/pub /usr/fileshare/mnt (assuming /usr/fileshare/pub is a directory on server fileshare) things should work correctly. I do hope fileshare isn't the local machine, cause then you're mounting the directory on itself using ssh/fuse..eew, messy. That is not the case. I used the same user names on both machines with the same uid, so I do not need to use uid mapping. I have to find out how to get rid of that device node, then I'll try again. Thank you Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ssh2 login with public key - not working
Hi, I have to boxes, both are FreeBSD 6.2 -p7. I did this: [EMAIL PROTECTED]: ssh-keygen -t dsa mv ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys chmod 640 ~/.ssh/authorized_keys scp ~/.ssh/id_dsa [EMAIL PROTECTED]:~/.ssh [EMAIL PROTECTED]: mkdir .ssh cat .ssh/config host mybox hostname box1 identityfile /home/user2/.ssh/id_dsa compression yes cipher blowfish protocol 2 ^D Then I try this: ssh -l user1 mybox but it asks for a password. I also tried this: ssh -v -v -v -l user1 mybox This is what I see (just a part of it): debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug3: check_host_in_hostfile: filename /usr/user2/.ssh/known_hosts debug3: check_host_in_hostfile: match line 1 debug1: Host 'box1' is known and matches the DSA host key. debug1: Found key in /usr/user2/.ssh/known_hosts:1 debug2: bits set: 526/1024 debug1: ssh_dss_verify: signature correct debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /usr/user2/.ssh/id_dsa (0x8032410) debug1: Authentications that can continue: publickey,keyboard-interactive debug3: start over, passed a different list publickey,keyboard-interactive debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Offering public key: /usr/user2/.ssh/id_dsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey,keyboard-interactive debug2: we did not send a packet, disable method debug3: authmethod_lookup keyboard-interactive debug3: remaining preferred: password debug3: authmethod_is_enabled keyboard-interactive debug1: Next authentication method: keyboard-interactive debug2: userauth_kbdint debug2: we sent a keyboard-interactive packet, wait for reply debug2: input_userauth_info_req debug2: input_userauth_info_req: num_prompts 1 Password: What is the problem? I could do the same with other computers/users without problem. I'm sure that I do something wrong. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ssh2 login with public key - not working
Hi Laszlo. Isn't it just a matter of adding PasswordAuthentication no to /etc/ssh/sshd_config? [At the server end, Captain Obvious prompts me.] I'll check one of my old systems later but I think that's it... Well, I have other users using public keys for logging in so the sshd config must be correct. This is the only user that doesn't work. I can login by typing in the password but I need to login automatically. Best, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ssh2 login with public key - not working
Have you checked /var/log/auth.log on machine to which you are trying to connect? It contains nothing except: Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user2 from 81.1.19.245 port 54369 ssh2 Now here is what I did: 1. I deleted user2 with rmuser user2, but I did not delete its home directory 2. I re-created the user Now it is working! It was so confusing that I tried another thing. Then I tried this with [EMAIL PROTECTED]: rm -fr /root/.ssh cp ~user2/.ssh /root chown -R root:wheel /root/.ssh chmod 700 /root/.ssh chmod 600 /root/.ssh/* chmod 700 /root ssh -l user1 mybox Same problem - not working. Unfortunately, auth.log on box1 only prints a line when it accepts a public key. There are no auth failures because the problem occurs when ssh tries to determine the type of the authentication. Do you have any idea why the recreation of the user solved the problem? And how it is possible that using exactly the same ssh config, the root user cannot login with a public key? (Obviously, I cannot recreate the root user) Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ssh2 login with public key - not working
Laszlo Nagy wrote: Have you checked /var/log/auth.log on machine to which you are trying to connect? It contains nothing except: Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user2 from 81.1.19.245 port 54369 ssh2 Sorry it was: Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user1 from 81.1.19.245 port 54369 ssh2 I cannot use real user and host names and I made a mistake here. L ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ssh2 login with public key - not working (solved)
rm -fr /root/.ssh cp ~user2/.ssh /root chown -R root:wheel /root/.ssh chmod 700 /root/.ssh chmod 600 /root/.ssh/* chmod 700 /root ssh -l user1 mybox Problem solved. I forgot to edit /root/.ssh/config I still not sure why user recreation worked, but I don't care anymore. Thank you for all your help! Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Flash
Adobe. For example it runs on many platforms where Adobe's Flash doesn't run. It will also perhaps soon hit the iPhone. Useless to say Adobe are not so happy about it ;) We are also not happy about that Adobe ignores other platforms. Blame it on them. :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Share folder over internet
It is hardly the freebsd community's fault that Skype / Ebay doesn't create a FreeBSD binary. Actually, the linux compatibility layer is one of the great things in FreeBSD. Of course, you may be having other issues we can't know about until you kindly tell us (on a separate thread pls...) Yes, I agree. I did not tell it is the fault of the FreeBSD community. However, when you need to install an application server for a couple of diskless X terminals, you should not use FreeBSD. I'm serious. There are some very important applications that just don't work. :-( ::shrug:: each solution needs to be considered for the problem. It is, after all, your server, feel free to install linux or pay for MS licenses... (btw, have ever actually used windows file sharing over a slow link ? whatever 'ease of use' you *may* have gain (and i'm not sure how much of that there really is) will probably be lost when you consider other factors...) Well, yes. You are right about these factors. In my case, it is almost too late to migrate to Linux. It would cost too much and there would be other disadvantages too. For some things, FreeBSD is definitely better. Best, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Flash
Zbigniew Komarnicki wrote: Hello, can I ask you for help, how to set up flash in Firefox natively, step by step? The only native solution I know of is gnash but last time I tried it it was very unstable and very slow. I would rather try linux-flashplugin7 and linuxpluginwrapper instead. Here is a step-by-step guide for you: http://www.bsdspot.com/blog/archives/31 Best, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Flash
The flash-related questions/answers appeared probably 10 or 15 times on various FreeBSD lists in last 3-4 months. These threads contain everything related to installation problems, warning messages and other problems. In total, if Flash7 and Acrobat plugins don't work inside native browsers _flawlessly_, then user does something wrong. Oh well, yesterday I had a machine where I installed flash plugin 7 and linuxpluginwrapper but it did NOT work until I made symlinks to .so files (as given in the aforementioned article). The ports tree was up to date, so I'm really not sure what I did wrong. :-) Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Share folder over internet
Hi All, Here is a problem that I cannot solve. I have two offices with two file servers (FreeBSD 6.1). Clients are accessing files over samba and nfs (on the local server). I would like to share some directory structures between the two offices. Originally I was thinking about sshfs (mount_sshfs) but I cannot compile fuse from the ports. NFS cannot share subdirectories, only whole filesystems and it is not secure to use over the internet. Security inside the LAN is not important. Most of these folders are put everything into it type, e.g. anyone can do anything with them. The users usually store doc, pdf, xls/gnumeric and txt files in them. I'm not interested in solutions where the end user needs to use a special program to access the files. For example, gftp is not an option. This is because these users sometimes does not know what a file is. I need nautilus integration, and mounting/mapping so the files can be opened from any program using file/open. What should I use? Thank you, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Share folder over internet
You need to create a VPN connection between your two offices. You can do this in a variety of ways, but probably the best solution would be to have static IP's for both offices and a router that has hardware support for VPNs at each office. You can connect the two offices via a VPN connection from router to router. Well, we do not have static IP addresses, and the routers does not support VPN. Also I do not like the idea of VPN because I feel that would forward more packets than needed. I may be wrong. :-) Although we do not have static IP, we have DDNS. Is it possible to do VPN from one FreeBSD box to another and then what? Mount nfs? Mount smb? I can mount a remote smb volume then share it with another smb server, but it looks wreid to me and I'm also concerned about speed. I believe smb is not optimized for speed. If I have to use VPN then I would like to use the most traffic-efficient method over VPN. Can you suggest something? Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Share folder over internet
Peter Svec wrote: Hello Laszlo, you don't need static IP address if you use hamachi. It is zero configuration VPN tool, which creates peer-to-peer tunnel between two host (with static or dynamic addresses). The problem is, that hamachi isn't in the ports yet. Take a look at http://www.freebsd.org/cgi/query-pr.cgi?pr=112982 and https://secure.logmein.com/products/hamachi/vpn.asp peter Sounds great. I'll ask my ISP about the fix IP though. Thank you for your answers! Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Share folder over internet
Unless I'm very confused, BSD NFS can export directories and directory trees in addition to filesystems. See export(5). Internet security should be attainable with an appropriate firewall configuration that allows the servers to only talk to each other. IMHO you can export directory trees (-alldirs option), but if you do that then you can list each file system in /etc/exports only once. So it is impossible to export some (different) directories from a filesystem, but not others. But again, this is not a big problem when I use a VPN connection between the two file servers only. Coda is looks VERY interesting! :-) Two key features: high performance through client side persistent caching continued operation during partial network failures in server network Promising. I'm going to try it and let you know how it goes. Best, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Share folder over internet
I often suggest Coda (ports/net/coda6_server coda6_client) for this sort of situation, but it has been so many years since I've used it myself that I don't know what state it is in these days. I hope the documentation has improved. Note the client runs on the local file server, so you don't need to change anything on end-users' workstations. If it really has client side caching then it can be better than NFS. However, I just found this on their official website: snip There were several sweeping changes in freebsd, and in the case where the developers didn't exactly know how to solve it for Coda, they just removed the related code. For instance, they don't support vget with a device/inode number pair anymore, so they simply removed the complete coda_open codepath. As a result it is impossible to open any files or directories in /coda with the current fbsd kernel module. /snip Now I'm starting to loose my enthusiasm about FreeBSD! - sshfs works for Linux, but not for FreeBSD, although ssh is open source and well documented. The guy who developed it says that he could not implement fuse very well because the source code of the FreeBSD kernel is a mess, can this be true? - WEB-DAV fs works for Linux but not for FreeBSD, although DAV is well documented. Why? - Coda client does not work correctly because of... lack of kernel developers? Most suprisingly, Gnome 2.18 and nautilus CAN use WEB-DAV (both http and https), and it can also mount sshfs. But this is useless for me because I cannot really mount them, they are available in gnome vfs only. I see signs... is it really the kernel that prevents me from doing what I need to do? Today I also had trouble with mozilla flashplugin. It simply does not work, except with linux-firefox, but then Java stops working. Unfortuntely, I need to use both of them together. Skype does not work very well with FreeBSD, only in linux compat mode etc. I like the idea of having only one, consistent distribution, and having a ports tree and I see other advantages of FreeBSD but I'm starting to think that using it as an application server was a bad idea from my part, simply because the lack of working - otherwise widely used - applications. Sally... I'm sorry, it is late night here and I failed to solve 5 problems today. All of them could have been solved with one click on Linux or even M$ Windows. :-( Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Hardware monitor needed
Hi, My FreeBSD 6.2 server restarts suddenly once or twice a day. I believe it is because the processor is overheated, but I'm not sure. Is there a way to check this from software? I would like to install a hardware monitor program that can log out processor temperature in every minute. The mainboard is ASUS P5LD2, if that matters. Is there a software out there that can do this for me? Of course I could buy a new processor fan (or a water cooling system) but I do not want to spend money before I make sure that is the root of the problem. Thanks, Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hardware monitor needed
Check out healthd or mbmon. One or other has worked OK for me on other Asus boards, and both are in ports (sysutils/ I think). If you have ACPI and your board supports thermal zones, then you can check those. sysctl -a | egrep 'acpi.*therm' or sysctl -a | egrep 'acpi.*tz' one or other should be a good enough incantation. None of my ASUS mobos do have thermal zones so I can't be sure -- it's much more commonly supported in laptops. Or just sysctl -a | egrep acpi I do not have anything that looks like temperature. Is it still possible to use healthd or mbmon? By the way, I'm 100% sure that the problem is with the CPU load. Here is the output of top: PID USERNAMETHR PRI NICE SIZERES STATE C TIME WCPU COMMAND 2266 monica1 1100 16268K 11088K RUN1 17:22 22.85% gnome-volume-manage 1258 edit 1 1100 16268K 11000K RUN1 19:08 22.75% gnome-volume-manage 1658 mariann 1 1090 16320K 11260K RUN1 18:30 22.56% gnome-volume-manage 1528 mtamas1 1090 16268K 11068K RUN1 18:49 22.41% gnome-volume-manage 1244 timea 1 1100 16268K 11000K CPU1 1 19:07 22.36% gnome-volume-manage 1251 monica1 1100 16268K 11000K RUN1 18:44 22.07% gnome-volume-manage 1268 zoltan1 1090 16268K 11000K RUN1 18:52 21.78% gnome-volume-manage This server is an X terminal server and the users connect to it with 'X -query ip'. Can I do something to reduce the load on the CPU? gnome-volume-manage uses 99% of the CPU, constantly - why? --Alex PS Many disks which support SMART can display their apparent temp as one of the SMART parameters (see sysutils/smartmontools). Not 100% trustworthy, but better than nowt. I'd rather fry the processor than a disk :-) I'm not affraid of that. I have gmirror-ed disks and they are much cheaper than the processor ( E6320 ). Thank you! Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: rdesktop: segmentation fault under xorg 7.2
Anders Troback wrote: On Wed, 06 Jun 2007 20:06:52 +0200 Laszlo Nagy [EMAIL PROTECTED] wrote: Jan Henrik Sylvester wrote: [EMAIL PROTECTED] wrote: On Tue, 5 Jun 2007, Jan Henrik Sylvester wrote: For me, rdesktop works -- I have all my ports upgraded... ldd `which rdesktop` says? /usr/local/bin/rdesktop: libcrypto.so.4 = /lib/libcrypto.so.4 (0x280a9000) libX11.so.6 = /usr/local/lib/libX11.so.6 (0x2819c000) libc.so.6 = /lib/libc.so.6 (0x28282000) libXau.so.6 = /usr/local/lib/libXau.so.6 (0x28367000) libXdmcp.so.6 = /usr/local/lib/libXdmcp.so.6 (0x2836a000) librpcsvc.so.3 = /usr/lib/librpcsvc.so.3 (0x2836f000) Jan Henrik For me, this is a bit different: %ldd `which rdesktop` /usr/local/bin/rdesktop: libcrypto.so.4 = /lib/libcrypto.so.4 (0x280a) libX11.so.6 = /usr/local/lib/libX11.so.6 (0x28193000) libc.so.6 = /lib/libc.so.6 (0x28279000) libXau.so.6 = /usr/local/lib/libXau.so.6 (0x2835e000) libXdmcp.so.6 = /usr/local/lib/libXdmcp.so.6 (0x28361000) librpcsvc.so.3 = /usr/lib/librpcsvc.so.3 (0x28366000) Although the file names are the same. Is this a problem? Laszlo Hi, I have the same problem here after the xorg upgrade! Nobody answered to this for a while, so can we consider this as a bug? Where should I send a bug report? Laszlo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]