Ubuntu Servers :: Manually Forcing Rotation Didn't Generate Any Errors

Jan 28, 2011

I have 1 Ubuntu server acting as a gateway / proxy and a bunch of iptables rules to log packets from each of these systems. This is done to monitor internet acces. The resulting log file grows to about 80 - 100Mb on a daily basis. I tried setting up log logrotate ( through webmin as well as manually ) to rotate this log file every night at 11:00 pm. However, the file does not get rotated. when i run logrotate -d /etc/logrotate.conf everything goes through fine. i get a message saying that the file qualifies for rotation and no errors.

If i manually force the rotation ( through webmin ) it happens. However, on its own, the log file does not get rotated. I am completely stumped. I tried replicating the exact same settings that are set for syslog rotation, and still no luck. All the other log files do get rotated at the appropriate time ( i have checked in the /var/log/ directory ), but this one does not. I thought it might have been because i had some prerotate and postrotate scripts. Manually forcing rotation did not generate any errors and the scripts ran without any problems. But even then, i removed those scripts, and still no luck. this is the config file for logrotate ( in /etc/logrotate.d/bcrl )

[code]...

I updated the system just one day before this problem ( the second one ) surfaced, but i do not remember what got updated. is there any way to check?

View 3 Replies


ADVERTISEMENT

General :: Manually Forcing TCP Connection To Retry ?

Jun 9, 2010

I have a TCP connection (SSH session to some computer for example) Network suddenly goes down and drops all packets (disconnected cable, out of range). TCP resends packets again and again, retrying with increasing delays. I see the problem and plug the cable back (or restore network somehow). TCP connection finally successfully resends some packet and continues.

The problem is that I need to wait for a some timeout on point 5. I want to use my opened SSH session now and not wait for 5-10 seconds until it finds out that connection is working again.

How to force all TCP connections to resend data without delays in GNU/Linux?

View 2 Replies View Related

Ubuntu :: Manually Generate An Entry In The /etc/shadow File?

Oct 25, 2010

I'm trying to learn how to create a user account manually on the system, and I've edited the /etc/passwd and /etc/groups as well as creating a new home directory by copying /etc/skel but I'm stuck at how to generate an entry in the /etc/shadow file since it comprises of the hash and all?

View 4 Replies View Related

General :: Manually Generate A Fake ACPI Lid Event From A Script?

Jul 4, 2010

I'm trying to make sure that my laptop will suspend if I unplug it after the lid is already closed, and I believe that one way to accomplish this would be to simulate an ACPI lid event when the power adapter is plugged or unplugged. In order to do this, I need to find a command that will generate a fake ACPI lid event. Is there any such command?

View 1 Replies View Related

Fedora :: Generate Report Other Than Going Through All The Nagios Configuration Files And Putting It Together Manually?

Feb 23, 2010

I have an existing Nagios installation from before I started working here. It seems to be working well but my boss has just asked for a report of what servers and the associated processes/functions are being monitored. Is there any way to generate this report other than going through all the Nagios configuration files and putting it together manually?

View 3 Replies View Related

Ubuntu Servers :: Fail2ban Conducts A Log Rotation It Unbans All The Banned IP's

Sep 14, 2010

i have fail2ban on server but everytime fail2ban conducts a log rotation it unbans all the banned IP's. I have ip's to be banned for a week whenever a log rotation happens or i restart fail2ban i dont want all the ip's released! I was thinking there was a script or patch that would fix this but i have come up short.

View 2 Replies View Related

Ubuntu Servers :: Rotation Part Is Not Removing Files Older Than 90 Days?

Dec 3, 2010

Seem my rotation part is not removing files older than 90 days. Anybody know what is wrong?

Code:
#!/bin/sh
#navigate to the desired backup location
cd /public/backup/linux
#dump the MySQL entirely, output file is dated
mysqldump -u root -pmt1jxz68f2 --all-databases > "`date +%Y%m%d`.sql"
#backup the web folder

[Code]...

View 1 Replies View Related

Ubuntu Servers :: Forcing A Server Cache Update?

Dec 6, 2010

I'm working on a web site. I'm sometimes finding that when I update a file, some mysterious force intercepts my changes and refuses to let me see them. I have confirmed that this mysterious force is a server cache.By adding a "?" to the end of the URL, I can see the changes I've made. Is there a way to somehow force my Internet provider to update the server cache?

View 3 Replies View Related

