Updated launchctl plist for running rsync server daemon
I wanted to update the community on my launchctl plist for running rsync as a daemon. This is an update to this thread:
rsyncd plist for launchd -- not starting properly on reboot.
Here is my current plist in /Library/LaunchDaemons
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>KeepAlive</key>
<dict/>
<key>Label</key>
<string>rsync</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/rsync</string>
<string>--daemon</string>
<string>--no-detach</string>
<string>--config=/Users/jabraham/RSync/rsyncd.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/Users/jabraham/RSync/stderr.txt</string>
<key>StandardOutPath</key>
<string>/Users/jabraham/RSync/stdout.txt</string>
</dict>
</plist>
A couple of important points:
* the --no-detach argument is important. Launchctl is responsible for keeping daemons running, so you don't want to use rsync's own facility to spawn a new daemon in the background. I didn't have this argument before, and it worked for me with Mavericks, but with Yosemite I needed the --no-detach
* I'm using a recent rsync from Homebrew, the much-too-old one bundled with Yosemite didn't work with my hard links properly (I can't actually remember what the actual problem was, maybe it didn't report an existing hard linking error properly, I was trying to hardlink on a file system that didn't support it.) The Homebrew one is in /usr/local/bin. If you don't have rsync from Homebrew or Macports the default one is version 2.6.9 and it's in /usr/bin
* I used LaunchControl from http://www.soma-zone.com/ I recommend it to setup options and to debug your typos and problems in launch daemons.
There are several problems with your .plist, so it's hard to know which one is causing the problem.
For one you have both a Program and a ProgramArguments key, when you should have only one or the other (you use Program if there is just one element to the command, or ProgramArguments if there are multiple.
Beyond that, though, it's not clear which execution model you're trying to use. launchd can run tasks either on demand (i.e. when some event happens that triggers the process to launch) or continuously (where launchd watches the process and automatically restarts it if it fails).
The fact you're specifying network sockets would normally indicate that you're running on demand (i.e. launchd should start rsync whenever an incoming network connection is detected). However, your ProgramArguments includes a --daemon parameter to rsync, which tells it to run continuously and listen for network connections itself. These options are incompatible (i.e. either launchd or rsync can listen to the network, but not both).
You should decide which model to employ - either let launchd listen to the network and run rsync as needed, or run rsync as a daemon and let it listen to the network.
As I said above, it isn't clear which (if either) of these is the root cause of your problem, but they need to be fixed before any more debugging can take place.
Similar Messages
-
Why run rsync as daemon? [solved]
I'm working on learning rsync, and I've run across lots of pages that tell you that the first thing you need to do is set it up to run as a daemon, while others just run it. I've moved a few things around from the command line without using the daemon, but now I'm wondering, why would you do it with the daemon?
If I understand what I've read, it allows you to connect directly without involving ssh, but why would you want to do that?
Thanks for any info.
Last edited by timm (2010-04-01 21:20:29)Thanks for the clarifications thus far. I do still need some more
crankyadmin wrote:
Also you can tell the rsync daemon to go and fetch data from other non-local machines. It uses ssh for the purpose (or at least auth) i believe.
But how is this different than using it without the daemon mode? I thought I had understood that I can pull from across the net just using the command line (but I haven't got it all figured out yet)
And colyte wrote:
There's one very good reason, speed.
Try it, you'll be surprised.
And am I giving up any security in exchange for the speed? ( I haven't done any research on this one, so if this is a rtfm let me know )
[edit]
I found some information on the ubuntu site that indicates that using the daemon also allows you to handle files that would require a root login through ssh, which may be disabled for security.
Last edited by timm (2010-04-01 21:20:13) -
Laptop config for running Windows Server 2012
Hello,
For demo purpose I need to install Windows Server 2012 on a laptop, and some other 64 bits applications.
Do you experiment a specific laptop which is running fine with this OS?
For example I tried with Intel i5 and 16 GB RAM : Excel takes 10 min to load and most of the time it announces "Not responding". Same thing for all the other applications. I'm quite paralyzed in my job.
Thanks for advises!Hi,
I am not sure what is wrong with your setup, but Windows Server 2012 can run on laptop totally fine.
Especially with your rig. Can you tell us did you do a fresh install of Windows Server 2012?
I checked some pages (not to jump to conclusions myself), and I have found out that others didn't have any issues with the setup.
These are the requirements (doesn't matter if it is a standalone physical machine or a laptop):
Windows Server 2012 requirements
Make sure your drivers are up to date.
In this article you will see that the guy used a laptop on which he had Windows Server 2008 (lower config than yours), and it worked just fine:
Installing Windows Server 2012 on ThinkPad T61
Please click on Propose As Answer or to mark this post as and helpful for other people. This posting is provided AS-IS with no warranties, and confers no rights. -
OVM Manager install for running OVM server for SPARC plateform
Guys,
I have to install and deploy OVM Manager for managing an existing OVM server for SPARC.
When try to run ovs-agent-setup command, it fails telling that ovm server has not good configuration and exits!!
ovs-agent ** ERROR: The vds service is not configured on the primary domain
Trying to fix by resetting factory default configuration, then poweroff domain and poweron aain but nothing!! I got same error and ovs-agent service is in maintenance.
Now we have create ldoms and servers are in production!! We cannot reset configuration now.
Is-it possible to deploy OVM manager, fix ovs-agent issue without impacting actual vm??? How to do this? I assume that vm created with ldm commande can not be provision with ovm manager.
Please help!!Hi,
Windows Server 2008 R2 supports two mutually exclusive methods for setting quotas on the amount of file system resources a user can use—disk quotas or directory quotas. Disk quotas are applied to specific users and limit the amount of disk space that user can
use on a particular volume. Directory quotas are applied to all users and limit the amount of disk space that users can use in a particular folder and its subfolders.
I do a test on my pc and find there is no priority between the two quotas, it depends on which quota is smaller. So user A can only save 1 GB files in the folder.
Regards,
Mandy
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Best practice to run BOBJ server
Is that a best practice to install the BOBJ (BOE) server in Netweaver stack..
may or may not use BI
may or may not use Netwever Portal
Have said above, I would appreciate best solution for running BOBJ server..
Thanks-gopalI see this post is a bt old but the organization I'm with has a very large VDI deployment using VMware. We also are using SCEP 2012 for the AV.
Did you find out what you were looking for or did you elect to take a different direction?
We install SCEP 2012 into the base image and manage the settings using GPO and the updates for defs are through the normal route.
Our biggest challenge is getting alert message from the client.
Thanks -
Training for Crystal Reports Server
Does anyone know of any place that offers training for running CR Server 2008?
We are having trouble getting everything to talk to each other and wondered if there was a good place to help.
Thanks,Moved to BusinessObject Emterprise Forum
-
An error has occured while updating software. Connecting to the server is slow and games etc only run for 60 seconds
Have you tried resetting your iPad? You may have to restore again if there was a problem.
Try the reset first.
Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. -
Minecraft server script (run minecraft server as a daemon in Arch)
Hey all, I just finished editing and setting up a nice script to run a Minecraft server at boot in Arch. This is based on the original script on the minecraft wiki here. I've edited it to be suitable to place in your /etc/rc.d/ folder with the name "minecraft" (/etc/rc.d/minecraft).
This requires a user "minecraft" with the home directory /home/minecraft to work by default.
I decided I wanted to run the server entirely in RAM so I store all my files in /home/minecraft/backup while the server is offline. When it starts up it makes a tmpfs mount at /home/minecraft/minecraft and copies all the files there and runs from there. It makes an hourly backup using /etc/rc.d/backup stored in /home/minecraft/onlinebackup, first erasing the current backup and creating a new one. This is simply to save space. In the event of a crash without proper stopping of the daemon you will have a backup from your previous reboot (or restart of your minecraft server) in /home/minecraft/backup and one from within the previous hour in /home/minecraft/onlinebackup which I figure ought to be enough. You can manually backup at any time by restarting the daemon.
All paths can be altered. You can run this game under your normal user if you wish, just change the Settings section at the top of the file. RAM amounts may need to be increased for both the server and for the tmpfs, depending on how large your files are (mine are tiny and I have not heard of over 48MB for a game world, but you never know). Just check up on df -h every now and again to make sure your tmpfs has plenty of space, or just increase the allocated maximum size from the start. If you have low RAM you can always change the script to simply not use tmpfs.
If anyone wants, just ask and I can put up a version without tmpfs (should be easy enough to remove yourself but if you're not sure I'll do it for you)
All you need to start off with (if starting your server for the first time, using the scrip as is) is the user minecraft created, with the folders backup, onlinebackup and minecraft in the folder /home/minecraft, your minecraft_server.jar file in /home/minecraft/backup and your oninebackup file in /home/minecraft/backup.
NOTE: onlinebackup file runs from /home/minecraft/minecraft so that if your system crashes, the cron job to run the backups will fail because the link will point to a non-existant file until server is started again.
You can use these commands to with the server: /etc/rc.d/minecraft {start|stop|restart|update|backup}
The backup system is designed to wipe all previous sessions' backups upon starting the server, so do not set it to start the server at boot.
/etc/rc.d/minecraft
#!/bin/bash
# /etc/rc.d/minecraft
. /etc/rc.conf
. /etc/rc.d/functions
#Uncomment line below if using Sun JRE
#. /etc/profile
#Settings
SERVICE='minecraft_server.jar'
USERNAME="minecraft"
MCPATH='/home/minecraft/minecraft'
MCOFFLINEPATH='/home/minecraft/backup'
INVOCATION='java -Xmx768M -Xms768M -jar minecraft_server.jar nogui'
BACKUPPATH='/home/minecraft/onlinebackup'
ME=`whoami`
as_user() {
if [ "$ME" == "$USERNAME" ] ; then
bash -c "$1"
else
su -c - $USERNAME "$1"
fi
mc_start() {
stat_busy "Starting Minecraft Server"
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "Tried to start but $SERVICE was already running!"
else
echo "$SERVICE was not running... starting."
#Move minecraft from backup folder to ram
mount -t tmpfs tmpfs -o size=50m $MCPATH
cp -a $MCOFFLINEPATH/* $MCPATH
echo "Files moved to RAM."
cd $MCPATH
as_user "cd $MCPATH && screen -dmS minecraft $INVOCATION"
sleep 7
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is now running."
#Create hourly backups while running
ln -s $MCPATH/onlinebackup /etc/cron.hourly/minecraftonlinebackup
echo "Hourly backups initiated."
else
echo "Could not start $SERVICE."
umount $MCPATH
fi
fi
add_daemon minecraft
stat_done
mc_saveoff() {
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running... suspending saves."
as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER BACKUP STARTING. Server going readonly...\"\015'"
as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-off\"\015'"
as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-all\"\015'"
sync
sleep 10
else
echo "$SERVICE was not running. Not suspending saves."
fi
mc_saveon() {
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running... re-enabling saves."
as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-on\"\015'"
as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER BACKUP ENDED. Server going read-write...\"\015'"
else
echo "$SERVICE was not running. Not resuming saves."
fi
mc_stop() {
stat_busy "Stopping Minecraft Server"
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running... stopping."
as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER SHUTTING DOWN IN 10 SECONDS. Saving map...\"\015'"
as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-all\"\015'"
sleep 10
as_user "screen -p 0 -S minecraft -X eval 'stuff \"stop\"\015'"
sleep 7
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE could not be shut down... still running."
else
echo "$SERVICE is shut down."
#Stop hourly backups
rm /etc/cron.hourly/minecraftonlinebackup
echo "Hourly backup halted."
#Unmount tmpfs
cp -a $MCPATH/* $MCOFFLINEPATH
umount $MCPATH
echo "Files copied to HDD."
fi
else
echo "$SERVICE was not running."
fi
rm_daemon minecraft
stat_done
mc_update() {
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running! Will not start update."
else
MC_SERVER_URL=http://minecraft.net/`wget -q -O - http://www.minecraft.net/download.jsp | grep minecraft_server.jar\</a\> | cut -d \" -f 2`
as_user "cd $MCPATH && wget -q -O $MCPATH/minecraft_server.jar.update $MC_SERVER_URL"
if [ -f $MCPATH/minecraft_server.jar.update ]
then
if `diff $MCPATH/minecraft_server.jar $MCPATH/minecraft_server.jar.update >/dev/null`
then
echo "You are already running the latest version of $SERVICE."
else
as_user "mv $MCPATH/minecraft_server.jar.update $MCPATH/minecraft_server.jar"
echo "Minecraft successfully updated."
fi
else
echo "Minecraft update could not be downloaded."
fi
fi
mc_backup() {
echo "Backing up minecraft world"
if [ -d $BACKUPPATH/world_`date "+%m.%d.%Y"` ]
then
for i in 1 2 3 4 5 6
do
if [ -d $BACKUPPATH/world_`date "+%m.%d.%Y"`-$i ]
then
continue
else
as_user "cd $MCPATH && cp -r world $BACKUPPATH/world_`date "+%m.%d.%Y"`-$i"
break
fi
done
else
as_user "cd $MCPATH && cp -r world $BACKUPPATH/world_`date "+%m.%d.%Y"`"
echo "Backed up world"
fi
echo "Backing up the minecraft server executable"
if [ -f "$BACKUPPATH/minecraft_server_`date "+%m.%d.%Y"`.jar" ]
then
for i in 1 2 3 4 5 6
do
if [ -f "$BACKUPPATH/minecraft_server_`date "+%m.%d.%Y"`-$i.jar" ]
then
continue
else
as_user "cd $MCPATH && cp minecraft_server.jar \"$BACKUPPATH/minecraft_server_`date "+%m.%d.%Y"`-$i.jar\""
break
fi
done
else
as_user "cd $MCPATH && cp minecraft_server.jar \"$BACKUPPATH/minecraft_server_`date "+%m.%d.%Y"`.jar\""
fi
echo "Backup complete"
#Start-Stop here
case "$1" in
start)
mc_start
stop)
mc_stop
restart)
mc_stop
mc_start
update)
mc_stop
mc_backup
mc_update
mc_start
backup)
mc_saveoff
mc_backup
mc_saveon
status)
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running."
else
echo "$SERVICE is not running."
fi
echo "Usage: /etc/rc.d/minecraft {start|stop|update|backup|status|restart}"
exit 1
esac
exit 0
/home/minecraft/backup/onlinebackup
#!/bin/bash
# /home/minecraft/backup/onlinebackup
rm -rf /home/minecraft/onlinebackup/*
/etc/rc.d/minecraft backup
UPDATE:
rationalOgre has created an alternate script with a different backup system, which will keep compressed copies of your world indefinitely, along with a working update function. https://bbs.archlinux.org/viewtopic.php … 97#p944797
Last edited by PIMPinator (2011-06-08 14:00:54)@PIMPinator - Weird. On mine, if I don't source /etc/profile it won't work. No clue what the difference is. I tested it after I got it up and running, removing different elements to see if one or the other was the problem. Without it all in place it just didn't work.
I made some modifications to your script today. Fixed "update" so it works properly. (You had it running mc_backup after mc_stop, which never worked on my system.) I basically reworked it so it runs the backup, then stops the server and performs the update in the ~/backup directory, then restarts the server. I also completely overhauled the "backup" system. (for this to work you have to comment out the rm -rf ~/onlinebackup/* directive in the onlinebackup script.) Now, it creates 4 rolling backups of the server, in tar.gz format. What this means is that over time, you will accumulate the last 4 backups for each day in your ~/onlinebackup folder. I thought about creating a cleanup function to cull anything over 2 days old but to be honest, even if your world was > 50MB, zipped up it's going to be about ~20mb which means you can have 50 of them and only be taking up a gig of server space. Anyway, here's the code if you are interested.
#!/bin/bash
# /etc/init.d/minecraft
. /etc/rc.conf
. /etc/rc.d/functions
#Comment out the following if using OpenJDK
. /etc/profile
#Settings
SERVICE='minecraft_server.jar'
USERNAME="minecraft"
MCPATH='/home/minecraft/minecraft'
MCOFFLINEPATH='/home/minecraft/backup'
INVOCATION='java -Xmx768M -Xms768M -jar minecraft_server.jar nogui'
BACKUPPATH='/home/minecraft/onlinebackup'
ME=`whoami`
as_user() {
if [ "$ME" == "$USERNAME" ] ; then
bash -c "$1"
else
su -c - $USERNAME "$1"
fi
mc_start() {
stat_busy "Starting Minecraft Server"
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "Tried to start but $SERVICE was already running!"
else
echo "$SERVICE was not running... starting."
#Move minecraft from backup folder to ram
mount -t tmpfs tmpfs -o size=50m $MCPATH
cp -a $MCOFFLINEPATH/* $MCPATH
echo "Files moved to RAM."
cd $MCPATH
as_user "cd $MCPATH && screen -dmS minecraft $INVOCATION"
sleep 7
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is now running."
#Create hourly backups while running
ln -s $MCPATH/onlinebackup /etc/cron.hourly/minecraftonlinebackup
echo "Hourly backups initiated."
else
echo "Could not start $SERVICE."
umount $MCPATH
fi
fi
add_daemon minecraft
stat_done
mc_saveoff() {
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running... suspending saves."
as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER BACKUP STARTING. Server going readonly...\"\015'"
as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-off\"\015'"
as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-all\"\015'"
sync
sleep 10
else
echo "$SERVICE was not running. Not suspending saves."
fi
mc_saveon() {
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running... re-enabling saves."
as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-on\"\015'"
as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER BACKUP ENDED. Server going read-write...\"\015'"
else
echo "$SERVICE was not running. Not resuming saves."
fi
mc_stop() {
stat_busy "Stopping Minecraft Server"
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running... stopping."
as_user "screen -p 0 -S minecraft -X eval 'stuff \"say SERVER SHUTTING DOWN IN 10 SECONDS. Saving map...\"\015'"
as_user "screen -p 0 -S minecraft -X eval 'stuff \"save-all\"\015'"
sleep 10
as_user "screen -p 0 -S minecraft -X eval 'stuff \"stop\"\015'"
sleep 7
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE could not be shut down... still running."
else
echo "$SERVICE is shut down."
#Stop hourly backups
rm /etc/cron.hourly/minecraftonlinebackup
echo "Hourly backup halted."
#Unmount tmpfs
cp -a $MCPATH/* $MCOFFLINEPATH
umount $MCPATH
echo "Files copied to HDD."
fi
else
echo "$SERVICE was not running."
fi
rm_daemon minecraft
stat_done
mc_update() {
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running! Will not start update."
else
MC_SERVER_URL=http://minecraft.net/`wget -q -O - http://www.minecraft.net/download.jsp | grep minecraft_server.jar\</a\> | cut -d \" -f 2`
as_user "cd $MCOFFLINEPATH && wget -q -O $MCOFFLINEPATH/minecraft_server.jar.update $MC_SERVER_URL"
if [ -f $MCOFFLINEPATH/minecraft_server.jar.update ]
then
if `diff $MCOFFLINEPATH/minecraft_server.jar $MCOFFLINEPATH/minecraft_server.jar.update >/dev/null`
then
echo "You are already running the latest version of $SERVICE."
rm $MCOFFLINEPATH/minecraft_server.jar.update
else
as_user "mv $MCOFFLINEPATH/minecraft_server.jar.update $MCOFFLINEPATH/minecraft_server.jar"
echo "Minecraft successfully updated."
fi
else
echo "Minecraft update could not be downloaded."
fi
fi
mc_backup() {
echo "Backing up minecraft world"
local COUNTER=
if [ -f $BACKUPPATH/co ]
then
COUNTER=`cat $BACKUPPATH/co`
if [ $COUNTER -gt 4 ]
then
#Loop back to 1 if greater than the max number of desired saves (4 hardcoded)
as_user "echo 1 > $BACKUPPATH/co"
COUNTER=1
fi
else
COUNTER=1
as_user "echo 1 > $BACKUPPATH/co"
fi
if [ -f $BACKUPPATH/world_`date "+%m.%d.%Y"`-$COUNTER.tar.gz ]
then
as_user "rm $BACKUPPATH/world_`date "+%m.%d.%Y"`-$COUNTER.tar.gz"
fi
as_user "cd $MCPATH && tar -czf $BACKUPPATH/world_`date "+%m.%d.%Y"`-$COUNTER.tar.gz world"
#now to update the counter
as_user "echo $(($COUNTER + 1)) > $BACKUPPATH/co"
echo "Backup complete..."
#Start-Stop here
case "$1" in
start)
mc_start
stop)
mc_stop
restart)
mc_stop
mc_start
update)
mc_saveoff
mc_backup
mc_saveon
mc_stop
mc_update
mc_start
backup)
mc_saveoff
mc_backup
mc_saveon
status)
if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > /dev/null
then
echo "$SERVICE is running."
else
echo "$SERVICE is not running."
fi
echo "Usage: /etc/rc.d/minecraft {start|stop|update|backup|status|restart}"
exit 1
esac
exit 0
I hope you don't mind.
EDIT: Made a small change later that I came back and put in. If you are currently at the latest release it removes the .update file it created.
Last edited by rationalOgre (2011-06-07 23:05:58) -
Hi,
It could be a coincidence, but ever since installing Update rollup 4 onto DPM 2012 R2, (which was at UR3 I believe) I haven't been able to complete an Exchange express full backup or consistency check with verification using Eseutil checked. If I have the
eseutil check enabled I get the following error:
Type: Consistency check
Status: Failed
Description: Data consistency verification check failed for LOGS of Exchange Mailbox Database Mailbox Database 2011112513 on SERVER.xxx. (ID 30146 Details: The process cannot access the file because it is being used by another process (0x80070020))
Disabling the eseutil verification allows it to succeed, but I'm not happy to continue with that for too long.
I've had this running for many years and this is the first real issue with exchange, its a single stand alone exchange database.
Any ideas?
Thanks,
AndreasAndreas,
the error is stating that something else has a handle to a file or files during the ESEUtil check. Typically this is AV. I have also seen where the Exchange limits are exceeded and that causes the issue.
Please ensure you have the DPM AV exclusions for the DPM server and I would advise the DPMRA.exe on the PS. You can also trying disabling or removing AV as a test.
DPM AV exclusions -
http://technet.microsoft.com/en-us/library/hh757911.aspx
You may also want to test using eseutil against the logs outside DPM and see if that fails with similar issue. Let us know. Thanks
Regards, A.Nadar, This posting is provided "AS IS" with no warranties, and confers no rights. -
Update kernel steps for IDES 4.7 - Windows - MS SQL SERVER 2000
Hello,
Concerning updating the kernel - for IDES 4.7, Windows, SQL SERVER 2000 - is there a way to locate exactly the.SAR files - for the database dependent & database independent parts - which are compatible with the used SAP version.
Also, does updating the kernel involve only the following:
- Downloading the .SAR file.
- Taking a backup copy of the exe/run folder's content.
- Stopping the SAP system and all related services.
- Unpacking the .SAR files using the SAPCAR utitilty,
i.e. are there any specific steps to be done after the unpacking ?
Thanks in advance.
Reda Khalifa
IT Department - Almansour Automotive Group - EgyptHi Reda,
I guess You want to upgrade kernel from 6.20 to 6.40.
Go to service.sap.com -> downloads -> SAP Support Packages -> Search for SP and Upgrades -> enter "kernel 6.40" and follow the link "kernel 6.40 32-BIT".
On next window choose from location :SAP KERNEL 6.40 \ Windows Server \ Database independent following SARs (title):
- enq
- disp+work package
- dsrlib
- enserver
- librfc
- MMC (optional)
- Kernel Part I (for Basis 640/620/610) Q1/2007 (very important)
- saposcol
From location:SAP KERNEL 6.40 \ Windows Server \ MS SQL Server choose following SARs:
- Database Library
- R3LOAD
- R3load Control
- Kernel Part II (for Basis 640/620/610) Q1/2007 (very important)
Unpack it to newKernel directory and copy it to \exe\run directory.
Next step Frank Deijkers already wrote.
On the end of upgrade go to \exe\run catalog and run sapstartsrv.exe program for registering new service and COM library.
Regards,
Marcin -
Need help w/ setting up ports to run a server for America's Army
Need help w/ setting up ports to run a server for America's Army. I read wat u need to change the ports but i dont understand wat to put. here is wat the site says
Q: How do I run my own server?
A: Quick and dirty server info:
1. Edit RunServer.bat to change the map.
2. Run RunServer.bat
Or:
server.exe LAN MAPNAME.aao (Host a LAN game)
server.exe global MAPNAME.aao (Host a Public game)
Also: When you create a server setup and want to allow other users to join your server, you need make sure the following ports are open for outgoing and incoming traffic in your firewall: 1716 (UDP), 1717 (UDP), 20025-20045 (TCP), and 20047 (TCP). Failure to open these ports will prevent the server from accepting connections from other players or prevent other players from being able to see your server online.
There are several settings that also need to be defined in your server configuration INI file (in the Windows version, these files are located in “My Documents\America’s Army Server Settings\{settings file name}.ini”).
[Engine.GameEngine]
ServerActors=Andromeda.AndromedaMBS
[Andromeda.Andromeda]
GameServerIp=
Make sure that you set the actual IP address of the America’s Army Server under GameServerIp= (for example, “GameServerIp=000.000.000.000”). The supplied address must be your actual internet IP address, if this is left blank or you supply the IP address for your internal network (such as 192.168.0.x), your server will not be able to accept connections from the internet.
If your server.ini file contains the setting shown below, please change the QueryPort setting to 20025. This setting can also be removed, as the default setting is port 20025.
[Andromeda.AndromedaMBS]
QueryPort=20025
Punkbuster user fix correction.
If [Engine.GameEngine] block has been changed to read as below:
[Engine.GameEngine]
ServerActors=IPDrv.AndromedaMBS
Please add the following block to your INI file:
[IpDrv.AndromedaMBS]
QueryPort=20025
(Last Updated: 2006-04-20)Your images are not stored in the catalog. They are stored in folders on your computer. If you imported images that were already on your computer using the "Add" Option they are still in that same folder. If you imported images from your camera then they are in the folders that you specified when you imported. The catalog points to those images wherever they are located, and records all of the adjustments that you make to the image. When you send an image to Photoshop for further editing and save that image in Photoshop, it is normally saved back in the same folder as the original image.
Images are not "saved" in Lightroom. The basic default workflow in Lightroom is to store all of the adjustments in the catalog, leaving the original image completely unmodified. The catalog becomes the central controlling mechanism. It is a database that contains pointers to where the images are located and a record of all adjustments made to those images using Lightroom. Properly managed, you only have those original master files and secondary files for the ones that you have sent to Photoshop for further adjustment. When you want to provide a copy for someone else, you use the export dialogue for that purpose. I often export JPEG images to share with others or to post on the web. After I have usedthe JPEG for its intended purpose I delete it. -
Auto update stats disabled for a user Database in Sql server
While trying to improve the performance of few queries, we found via execution plan that there were lot of Index/Clustered index seeks. Therefore:
First thing we did, was to check our Re-indexing and update stats job which runs weekly for this user DB ( Around 400 GB in size and is used 24*5). The job was running fine.
Later when we ran SP_Blitz, we came to know that auto-update-stats is disabled for this user DB. We expected this to be a possible cause and change it from false to TRUE(Auto update stats)
Also, per SP_blitz there are user-created statistics for this DB. When ran the query to check how many, we saw around 7K user stats out there.
So my question would be 1) setting the Auto update stats to TRUE would require a reboot or once changed i need to track the performance and 2) Should we consider dropping those user created stats or manually look into them one by one.
How should we proceed on this, please suggest, thanks!There may be good reasons for having auto-stats off, but those cases are not very common. It makes a little more sense to turn if off on table level. An example of the latter is a relatively small table, say < 100000 rows where not many new rows are added,
but the existing rows are being updated frequently. This will trigger autostats, but probably without much benefit.
But if you have a system which is very busy during peak times, you may not want autostats take resources during those hours. But if you turn off autostats, you will need to make sure that stats are updated in some other fashion.
Here is a query that you can use review when your statistics last were updated:
SELECT o.name, s.name, stats_date(o.object_id, s.stats_id) AS lastupdated
FROM sys.objects o
JOIN sys.stats s ON s.object_id = o.object_id
--WHERE s.user_created = 1
ORDER BY lastupdated
7000 user-created statistics sounds a little excessive, but I guess they were added to compensate for the autostats that SQL Server were not permitted to create. I would not recommend dropping these statistics, as SQL Server would spend cycles on recreating
them.
You should not have to restart SQL Server for the Auto-update stats setting to take effect; it takes effect immediately.
Erland Sommarskog, SQL Server MVP, [email protected] -
MS14-055 security update for Microsoft Lync Server 2010
hello
after applying this security update do I need to Apply it to the back end database? or is that just when regular patches are applied?Hi totalnet32,
From http://support.microsoft.com/kb/2493736, we know that
"After you install the update for the Core Components server role on a Lync Server 2010 Enterprise Edition front end server, the updated SQL database files are dropped to the computer that has the Core Components server role installed.This
also applies to a Lync Server 2010 Standard Edition server. To apply the database changes, run the following cmdlets:
Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn <EEBE.Fqdn> -UseDefaultSqlPaths
2982388
(https://support.microsoft.com/kb/2982388/ )
MS14-055: Description of the security update for Microsoft Lync Server 2010 (Response Group Service): September 9, 2014
2982385
(https://support.microsoft.com/kb/2982385/ )
MS14-055: Description of the security update for Microsoft Lync Server 2010 (Security update for Standard/Enterprise edition Server): September 23, 2014
There's no Core Components server role update, as far as my experience, the DB update is not required.
And I suggest that reboot the Lync Servers once after the updates have been installed.
Best regards,
Eric -
I am having trouble with License Server / Daemon Manager when running LMS 3.1..
I have looked through this forum and checked that the following services are set correctly to Manual
CiscoWorks ANI database engine
CiscoWorks RME NG database engine
CiscoWorks Tomcat Servlet engine
CiscoWorks Web Server
CWAWFEngine database engine
CWCS Cmf database engine
DFM dfmEpm database engine
DFM dfmInv database engine
DFM dfmFh database engine
OpxXMLRuntime
I have triedshutting down the Daemon Manager and forcing the databases to close down (hoping that the transaction log might be the problem but so far no joy.. Was running okay for some months on Windows 2003 as a VM.
Packages installed are as follows...
Just about to give up and do a fresh install....any assistance would be appreciated.
Many thanks, Peter.
Name
Version
License Status
Size
CiscoWorks Common Services
3.2.0
Licensed
Not applicable
Campus Manager
5.1.0
Purchased
100
CiscoView
6.1.8
Licensed
Not applicable
CiscoWorks Assistant
1.1.0
Licensed
Not applicable
Device Fault Manager
3.1.0
Purchased
100
Internetwork Performance Monitor
4.1.0
Purchased
100
Integration Utility
1.8.0
Licensed
Not applicable
LMS Portal
1.1.0
Licensed
Not applicable
Resource Manager Essentials
4.2.0
Purchased
100It looks like you're seeing CSCte49301. Follow the release note steps to solve this:
Symptom:
The EssentialsDM daemon hangs in a Waiting to initialize state (as seen in the output of the pdshow command). Additionally, one might see "Error connecting to JRM" in Resource Manager Essentials applications.
Conditions:
This occurs on Windows servers after the patch for KB968930 is installed, and only if the Windows Remote Management service was started prior to starting CiscoWorks Daemon Manager.
Workaround:
Shutdown CiscoWorks Daemon Manager with the following command from the server's command prompt:
net stop crmdmgtd
Delete the following two files:
NMSROOT\MDC\tomcat\webapps\rme\WEB-INF\lib\ctmregistry
NMSROOT\MDC\tomcat\webapps\rme\WEB-INF\lib\ctmregistry.backup
Restart CiscoWorks Daemon Manager with the following command:
net start crmdmgtd
If that does not work, then the Windows Remote Management service must be stopped, and disabled. Then, CiscoWorks Daemon Manager must be restarted. -
I updated Office 2011 for Mac to its 14.4.1 version and, out of the blue, it could not connect to the Exchange server anymore. At my office they use Exchange 2007 and I am the only Mac in the building. I've deleted the account and added it again countless
times, and it reports username, password or security configuration issues.
I checked the HD (everything OK) and repaired the main identity (everything OK).
Still, I cannot get the color button to go from orange to green.
Hope someone can help.That's weird. I'll try to reproduce it in our labs.
What's the Exchange 2007 version? You can get it in EMS (Exchange Management Shell) with:
GCM exsetup |%{$_.Fileversioninfo}
I guess you are running Mavericks v10.9.3, and you are trying to connect locally?
Step by Step Screencasts and Video Tutorial
Maybe you are looking for
-
Why doesn't my text show up in the textbox
Hi, I have this code in here.And whenever the user presses this specific button,my text box should show up 2 or more lines of text,but instead the text box shows only the last line. private void lengthOfLargestArrayDimensionToolStripMenuItem_Click(o
-
[solved] firefox user settings not saving
I am a linux noob. So the answer to this is probably very obvious, but I haven't found it through googling, searching these forums or the arch wiki. I am having the same problem with most of my applications actually. The problem is that my firefox pe
-
Best way to extract data from archived cube
Hello Experts, Can anyone tell me best way to extract data from archived cube. Basically I am trying to pull all the data from archived cube and then load it into another brand new infoprovider which is in different box. Also I need to extract all th
-
Think i have a problem with my Video card help ???
Hi Guys Ok reason why i think this i currently have a black screen I can still use the mac via screen share from my G5 so i know all is ok & i am currently making sure i'm backing up I have tried to connect it to an external monitor but the mac doesn
-
LVC_FIELDCATALOG_MERGE
Hello the LVC_FIELDCATALOG_MERGE is a function modul, but i want to know, if LVC_FIELDCATALOG_MERGE it have in class? Regards anu