Re: portmanager -u returns fatal error MGdbAdd error: attempt to place null data into record halted
Titus Barik wrote: What do I do to fix this and any ideas on what could have caused this problem in the first place? Replying to myself, but the problem seems to have been resolved by re-building the ports tree. I did a 'portsnap extract' instead of the usual 'portsnap update'. Titus -- Titus Barik ([EMAIL PROTECTED]) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache 1.3 Problems
On Tue, 16 Sep 2008 17:48:48 +1000 (EST) [EMAIL PROTECTED] wrote: On Tue, 16 Sep 2008 [EMAIL PROTECTED] wrote: From a digest post, trimming a bit .. After 3 years, by apache 1.3 server quite working. It shows a PID, it's running, it can be stopped and restarted, and from FreeBSD the home page comes up using lynx http://andrsn.stanford.edu But from outside, it times out. I have run the texts for valid configuration (I haven't changed anything) and I actually rebooted the machine. The texts are okay and rebooting doesn't help. The machine is pingable. It's running FreeBSD 5.5 or so. What to do next? Annelise ___ Hmm.. Can it connect to the outside world at all itself? Has the network changed at all recently? Did the server restart at all and if so are the firewall rules (if any) permitting external traffic? You could check the apache logs to see if any external connections are getting through to the box at all, too. Is the lynx test connecting from the same box to itself? or from another FreeBSD box..? From the same box to itself. What about from other boxes 'inside' your domain? -- Also, what Chris said would cover most of these. :) Cheers, Mark Chris wrote: Sounds like a (probebly external) firewall issue. Just because pings get through, doesn't mean the http requests are. No firewall on my machine. No, but there are (hopefully :) Stanford firewall/s between you and the outside world. Might they have upgraded policy about allowing inbound port 80 connections to boxes not known/expected to be running servers? I'd run ngrep or tcpdump on the console and double-check that the packets are actually making it to the server. Also, do a sockstat -4 and make sure it's listening on the approprate IP. Thank you both-- sockstat -4 show that it's listening on *:80, which is right. Neither tcpdump (assuming I'm reading it correcting) nor httpd-access.log shows any tcp packets at all getting through except when lynx is run from the machine on which apache is running after Sept 12 at 2:12 a.m. Thus, I assume packets are not getting to the server, except when requested from the local machine. Sounds like your machine is setup ok, but inbound tcp setup packets are apparently getting blocked upstream. email and ftp are working--and I can log into the machine remotely-- so stuff is getting out and in. tcpdump shows a lot of other activity, Specific like 'tcpdump -pn -i $iface tcp port 80' quells other noise. So, I'm stumped. Annelise Ok, ping and DNS look fine. I (also) can traceroute your box this far: 14 bbrb-isp.Stanford.EDU (171.64.1.155) 193.489 ms 193.562 ms 195.603 ms 15 * * * 16 * * * 17 * * * 18 * *^C I don't know whether you allow inbound traceroutes? but the question now is, how many routers between you and and bbrb-isp.Stanford.EDU ? Can you show us a 'traceroute bbrb-isp.Stanford.EDU' from your machine? This might sound like an odd test, but try configuring it to sit on a port other than 80 (8080, for example) and seeing if you get the same problem there. Cheers, Mark If you're thinking what I'm thinking, 8080's just as unlikely to work :) cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 2 logical interfaces in same subnet, problems...
Thanks Oliver, I didnt have a test system to play with and I didnt find the ifconfig man pages very clear and it didnt specify if there could be more than one alias per interface (I already had one configured) and I didnt want to change the IP of the existing alias. But seeing that you have mutliple aliases I gave it a go and it worked fine! Thanks a lot! cheers Andy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Strange hang with dummynet
On 16 Sep 2008, at 14:38 , Nikola Kne?evi? wrote: I'm running FreeBSD 7.1-PRERELEASE with custom kernel on my box, and when I did: kldload dummynet kldload ipfw the machine just hanged - I couldn't access it over ssh, and current sessions were blocked. This happens also with GENERIC. I didn't touch anything related to ipfw or dummynet's configuration (that I know). Any thoughts? How can I debug this? To reply to myself, for future reference :) dummynet loads ipfw, which has the default rule of drop all. Thus machines shows as inaccessible/unresponsive. Cheers, Nikola ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: x3550 ServeRAID-8k and FBSD 7, group limit
It does exiteventually. It just takes a ridiculously long time. That is Fixed in 7-STABLE so should be fine in 7.1 as well. Gian Paolo Buono wrote: Hi, I have a problem when run /usr/local/sbin/arcconf GETCONFIG 1 LD Controllers found: 1 -- Logical device information -- Logical device number 0 Logical device name : Drive 1 RAID level : 1 Status of logical device : Optimal Size : 69890 MB Write-cache mode : Not supported Partitioned : Yes Protected by Hot-Spare : No Bootable : Yes Failed stripes : No Logical device segment information Segment 0: Present (0,0) Segment 1: Present (0,1) Command completed successfully. ^C the output of command is correct but don't exit and I must press control^C. I want exit without press control^C, have you suggestions to resolve this problem ? Bye Gian Paolo On Mon, Sep 15, 2008 at 10:08 PM, Chris St Denis [EMAIL PROTECTED] wrote: Ivan Voras wrote: Yury Michurin wrote: We are currently considering to purchase IBM x3550 with ServeRAID-8k, in order to run FreeBSD 7 with RAID5, but it is very unclear from what I've saw on the Internet, whether the driver support on FreeBSD is stable enough for production use, I've never had problems with it, and I didn't heard of any serious problems others had. aac driver doesn't seem to notice if a drive fails. You'll want to keep an eye on with it arcconf run via crontab or something as a workaround. I use /usr/local/sbin/arcconf GETCONFIG 1 LD | egrep '(name|Status)' Seems to work fine with FreeBSD other than that. Only other issue I've had with it, is it takes about 4 minutes to load it's bios in post. and I've left with many questions unanswered, with which I hope you'll be kind to help me =) 1. Is FreeBSD supports the device right after install or I need to recompile the kernel? It's available by default. This is the aac driver: http://www.freebsd.org/cgi/man.cgi?aac 2. Is tools for manage the RAID available? If no, how you rebuild the array on drive failure (and how to detect it)? You can use the aaccli management tool : http://www.freshports.org/sysutils/aaccli/ aacli doesn't work with ServeRAID-8k. But sysutils/arcconf does. I think it's read only tho. I've just remember i had another unanswered question, not related to x3550: 3. When I've used FreeBSD 6.2, it had a limitation, that a user can be member only of N groups (don't remember exactly, i think N = 15), however i couldn't find any official documentation of that issue, nor if it still exists in FBSD 7, so is it? =) It still exists and AFAIK it won't be changed soon because of the need to support NFS. You could try raising the issue again on the [EMAIL PROTECTED] -- Chris St Denis Programmer SmarttNet (www.smartt.com) Ph: 604-473-9700 Ext. 200 --- Smart Internet Solutions For Businesses ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Being a shell provider - good business?
CyberLeo Kitsana wrote: Ted Mittelstaedt wrote: But getting back to the discussion - the OP's friend seemed like he -wanted- to get involved in some rather Bad People. I'm not entirely sure, but I can't find anyone in this thread whose actually talked with the OP's friend other than the OP themselves, who seems to be biased against the idea in the first place. I'm not sure how such an assertion can be safely made under the circumstances. Personally, I've always been looking for ways to secure the shell service I provide, for things such as webspace file transfer and MUCK/MUD gameserver hosting. I dislike providing FTP to people, as it's so insecure and firewall-unfriendly, but chrooting SSH/SFTP in a suitable manner is something I've never been able to successfully complete. I had something going with Busybox on a test linux box, but alas, compilation fails horribly on FreeBSD for reasons not adequately explored. there was some work at getting busybox working for freebsd, see http://info.iet.unipi.it/~luigi/FreeBSD/ So, for now, I stick with judicious use of UID-based firewall rules, careful application of unix file permissions, the security.bsd.see_other_uids sysctl, and knowing personally each person I host, so I can personally deal with them if they venture into not-so-nice territory. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Multiple installation of one ports
Hi everyone, I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. Any suggestions? Thank you for your time, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
disk writer utility
Hello! What is your favorite disk writer utility? (under X) Laci ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FB on 3BSD
So if you rebuild your fluxbox port with the default settings, transparency should work fine. And that is exactlyt why I am asking - it doesnt! As reported issuing a plain make results in fluxbox -info output of -RENDER ie. it is NOT included !!! Of course the first thing I did before my posts was to test transparency which didnt work which led me to the list! Any more suggestions appreciated though :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: kernel compile e branches
On Tue, Sep 16, 2008 at 02:40:51PM +0200, Gian Paolo Buono wrote: Hi, I have upgrade my distro and kernel..with following steps: 1) cd /usr/src ; make update 2) edit /usr/src/sys/i386/conf/GENERIC file for the kernel I usually copy the GENERIC config and edit the copy. That way, I always have a GENERIC config to refer/revert to, should the need arise. 3) make buildkernel KERNCONF=GENERIC 4) make installkernel KERNCONF=GENERIC You don't need to specify KERNCONF if you are using GENERIC. If you make a copy and build from it, you can set KERNCONF in /etc/make.conf 5) shutdown -r now 6) mergemaster -p 7) make installworld 8) mergemaster -cvsi 9) shutdown -r now now my kernel is FreeBSD 7.1-PRERELEASE. For server in produciton which is the branches reccomended ? RELEASE ... STABLE ... For production use, go with RELEASE. It is very stable, with the only changes being seciruty or other critical updates. STABLE, on the other hand, is a somewhat more conservative development branch than CURRENT, so is prone to change more than you might expect from day to day. However, it is very rare that anything is actually broken. And where set the branche to use ? This is determined by settings in your csup config file. This could be in /usr/share/examples/cvsup/standard-supfile, but I make a copy and put it in /etc/csup.system. Then set these variables in /etc/make.conf: SUP_UPDATE= YES SUPFILE= /etc/csup.system SUPHOST= cvsup.countrycode.freebsd.org # Pick a cvsup host near to you SUP= /usr/bin/csup (These allow you to cd /usr/src make update) Now check /etc/csup.system. Look for RELENG_7: *default tag=RELENG_7 # This will get you STABLE. The tag won't change # during the lifetime of the 7 branch. or *default tag=RELENG_7_0 # This is for 7.0 RELEASE. When 7.1 RELEASE is # announced, change it to RELENG_7_1 to keep up. HTH Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpu0onmfTGZL.pgp Description: PGP signature
Re: Multiple installation of one ports
Hi Martin, You want to install multiple sites on one server or multiple servers? If the former, there is a solution for you at: http://drupal.org/getting-started/6/install/multi-site I have yet to try this, but will likely give it a shot some day... If the latter, are your other systems FreeBSD? If so, (and forgive me if I'm telling you something you already know) you simply need to run portupgrade/portaudit on those systems. If, for example, it's some Linux distrobution, see if it has a package management software that will handle installing and upgrading Drupal. In all cases, portupgrade will not do everything for you. You still may have to run update.php sometimes if a particular update needs to have databases changes. Genuinely hope this helps! :) Gavin Spomer Systems Programmer Brooks Library Central Washington University FreeBSD [EMAIL PROTECTED] 09/16/08 10:31 AM Hi everyone, I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. Any suggestions? Thank you for your time, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple installation of one ports
Gavin Spomer a écrit : Hi Martin, You want to install multiple sites on one server or multiple servers? One server only If the former, there is a solution for you at: http://drupal.org/getting-started/6/install/multi-site That would solve my problem in that case... I have yet to try this, but will likely give it a shot some day... If the latter, are your other systems FreeBSD? If so, (and forgive me if I'm telling you something you already know) you simply need to run portupgrade/portaudit on those systems. If, for example, it's some Linux distrobution, see if it has a package management software that will handle installing and upgrading Drupal. In all cases, portupgrade will not do everything for you. You still may have to run update.php sometimes if a particular update needs to have databases changes. Ok but my question was more focusing on the handling of multiple installation of the same port by portupgrade. If it's possible to install the same port multiple times, how is portupgrade going to deal with this? Thanks for your response! Martin Genuinely hope this helps! :) Gavin Spomer Systems Programmer Brooks Library Central Washington University FreeBSD [EMAIL PROTECTED] 09/16/08 10:31 AM Hi everyone, I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. Any suggestions? Thank you for your time, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 7 server in hang
Gian Paolo Buono [EMAIL PROTECTED] writes: Hi, I have on a server ibm 3650 FreeBSD 7.0-STABLE and the proccess that running are nagios-3.0.2, apache-2.2.8 and heartbeat-1.2.5_3; random after some day machine becomes semi-dead, the ping respond but any stack (ssh,http) don't work and heartbeat don't switch the resources I can't loggon and I must reboot. In the syslog there isn't any message for trobleshotting the problem. Any idea ? Sorry for my english Best Regards Try keeping an eye on top(1); it may even give a hint after it stops updating. If that doesn't help, you may need to break to the kernel debugger (details in developers' handbook). -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple installation of one ports
On Tue, 16 Sep 2008 14:18:54 -0400, FreeBSD [EMAIL PROTECTED] wrote: Ok but my question was more focusing on the handling of multiple installation of the same port by portupgrade. If it's possible to install the same port multiple times, how is portupgrade going to deal with this? It's possible to install the same port into differenz directories using a different prefix. Usually, ports are installed into /usr/local, including the proper subtrees, such as bin/, lib/ or share/. NB that it may happen that by forcing another prefix than /usr/local results in programs using the wrong libs. Furthermore, you need to specify a different bin/ path to run the application. Another option would be jails - each port installed and running in its own jail at the internal standard locations. But as you may see and already know, it's a bit complicated. :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple installation of one ports
FreeBSD [EMAIL PROTECTED] 09/16/08 11:19 AM Ok but my question was more focusing on the handling of multiple install the same port multiple times, how is portupgrade going to deal with this? Thanks for your response! Martin I'm *somewhat* of a FreeBSD newb, but I don't think you can do multiple installs of the same port... can you? I'd like to know. If not, then the multi-site method outlined at the Drupal site is what you want. That method uses the same files (not another instance of each file) for every Drupal site. For example, if you have 3 Drupal sites running on the same server, they all use the same index.php file. So when you do a portupgrade of Drupal, then all three of your Drupal sites will be upgraded at once. Let me know if this doesn't make sense. - Gavin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD CVS tag
Polytropon [EMAIL PROTECTED] writes: I'm not sure how these are supported in the cvs version shipped with FreeBSD, but I'm pretty sure the answers are the same, and the functionality is supported standard in recent versions of CVS. My questions: 1. How is it possible to include a sub-path in the CVS file field, but not the absolute path of the file? I think you configure that with $CVSHeader$ instead of $Header$. Or maybe the other way around... 2. How is it possible to change $Id$ or $Header$ to a custom string, let's say the name of a company or a project, by not breaking (!) the CVS compatibility (no s/Header/Foobar/). The CVSROOT/config file supports LocalKeyword. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Port for drawing directed graphs?
Polytropon wrote: On Mon, 15 Sep 2008 10:31:57 -0400, John Almberg [EMAIL PROTECTED] wrote: I am working on some software that must, as it's final output, produce a printout of a directed graph... nodes, connected by directed links. The printout could be generated by a postscript file, jpg, whatever. Does anyone know of a utility (in ports?) that can take a data set (for example, a two dimensional array that defines the nodes and the links between them), and produce a printable graph? Any help much appreciated. I think it's possible to use LaTeX for this, as long as you're willing to provide the document basis, put an \include for the drawing contents and then have a small processing script that generates this file. There is some LaTeX document class that supports graphs, I think. The output would be PS or PDF. TeX and LaTeX usually come with a tool called METAPOST, which reads instructions to draw a picture and outputs a postscript file. This is definitely the best choice to produce figures t put in LaTeX document, but may be useful in solo operation too. The language for METAPOST is adapted to notations like z1 = 1/2(z2 + z3) or z1l = z1 + left and z1r = z1 + right, so it's a really unusual stuff but one gets quickly accustomed with the basics. There is many web pages providing tips for meta post, I also recommand a paper written by André Heck on the subject. -- Michaël ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple installation of one ports
FreeBSD wrote: Hi everyone, I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. Any suggestions? This is an interesting problem. The FreeBSD ports system does not at present allow multiple installations of the same port, even into different ${PREFIX}es. This make sense for most of the software dealt with by the ports system, but in the specific case of web based applications having the same application installed into multiple locations in the same web tree is a perfectly reasonable thing to want to do. Here are some ideas as to ways you might consider for working round the problem and still being able to use the ports system in the usual way. None of these are tested by me in any way, and some of them may not actually work. i) If you have spare IPs available, simply set up jails to run second and subsequent instances of drupal and apache. This is pretty much overkill but it's a tried and tested strategy and should be reliable. The downside is you need to install at least enough of a system in each jail to support running apache, etc. plus you have to maintain each of the different jail environments separately. ii) If you haven't any spare IPs, you can install multiple copies of the same port on the same machine by changing *both* $PKG_DBDIR and $PREFIX in the environment to distinct values for each copy. Unfortunately changing $PREFIX doesn't give you complete freedom to choose where a web app will be installed -- typically a web app will be located at ${PREFIX}/www/app-name. However by judicious use of the Alias directive in httpd.conf you can make all those different directories appear in the same web tree. Like option (i) you've still got multiple copies of ports to maintain, although in this case, it's only the drupal port and anything that depends on drupal that you need multiple copies of, rather than the entire installation tree of ports. iii) A kind of wacky idea this, and it will only work for web apps whose configuration files are contained within the web root. That's true of most PHP based web apps -- other languages may differ. Install the port once only, in the normal fashion. Then create loopback mounts of the application directory multiple time, each to a union fs (see mount_unionfs(8)) where you superpose a separate layer to contain just the configuration files for that instance. It's conceptually complicated, but all the work should be at the setup stage and after that, there's only one instance of your web app to keep properly maintained. iv) I've no idea if this is at all possible with Drupal, but really the absolute easiest solution is to choose a CMS that lets you manage several different web sites (virtual hosts, web trees, what you will) within the same instance. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Re: FreeBSD 7 server in hang
Lowell Gilbert wrote: Gian Paolo Buono [EMAIL PROTECTED] writes: Hi, I have on a server ibm 3650 FreeBSD 7.0-STABLE and the proccess that running are nagios-3.0.2, apache-2.2.8 and heartbeat-1.2.5_3; random after some day machine becomes semi-dead, the ping respond but any stack (ssh,http) don't work and heartbeat don't switch the resources I can't loggon and I must reboot. In the syslog there isn't any message for trobleshotting the problem. Any idea ? Sorry for my english Best Regards Try keeping an eye on top(1); it may even give a hint after it stops updating. If that doesn't help, you may need to break to the kernel debugger (details in developers' handbook). I also was having some lockup problems on a 3650. Don't know if it's related but I will document my experiences in case it's of any help. Initially it was fine (Running 7.0-Release, but after some hardware problems the system was continuing to lockup even after the whole server was replaced. I ended up doing a clean install of 7-stable (as of August 20th) and haven't had any problems since. Not sure if it was some odd corruption of kernel or other system files (server went through many hard reboots during the hardware problems) or a bug in 7.0-release that was fixed in 7-stable. In my specific symptoms if I had something like top running on the console, it would continue to run. Top didn't show much of interest other than some 100% apache processes (which I suspect was a symptom of the problem, not the cause). When the system was hung top would continue running and updating, but it would not accept keyboard input. I could switch to other virtual consoles with alt+f#, but they also would not take text input for a login. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple installation of one ports
Matthew Seaman wrote: FreeBSD wrote: Hi everyone, I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. Any suggestions? This is an interesting problem. The FreeBSD ports system does not at present allow multiple installations of the same port, even into different ${PREFIX}es. This make sense for most of the software dealt with by the ports system, but in the specific case of web based applications having the same application installed into multiple locations in the same web tree is a perfectly reasonable thing to want to do. Here are some ideas as to ways you might consider for working round the problem and still being able to use the ports system in the usual way. None of these are tested by me in any way, and some of them may not actually work. i) If you have spare IPs available, simply set up jails to run second and subsequent instances of drupal and apache. This is pretty much overkill but it's a tried and tested strategy and should be reliable. The downside is you need to install at least enough of a system in each jail to support running apache, etc. plus you have to maintain each of the different jail environments separately. ii) If you haven't any spare IPs, you can install multiple copies of the same port on the same machine by changing *both* $PKG_DBDIR and $PREFIX in the environment to distinct values for each copy. Unfortunately changing $PREFIX doesn't give you complete freedom to choose where a web app will be installed -- typically a web app will be located at ${PREFIX}/www/app-name. However by judicious use of the Alias directive in httpd.conf you can make all those different directories appear in the same web tree. Like option (i) you've still got multiple copies of ports to maintain, although in this case, it's only the drupal port and anything that depends on drupal that you need multiple copies of, rather than the entire installation tree of ports. iii) A kind of wacky idea this, and it will only work for web apps whose configuration files are contained within the web root. That's true of most PHP based web apps -- other languages may differ. Install the port once only, in the normal fashion. Then create loopback mounts of the application directory multiple time, each to a union fs (see mount_unionfs(8)) where you superpose a separate layer to contain just the configuration files for that instance. It's conceptually complicated, but all the work should be at the setup stage and after that, there's only one instance of your web app to keep properly maintained. iv) I've no idea if this is at all possible with Drupal, but really the absolute easiest solution is to choose a CMS that lets you manage several different web sites (virtual hosts, web trees, what you will) within the same instance. Cheers, Matthew What I do with webapps from ports is install them once, then copy them to each of the customers that wants them. It's not a perfect solution, but for a webapp what I care about for the ports is dependency tracking, and portaudit. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple installation of one ports
On Tuesday 16 September 2008 01:26:35 pm FreeBSD wrote: I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. I've done this in the past with Gallery and it looks like Drupal should be workable too. The thing to do is to make either a clone port or a slave port of the original and tweak a few things. In particular you'll want to add some sort of suffix to the port name and change the installation directory. For example, you could make a directory called ports/www/drupal6-customer and drop this in its Makefile: PKGNAMESUFFIX=-${CUSTNAME} DRUPAL_BASE=drupal6-${CUSTNAME} .include ../drupal6/Makefile You could then do things like # cd /usr/ports/www/drupal6-customer # make CUSTNAME=foo install clean # make CUSTNAME=bar install clean which would (with any luck) create independent installations of drupal under /usr/local/www/drupal6-foo and /usr/local/www/drupal6-bar. Or if you didn't want to worry about defining CUSTNAME all the time (or the desired name/location won't follow a predictable pattern) you could make a different slave port for each installation and hard-code the two values. I haven't tested any of this other than some quick verification of variables using make -V. HTH. If you have specific questions about port mechanics the ports@ list might be the best place to ask. See also the Porter's Handbook: http://www.freebsd.org/doc/en/books/porters-handbook/ JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache 1.3 Problems
On Wed, 17 Sep 2008, Ian Smith wrote: On Tue, 16 Sep 2008 17:48:48 +1000 (EST) [EMAIL PROTECTED] wrote: On Tue, 16 Sep 2008 [EMAIL PROTECTED] wrote: From a digest post, trimming a bit .. After 3 years, by apache 1.3 server quite working. It shows a PID, it's running, it can be stopped and restarted, and from FreeBSD the home page comes up using lynx http://andrsn.stanford.edu But from outside, it times out. I have run the texts for valid configuration (I haven't changed anything) and I actually rebooted the machine. The texts are okay and rebooting doesn't help. The machine is pingable. It's running FreeBSD 5.5 or so. What to do next? Annelise ___ Hmm.. Can it connect to the outside world at all itself? Has the network changed at all recently? Did the server restart at all and if so are the firewall rules (if any) permitting external traffic? You could check the apache logs to see if any external connections are getting through to the box at all, too. Is the lynx test connecting from the same box to itself? or from another FreeBSD box..? From the same box to itself. What about from other boxes 'inside' your domain? -- Also, what Chris said would cover most of these. :) Cheers, Mark Chris wrote: Sounds like a (probebly external) firewall issue. Just because pings get through, doesn't mean the http requests are. No firewall on my machine. No, but there are (hopefully :) Stanford firewall/s between you and the outside world. Might they have upgraded policy about allowing inbound port 80 connections to boxes not known/expected to be running servers? I'd run ngrep or tcpdump on the console and double-check that the packets are actually making it to the server. Also, do a sockstat -4 and make sure it's listening on the approprate IP. Thank you both-- sockstat -4 show that it's listening on *:80, which is right. Neither tcpdump (assuming I'm reading it correcting) nor httpd-access.log shows any tcp packets at all getting through except when lynx is run from the machine on which apache is running after Sept 12 at 2:12 a.m. Thus, I assume packets are not getting to the server, except when requested from the local machine. Sounds like your machine is setup ok, but inbound tcp setup packets are apparently getting blocked upstream. email and ftp are working--and I can log into the machine remotely-- so stuff is getting out and in. tcpdump shows a lot of other activity, Specific like 'tcpdump -pn -i $iface tcp port 80' quells other noise. So, I'm stumped. Annelise Ok, ping and DNS look fine. I (also) can traceroute your box this far: 14 bbrb-isp.Stanford.EDU (171.64.1.155) 193.489 ms 193.562 ms 195.603 ms 15 * * * 16 * * * 17 * * * 18 * *^C I don't know whether you allow inbound traceroutes? but the question now is, how many routers between you and and bbrb-isp.Stanford.EDU ? Can you show us a 'traceroute bbrb-isp.Stanford.EDU' from your machine? This might sound like an odd test, but try configuring it to sit on a port other than 80 (8080, for example) and seeing if you get the same problem there. Cheers, Mark If you're thinking what I'm thinking, 8080's just as unlikely to work :) cheers, Ian I think port 80 is being filtered. I have started talking to the admins. The traceroute looks like this-- andrsn 2:23PM ~ % traceroute bbrb-isp.Stanford.EDU traceroute to bbrb-isp.Stanford.EDU (171.64.1.155), 64 hops max, 40 byte packets 1 goz-srtr-vlan910.Stanford.EDU (171.66.112.1) 0.610 ms 0.571 ms 0.711 ms 2 * bbra-rtr.Stanford.EDU (172.20.4.1) 1.093 ms * 3 * * * 4 * * * and so forth indefinitely. When I filter out non-tcp traffic nothing shows up at all. I have not tried another port yet, but will do that now. Annelise ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
g_ufs_done() WHAT does it mean?
I have installed freeBSD on a SATA 320 gig hard drive. After running for a few minutes I get several of the following error messages: g_ufs_done():ad4s1d[WRITE(offset=385482752, length=16384)]error=6. After two pages like that the computer stops and requires a hard boot to restart. I assume that the messages concern the hard drive, but what are they telling me? Help, and thanks, Bob Falanga ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kill NFS connection
On Monday 08 September 2008 13:01:08 patrick wrote: Is there a way to kill an NFS connection to a server that's stopped responding? When I try to simply unmount it, I get a never-ending stream of server not responding messages. (Using FreeBSD 6.2, BTW.) Thanks, Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Another respondent already mentioned umount -f ... I wanted to clear up something you may, or may not, know about NFS and that is that there isn't really a connection. Unless the behaviour changed in FBSD 7, when mounting NFS; UDP is used. UDP is a connectionless protocol in the IP suite of protocols. Because of this, detecting a lost connection is rather problematic. Usually, timeouts are used when sending new information, or requesting something from the server. I'd read through the mount_nfs(8) manual page just to be sure of options that may help out in this case. The -c -t -D and some others looked rather promising. In my experience, it's usually pretty difficult to unmount an unresponsive NFS mount. In fact, *and only because of the environment in which I was working*, I usually ended up rebooting my box. This is because I didn't want to wait for the timeouts (painfully slow in some default configurations; upwards of 10 minutes or more). This probably isn't feasible if your system hosts services for other clients. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Standby
Dear Users, My laptop is ASUS M2Ne, and the OS is FreeBSD 7.0. I would like to keep my PC standby when it is not in use. I have noticed a web page about FreeBSD on laptops (http://www.freebsd.org/doc/en/articles/laptop/article.html). It says that if I want to figure out if the power management system can support mine, I have to try every possible option. I wonder if there is any list telling what models the apm or acpi system supports? If them can not support the Asus M2Ne, and I want to inquire a related question. If the laptop is on but not in standby or hibernated mode, and I want to bring it with me, moving from a room to another from time to time. Will this action bring damage to my laptop? Should I always shutdown it before I move it? Thanks in advance! -- HUANG Ronggui, Wincent http://ronggui.huang.googlepages.com/ Ph.D. Candidate, CityU of HK Master of sociology, Fudan University, China Bachelor of Social Work, Fudan University, China ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD CVS tag
At 2008-09-15T16:31:16+02:00, Polytropon wrote: 1. How is it possible to include a sub-path in the CVS file field, but not the absolute path of the file? Use the `CVSHeader' keyword instead of `Header'. The CVSHeader keyword expands to the relative path of the file in the CVS repository. See the CVS manual at http://cvsman.com/cvs-1.12.12/cvs_100.php 2. How is it possible to change $Id$ or $Header$ to a custom string, let's say the name of a company or a project, by not breaking (!) the CVS compatibility (no s/Header/Foobar/). Example for goal: $StupidProject: src/mouse/beep.pl,v 1.2.4 2008/16/32 04:08:16 bob Exp $ CVS checkout `CVSROOT'. Create a file called `options' in the working copy of CVSROOT with the following contents: tag=StupidProject=CVSHeader tagexpand=iStupidProject CVS add and commit `options'. Now, only the `StupidProject' keyword will be expanded, leaving other keywords unexpanded. See: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/CVSROOT/options http://dotat.at/writing/cvs-guidelines.html Raghu. -- N. Raghavendra [EMAIL PROTECTED] | http://www.retrotexts.net/ Harish-Chandra Research Institute | http://www.mri.ernet.in/ See message headers for contact and OpenPGP information. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD CVS tag
At 2008-09-16T14:40:15-04:00, Lowell Gilbert wrote: The CVSROOT/config file supports LocalKeyword. Is it supported in the version of CVS that comes with the base system? It didn't work for me with the system CVS. According to the CVS CVS repo at http://cvs.savannah.gnu.org/viewvc/cvs/ccvs/ the LocalKeyword mechanism was introduced with CVS 1.12.2. The system CVS in FreeBSD 7-STABLE seems to be 1.11.17. I think even the tagexpand capability comes through FreeBSD patches to that version. Raghu. -- N. Raghavendra [EMAIL PROTECTED] | http://www.retrotexts.net/ Harish-Chandra Research Institute | http://www.mri.ernet.in/ See message headers for contact and OpenPGP information. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Port for drawing directed graphs?
At 2008-09-15T10:31:57-04:00, John Almberg wrote: I am working on some software that must, as it's final output, produce a printout of a directed graph... nodes, connected by directed links. The printout could be generated by a postscript file, jpg, whatever. Does anyone know of a utility (in ports?) that can take a data set (for example, a two dimensional array that defines the nodes and the links between them), and produce a printable graph? May not exactly be what you're looking for, but I have used the TeX `xypic' package, which comes with `print/teTeX', for drawing directed graphs. From your other messages, I understand your graphs have a large number of vertices. I don't know how `xypic' scales for large graphs. The ones I've used it for were quite small. Moreover, the input format for `xypic' is similar to a matrix in LaTeX. The package essentially views the graph as a matrix, each of whose entries is a label for a vertex together with vectors that represent the edges starting from that vertex. Raghu. -- N. Raghavendra [EMAIL PROTECTED] | http://www.retrotexts.net/ Harish-Chandra Research Institute | http://www.mri.ernet.in/ See message headers for contact and OpenPGP information. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache 1.3 Problems
On Tue, 16 Sep 2008, Annelise Anderson wrote: On Wed, 17 Sep 2008, Ian Smith wrote: On Tue, 16 Sep 2008 17:48:48 +1000 (EST) [EMAIL PROTECTED] wrote: On Tue, 16 Sep 2008 [EMAIL PROTECTED] wrote: From a digest post, trimming a bit .. Trimming lots this time .. Ok, ping and DNS look fine. I (also) can traceroute your box this far: 14 bbrb-isp.Stanford.EDU (171.64.1.155) 193.489 ms 193.562 ms 195.603 ms 15 * * * 16 * * * 17 * * * 18 * *^C I don't know whether you allow inbound traceroutes? but the question now is, how many routers between you and and bbrb-isp.Stanford.EDU ? Can you show us a 'traceroute bbrb-isp.Stanford.EDU' from your machine? [..] I think port 80 is being filtered. I have started talking to the admins. The traceroute looks like this-- andrsn 2:23PM ~ % traceroute bbrb-isp.Stanford.EDU traceroute to bbrb-isp.Stanford.EDU (171.64.1.155), 64 hops max, 40 byte packets 1 goz-srtr-vlan910.Stanford.EDU (171.66.112.1) 0.610 ms 0.571 ms 0.711 ms 2 * bbra-rtr.Stanford.EDU (172.20.4.1) 1.093 ms * 3 * * * 4 * * * and so forth indefinitely. While talking to the admins, you might show them your traceroute too. It's a bit strange that bbrb-isp.Stanford.EDU responds to traceroutes from the outside, but not from your internal machine. Of course it may be that the port 80 blocking (and/or traceroute blocking) is occurring on another router between you and bbrb-isp .. we can see at least two. When I filter out non-tcp traffic nothing shows up at all. Obviously mail works both ways. tcptraceroute was also a good clue. I have not tried another port yet, but will do that now. Annelise Happy hunting, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]