Debian :: Didn't Create Right Name Servers \ Says Name Servers Are Not Valid?

Jun 2, 2011

I wanted to create a name server for my website. so I did changed /resolv.conf , $

/nameserverips
like this =>
cat /etc/resolv.conf

[code]....

View 6 Replies View Related

Ubuntu Servers :: Phpinfo Didn't Show Configure Options?

Oct 22, 2010

I created a file to show phpinfo. But configure command is missing from the list.

Check some other servers, confiugure command is there.

Is this an ubuntu issue?

View 1 Replies View Related

Ubuntu Servers :: Grub Menu Didn't Showed During Booting The System?

Apr 26, 2010

Here's exracted from ubuntu Grub2 document https://help.ubuntu.com/community/Grub2:

GRUB_HIDDEN_TIMEOUT=0 This setting determines how long a screen without the GRUB 2 menu will be displayed. While the screen is blank, the user can press any key to display the menu.The default behavior is to hide the menu if only one operating system is present. If a user with only Ubuntu wishes to display the menu, place a # symbol at the start of this line to disable the hidden menu feature.According to above information, I have tried to set below in order the show the menu:

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT="20"

[Code]...

View 3 Replies View Related

Fedora Servers :: Hit A Snag When Creating A User, This Because Coldfusion Cannot Generate A Password?

Apr 25, 2010

i've installed directory server in a fedora 12 box, i got it running and i can access it using coldfusion to manage users and groups.i hit a snag when creating a user, this because coldfusion cannot generate a password, the directory server needs a certificate and a ssl connection.so i started googling for a way to generate and install a certificate on the server itself and in the directory.s is my administration server and directory(it's novabase directory) not the other one.

View 2 Replies View Related

Ubuntu Servers :: LTSP Video - Log On The Client Successfully But Didn't Get The Window Environment

Feb 9, 2010

I have setup Ubuntu 9.10 ltsp server, and have the client connected with login screen. I can log on the client successfully , but I did not get to the window environment, just see a busy mouse pointer on client screen and the screen of the server is scrambled ... and not viewable. I built the image by ltsl-build-client The server is amd64 version and the client is i386 version.

View 1 Replies View Related

Ubuntu Servers :: Add Key Manually To A Server (no GUI)?

Apr 13, 2011

How do you manually add keys to a server (no GUI) so that an ssh connection can be made using key authentication?

View 4 Replies View Related

Ubuntu Servers :: How Server Is Set Up / Would Have To Have To Do All Of This Manually Again

Aug 1, 2011

The first backup would be all of the settings of the server.I am extremely pleased with how my server is set up and would have to have to do all of this manually again. So I would like to backup everything essential that is not in my home folder. I would like to have it compressed into a archive and automatically backed up to a external drive that I have connected. If god forbid my system ever crashed I would like to pull this archive up and have everything back up an running quickly.

The second backup as you can probably guess will be my home folder.I would like to save everything there unarchived(so I can access a single item easier). I would like this to be automatic as well.What would be the best way of doing this?

View 9 Replies View Related

Fedora Servers :: Get Gnome Spin - Puppy Didn't Edit Boot Record Very Well

Dec 16, 2009

I want to set up a web server on a PIII machine with about 800MHz processor and just under 500 megs of RAM. So how would I go about configuring Fedora 12 to do this? I've tried the small spins and I just don't know how to configure it so it will install properly. I was able to get the Gnome spin on it but when it booted I couldn't get through the log-on screen. I have an AGP NVIDIA Geoforce 6200 video card. I'm wondering it that's it. The only Linux distros I could get on the machine was Puppy and Debian. Puppy did not edit the boot record very well. Debian went on there with very minor issues, but edited the master boot record very well so that I can dual boot to WindowsXp HE. I also tried to put Centos on there but the Live CD is not installable. I have to make an installation CD from the DVD Package. Anyways, as far as Fedora is concerned, I just want a utility, light weight spin that has web-server, mail server, and eventually MySQL. Other wise I'll have to commit treason and use the horned Debian as my savior in this battle.

View 9 Replies View Related

Ubuntu Servers :: Running Jetty As A Service Or Manually?

Feb 18, 2010

have a web application that runs fine.Whenever I run jetty manually the application runs ok. This is what I do:sudo java -jar start.jarThe application is located within the webapps directory correctly and the required jar files are within /usr/share/jetty/lib.But when I run jetty as a service:sudo service jetty startThe server starts, but the application does not respond. There is no error in the output. This is very strange, isn't it

View 1 Replies View Related

Ubuntu Servers :: Installing Tomcat 6 Manually Or From Repository?

May 13, 2010

So researching how to install Tomcat 6, I ran across a guide that specifically states there are issues with the repository version of Tomcat. Doing some more research it seems like this is reported in multiple places including a disussion on the official mailing list that was inconclusive. So my question is, if this is intended for a production server should I use the repository one or manually install it

View 2 Replies View Related

Ubuntu Servers :: Have To Enter NameServer Manually After Reboot

Sep 19, 2010

I have a small webserver running ubuntu server 10.4. It runs fine except after every reboot, I get DNS errors. I have to manually edit /etc/resolv.conf to add:
Code:
nameserver 192.168.1.1
The address of my internet gateway on my LAN. Obviously I am ignoring the warning in resolv.conf that this will be overwritten.

View 2 Replies View Related

Ubuntu Servers :: Test Mailgraph Manually To Create The Graphic?

May 16, 2011

I already install mailgraph in ubuntu 10.04. but now I got problem with mailgraph in ubuntu 10.04. No graph appear in the graphic created by mailgraph.I know mailgraph consist of perl and cgi script.If I have postfix log, how to test mailgraph manually to create the graphic using its perl script from existing postfix log. Just to see whether the graph created or not in the graphic

View 1 Replies View Related

Ubuntu Servers :: Removing Manually Installed Open Office On Hardy?

Oct 8, 2010

I need to change the location and language of open office on my server. (Hardy)

Not sure why it wasn't installed on apt-get, but it wasn't.

I'd like to completely remove and start again fresh (this time with apt-get) How can I do it?

View 1 Replies View Related

Ubuntu Servers :: CronTab Not Executing Script Works Fine Manually?

May 9, 2011

I have written a simple backup script, and added it to CronTab, but it doesnt execute at all. Here is my script: [URL]...And my CronTab entry: 0 */2 * * * root /home/server/Scripts/backup.sh

View 6 Replies View Related

Fedora Servers :: NMB Service Fails On Boot, Needing To Be Restarted Manually?

Mar 30, 2009

I have the Samba server & users configured, I can access between Linux/Windows shares and both SMB & NMB services are set to be enabled at boot.Everything working.But when I restart the computer, I notice in services configuration that "This service is dead." for NMB. Therefore I have to enable it manually upon boot so that it works.I'm using Fedora 10, fresh installed and updated. I've noticed through search that others have had this issue as well throughout other versions of Fedora, yet I have not found a conclusive solution to this.

View 3 Replies View Related

Ubuntu Servers :: Md Raid 10 Errors

Jul 26, 2011

I've had this server for a while and I've periodically received similar errors, but it's been worse lately. I'm trying to diagnose and similar posts have left me with 2, maybe 3, ideas about what could be wrong. Here is the setup: Ubuntu Server 10.10 maverick kernel 2.6.35-30-server Sans Digital TR8 8 bay raid - 2 port multipliers to esata outputs 8 1TB WD Caviar Black Syba PCI-e card with Sil3124 chipset - 2 external esata inputs I do not use the RocketRaid 622 card that came w/the enclosure because I had problems with drivers and configuration so I went with the SI chipset. The raid is configured with mdadm, level 10, running ext3 file system:

Code:
root@i5server:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid10 sdb1[5] sdg1[2] sdd1[7] sdh1[3] sdf1[1] sde1[0] sdc1[6] sda1[4]
3906721792 blocks 256K chunks 2 far-copies [8/8] [UUUUUUUU]

[Code].....

What's odd is that the raid dropped out and completely locked up the computer multiple times, then marked one of the drives as failed. I did a readd on the drive and it rebuilt witout issue. Ran e2fsck -f to clean up the problems it had when it crashed, but as soon as I do heavy read/writes the errors start showing up again. This is primarily a media server for music and movies, but also for backups and printing. Heavy read/writes are generally transcoding movies and music which is what I was doing when it failed.

View 7 Replies View Related

Ubuntu Servers :: MySQL Not Starting - No Errors

Jan 15, 2010

My mysql server won't start on my machine. It simply fails with no errors.
Code:
sudo /etc/init.d/mysql restart
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]

When I run cat /var/log/mysql.err the file is empty, thinking this might be a permissions issue
I tried chowning to a mysql user. Here's the current permissions.
Code:
ls -alh /var/log/mysql*
-rw-r----- 1 mysql adm 0 2009-09-30 11:08 /var/log/mysql.err
-rw-r----- 1 mysql adm 0 2010-01-15 09:07 /var/log/mysql.log
-rw-r----- 1 mysql adm 20 2009-11-25 07:35 /var/log/mysql.log.1.gz
-rw-r----- 1 mysql adm 20 2009-11-24 07:59 /var/log/mysql.log.2.gz
-rw-r----- 1 mysql adm 20 2009-11-23 07:56 /var/log/mysql.log.3.gz
-rw-r----- 1 mysql adm 20 2009-11-22 07:54 /var/log/mysql.log.4.gz
-rw-r----- 1 mysql adm 20 2009-11-21 07:47 /var/log/mysql.log.5.gz
-rw-r----- 1 mysql adm 20 2009-11-20 07:43 /var/log/mysql.log.6.gz
-rw-r----- 1 mysql adm 20 2009-11-19 07:35 /var/log/mysql.log.7.gz

/var/log/mysql:
total 8.0K
drwxrwsrwx 2 mysql adm 4.0K 2009-09-30 11:08 .
drwxr-xr-x 16 root root 4.0K 2010-01-15 10:24 ..
Still having the same issue, mysql server is still failing and /var/log/mysql.err is still empty.

View 3 Replies View Related

Ubuntu Servers :: LAMP Display Php Errors ?

Oct 11, 2010

I've installed developer's LAMP server and made changes on php.ini

But it doesn't display any errors or even a little warning, what's the problem, what's wrong?

View 9 Replies View Related

Ubuntu Servers :: Ssh Logout Cause 403 Forbidden Errors

Feb 11, 2011

i have strange problem on my wordpress-powered blog.while i'm connecting to server by ssh or physical console, everything works fine.however, when i tries to logout almost immediately 403 forbidden error pops up on every pages of my website.if there are two or more connections (like physical console and ssh terminal), terminate one of them does not cause 403 forbidden. but it shows 403 forbidden error page right after i terminated all connections.i can find two types of error in apache error.log while it shows 403 forbidden page.

Code:

(13)Permission denied: access to / denied

Code:

(13)Permission denied: /home/user/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable(one strange part is my DocumentRoot is /home/user/www not /home/user)i gave 755 permission to all files and directories in DocumentRoot(which is /home/user/www), but still apache show me the forbidden error page right after logout.i use ubuntu 10.04 lts and i use apt-get command to install all package that i'm using now (apache,mysql,php,mrtg,snmpd,vsftpd,ssh,etc).these are my virtual host config file and apache2.conf. (httpd.conf is empty)

Code:

<VirtualHost *:80>
DocumentRoot /home/user/www/
<Directory /home/user/www/>

[code].....

View 2 Replies View Related

Ubuntu Servers :: 11.04 Nouveau Errors After Installing?

May 21, 2011

Just installed ubuntu server 11.04 to have a play with. Ran through the installer and selected to setup as a virtual machine host. When booting I get 3 errors

Code:
[ 7.847619] [drm] nouveau 0000:00:0d.0: ======= misaligned reg 0x0060081D ===
[ 7.847624] [drm] nouveau 0000:00:0d.0: ======= misaligned reg 0x0060081D ===
[ 8.651603] [drm] nouveau 0000:00:0d.0: unknown connector type: 0xff!! ===
Any insignt into what may be causing this would be well appreciated.

It may be also worth noting that I dont see the grub screen. My monitor reports "out of range" I also did have ubuntu server 10.10 on here previously which installed without issue. (It wasnt actually being used for anything) I'm currently trying a reinstall hoping the errors will go away but any info would be much appreciated.

View 2 Replies View Related

Ubuntu :: Stop Rotation Of Backgrounds?

May 7, 2010

I choose a rotating background for the desktop (astronomical pictures). How can I stop this rotation and decide to keep a specific picture instead of letting the system rotate the background every few seconds?

View 6 Replies View Related

Ubuntu Servers :: Xorg-common (Installation Errors?

Jan 5, 2010

I have setup the Ubuntu server on Dell Powerdge 2900 (the latest server version 9.XX)I would like to install the 'minimal' X11 package so I have done the following Step1:Quote:

$ dpkg -l x11-common
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend

[code]....

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved