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)
Similar Messages
-
PowerShell Script running Excel won't run on Windows Server 2008 R2
I have a script that creates a report of a single example of each warning or error in the Windows Event log, for each server in a list of servers,with the number of times that error has occurred in the last week on each server. It creates this report in
Excel. I have this script running automated through Task Scheduler for one client on Windows 7 and it's working perfectly. I have another client that I am attempting to run this script automated on a server running Windows Server 2008 R2. I can manually run
the script and everything works, but if I try to schedule the script everything works except for the Excel PowerShell commands. I've have tried:
Created the Desktop folders for config\systemprofile in System32 and in SysWOW64.
Configured permissions in DCOM for Microsoft Excel Application.
Configured folder permissions for config\systemprofile.
Verified PowerShell is working.
Unchecked the option in the task to only run while logged on.
Does anyone have any idea why this is happening and how I can fix it? Thanks!
Sincerely,
Christopher BeardYou might have to launch the application once as the system account so that it can set up the Excel environment, I've had the same problem when trying to update Excel files from an admin Powershell console using my admin account. Use psexec with
a -s option to run it as system account locally while logged on to the target server:
psexec -s "c:\program files (x86)\microsoft office\office14\excel.exe"
Then you'll most likely be prompted to input initials - which is what I suspect is preventing your code from running properly.
There may be some other more elegant way to handle this, but you'd be better off asking that question in one of the forums devoted to Office products.
I hope this post has helped! -
AN odd sql script run on server every 20 seconds
I run profiler trace T-sql for one day today, and I see below script run under sa account every 20 seconds on the server:
select table_id, item_guid,
oplsn_fseqno, oplsn_bOffset, oplsn_slotid
from [DB_Name].[sys].[filetable_updates_1983398185]
with (readpast)
order by table_id
What is this script? and how to stop it running every 20 seconds? Thanks!Vivian,
Are you using FileStream feature, similar issue is discussed here, Please refer
here and
here too
Thanks
Manish
Please click Mark as Answer if my post solved your problem and click
Vote as Helpful if this post was useful. -
Multi-Select Script Runs in ISE, not on remote Hyper-V Server
Hello All!
I've created a powershell script to allow a user to launch one of several management tools on a Hyper-V server. The script runs fine in Powershell ISE on my system (none of the tools work, obviously) but when I run it on the remote server, these errors
come up:
At C:\Mgmt\MgmtSel.ps1:70 char:1
+ }
+ ~
Unexpected token '}' in expression or statement.
At C:\Mgmt\MgmtSel.ps1:72 char:1
+ }
+ ~
Unexpected token '}' in expression or statement.
At C:\Mgmt\MgmtSel.ps1:73 char:1
+ }
+ ~
Unexpected token '}' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken
When I paste it directly into the Powershell window, it runs fine. So strange! I know my brackets are correct, or it wouldn't run when pasted into the shell or in ISE. Anyway, any help you could provide would be appreciated. Thank you all for your time!
Here's the script:
<######################################################################
Present user with options to launch one of several management programs
Save as MgmtSel.ps1 in c:\Mgmt
v 0.1 Basic Menu Presentation for different management tools
Written By Ricky Carleton
Based on code by Paul Westlake
######################################################################>
$xAppName = ‘MgmtSel’
[BOOLEAN]$global:xExitSession=$false
function LoadMenuSystem(){
[INT]$xMenu1=0
[INT]$xMenu2=0
[BOOLEAN]$xValidSelection=$false
while ( $xMenu1 -lt 1 -or $xMenu1 -gt 4 ){
CLS
#… Present the Menu Options
Write-Host “`n`tLogin Management Tools Selection – Version 0.1`n” -ForegroundColor Magenta
Write-Host “`t`tPlease select the admin area you require`n” -Fore Cyan
Write-Host “`t`t`t1. sconfig console” -Fore Cyan
Write-Host “`t`t`t2. Corefig” -Fore Cyan
Write-Host “`t`t`t3. Hyper-V Mgmt” -Fore Cyan
Write-Host “`t`t`t4. Quit and exit`n” -Fore Cyan
#… Retrieve the response from the user
[int]$xMenu1 = Read-Host “`t`tEnter Menu Option Number”
if( $xMenu1 -lt 1 -or $xMenu1 -gt 4 ){
Write-Host “`tPlease select one of the options available.`n” -Fore Red;start-Sleep -Seconds 1
Switch ($xMenu1){ #… User has selected a valid entry.. load next menu
1 {
CLS
Write-Host “`t`tStarting sconfig`n” -Fore Cyan
start c:\Windows\System32\sconfig.cmd
2 {
CLS
Write-Host “`t`tStarting Corefig`n” -Fore Cyan
C:\Corefig\COREFIG.PS1
3 {
while ( $xMenu2 -lt 1 -or $xMenu2 -gt 3 ){
CLS
# Present the Menu Options
Write-Host “`n`tSelect the Hyper-V Mgmt Tool you would like to use`n” -Fore Cyan
Write-Host “`t`t`t1. PSHVM30” -Fore Green
Write-Host “`t`t`t2. ProHVM (not working yet)” -Fore Green
Write-Host “`t`t`t3. Go to Main Menu`n” -Fore Green
[int]$xMenu2 = Read-Host “`t`tEnter Menu Option Number”
if( $xMenu1 -lt 1 -or $xMenu1 -gt 3 ){
Write-Host “`tPlease select one of the options available.`n” -Fore Red;start-Sleep -Seconds 1
Switch ($xMenu2){
1 {
CLS
Write-Host “`t`tStarting PSHVM`n” -Fore Cyan
call powershell -WindowStyle Hidden C:\PSHVM30\hyperv.ps1
2 {
CLS
Write-Host “`t`tStarting Corefig (For now, later, ProHVM)`n” -Fore Cyan
start C:\Corefig\COREFIG.PS1
default { Write-Host “`n`tYou Selected Option 3 – Go to Main Menu`n” -Fore Yellow; break}
default { $global:xExitSession=$true;break }
LoadMenuSystem
If ($xExitSession){
Exit-PSSession #… User quit & Exit
} Else {
C:\Mgmt\MgmtSel.ps1 #… Loop the functionHow are you running the script on the server? Pasting into the ISE on the server, saving as a script and running it from the command line on the server? Or something else?
When you say you paste it into the PowerShell window and it runs fine, is this PowerShell window on your machine or the server? How are you pasting it (RDP? Teamviewer? VNC?).
It appears that some of the characters are not being saved/pasted correctly. You could try paste into notepad first and make sure all the characters are correct there, then select all and paste into the window on the server, or use noteapad to save the document
as a regular text file before copying to the server. -
Front end application error after import script run successfully in R12
Hi ,
i got an exception in R12 environment.
i developed one simple OAF page and deployed in apps import script run successfully.
but when i am opening that page in Front end it will give an exception.
That is
Exception Details.
oracle.apps.fnd.framework.OAException: Could not load application module 'tflsm.oracle.apps.po.per.server.TflsmAM'.
## Detail 0 ##
JBO-30003: The application pool (cph-oadb-tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
## Detail 0 ##
oracle.jbo.NoDefException: JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)
JBO-30003: The application pool (cph-oadb-tst22.dk.flsmidth.netTST221543tflsm.oracle.apps.po.per.server.TflsmAM) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.NoDefException, msg=JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
## Detail 0 ##
oracle.jbo.NoDefException: JBO-25002: Definition tflsm.oracle.apps.po.per.server.TflsmAM of type ApplicationModule not found
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:441)
i will check all the class files and xml files of Application Module below top, all are there in the server top(below top)
/u02/TST22/apps/apps_st/comn/java/classes/xxfls
but i got the exception.
is there any different structure in R12.
i.ein the server top /u02/TST22/apps/apps_st/comn/java/classes/xxfls (Here my all class files in Binary mode and xml files in ASCII mode)
only CLASS files are needed or XML files are also need.(i am moving all CLASS and XML files)
could you please help me on this.
Thanks with Regards,
MuthuMuthu,
This issue usually occurs when the AM.class file is not available at the given location. Try to find out on the server whether this
tflsm.oracle.apps.po.per.server.TflsmAM exists.
If still the problem persists then go for redeployement by deleting the existing one.
Regards,
Gyan -
STEPS TAKEN:
Logged into Mac for first time today.
Noticed a new individual file in Directory Library ".a.text". (Settings disply hidden system file/folders)
File contained only the text "--purge".
Meta data on file directed source to bash process run @ startup.
Attached History command output.
Disabled ARD for now.
SETTINGS:
All Sharing was Off.
Firewall was set to Block All Incoming Connections.
Home network with no other active users at time.
Upgraded to Mavs 10.9.2 last night.
Do not use any file sharing or remote access into Mac.
The SSH host attempts were my old Amazon EC2 instances.
Appears to start bitcoin app and few databases.
Worth noting I've been having tons of various issues last few months.
Thanks.
<POB> My CommandLine prompts. XXXX on locals.
XXXXXX:~ Administrator$ export HISTTIMEFORMAT='%F %T '
XXXXXX:~ Administrator$ history
<POB> OUTPUT
1 2014-02-27 17:23:35 rm -rf ~/.Trash/*
2 2014-02-27 17:23:35 cd
3 2014-02-27 17:23:35 .
4 2014-02-27 17:23:35 ./
5 2014-02-27 17:23:35 cd
6 2014-02-27 17:23:35 lib
7 2014-02-27 17:23:35 cd/
8 2014-02-27 17:23:35
9 2014-02-27 17:23:35 ls
10 2014-02-27 17:23:35 cd downloads
11 2014-02-27 17:23:35 ls downloads
12 2014-02-27 17:23:35 ls Downloads
13 2014-02-27 17:23:35 find / -nouser -ls
14 2014-02-27 17:23:35 find /~nouser -ls
15 2014-02-27 17:23:35 ls
16 2014-02-27 17:23:35 ls /library
17 2014-02-27 17:23:35 /LaunchAgents
18 2014-02-27 17:23:35 ls /LaunchAgents
19 2014-02-27 17:23:35 ls /Automator
20 2014-02-27 17:23:35 ls /KeyChains
21 2014-02-27 17:23:35 sha
22 2014-02-27 17:23:35 toop
23 2014-02-27 17:23:35 top
24 2014-02-27 17:23:35 dscl . -list /Users UniqueID
25 2014-02-27 17:23:35 $ dscl -plist . readall /users
26 2014-02-27 17:23:35 $ dscl . readall /users
27 2014-02-27 17:23:35 $ dscl . readall /503
28 2014-02-27 17:23:35 ls/Users
29 2014-02-27 17:23:35 - dscacheutil -q group
30 2014-02-27 17:23:35 cd
31 2014-02-27 17:23:35 cd.
32 2014-02-27 17:23:35 cd .
33 2014-02-27 17:23:35 ls
34 2014-02-27 17:23:35 ifconfig
35 2014-02-27 17:23:35 ifconfig
36 2014-02-27 17:23:35 ifconfig
37 2014-02-27 17:23:35 config helper
38 2014-02-27 17:23:35 config
39 2014-02-27 17:23:35 ls
40 2014-02-27 17:23:35 ssh awsXXXX
41 2014-02-27 17:23:35 defaults write com.google.Keystone.Agent checkInterval 0
42 2014-02-27 17:23:35 exit
43 2014-02-27 17:23:35 exit
44 2014-02-27 17:23:35 /var/log/secure.log
45 2014-02-27 17:23:35 ssh awsXXXXXX
46 2014-02-27 17:23:35 exit
47 2014-02-27 17:23:35 kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
48 2014-02-27 17:23:35 sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfi x|x)/{print $3}'
49 2014-02-27 17:23:35 launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
50 2014-02-27 17:23:35 ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta} * L*/Fonts 2> /dev/null
51 2014-02-27 17:23:35 osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
52 2014-02-27 17:23:35 top
53 2014-02-27 17:23:35 ps
54 2014-02-27 17:23:35 top
55 2014-02-27 17:23:35 top
56 2014-02-27 17:23:35 top
57 2014-02-27 17:23:35 sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/k ickstart -agent -stop
58 2014-02-27 17:23:35 man who
59 2014-02-27 17:23:35 who
60 2014-02-27 17:23:35 whoami
61 2014-02-27 17:23:35 ps -aux
62 2014-02-27 17:23:35 ps
63 2014-02-27 17:23:35 top
64 2014-02-27 17:23:35 ps -eo pid,etime
65 2014-02-27 17:23:35 top
66 ??ps aux | less
67 2014-02-27 17:23:35 pstree
68 2014-02-27 17:23:35 ps -eo euser,ruser,suser,fuser,f,comm,label
69 2014-02-27 17:23:35 pgrep
70 2014-02-27 17:23:35 pgrep remote
71 2014-02-27 17:23:35 apt-get install htop
72 2014-02-27 17:23:35 htop
73 2014-02-27 17:23:35 netstat -tulpn | grep :80
74 2014-02-27 17:23:35 ls -l /proc/635/exe
75 2014-02-27 17:23:35 swapon -a
76 2014-02-27 17:23:35 ma ps
77 2014-02-27 17:23:35 man ps
78 2014-02-27 17:23:35 man ps
79 2014-02-27 17:23:35 ps -a
80 2014-02-27 17:23:35 ps -A
81 2014-02-27 17:23:35 whoami
82 2014-02-27 17:23:35 ps -f
83 2014-02-27 17:23:35 ps -G
84 2014-02-27 17:23:35 ps -g
85 2014-02-27 17:23:35 ps -T
86 2014-02-27 17:23:35 ps-t
87 2014-02-27 17:23:35 ps -v
88 2014-02-27 17:23:35 ps start
89 2014-02-27 17:23:35 top
90 2014-02-27 17:23:35 ps
91 2014-02-27 17:23:35 users
92 2014-02-27 17:23:35 last
93 2014-02-27 17:23:35 ls /var/log/wtmp*
94 2014-02-27 17:23:35 last -f /var/log/wtmp.1
95 2014-02-27 17:23:35 last -f /var/log/wtmp.0
96 2014-02-27 17:23:35 ~/.bash_history
97 2014-02-27 17:23:35 cat ~/.bash_history
98 2014-02-27 17:23:35 ls /Automator
99 2014-02-27 17:23:35 cat Automator
100 2014-02-27 17:23:35 open ~/.bash_history
101 2014-02-27 17:23:35 dscl . readall /users
102 2014-02-27 17:23:35 ls/library
103 2014-02-27 17:23:35 cd/library
104 2014-02-27 17:23:35 cd..
105 2014-02-27 17:23:35 cd
106 2014-02-27 17:23:35 ls
107 2014-02-27 17:23:35 cd Library
108 2014-02-27 17:23:35 cd/Library
109 2014-02-27 17:23:35 ls/Automator
110 2014-02-27 17:23:35 toop
111 2014-02-27 17:23:35 top
112 2014-02-27 17:23:35 ifconfig
113 2014-02-27 17:23:35 config helper
114 2014-02-27 17:23:35 config
115 2014-02-27 17:23:35 top
116 2014-02-27 17:23:35 ps -a
117 2014-02-27 17:23:35 ps -A
118 2014-02-27 17:23:35 ps -aux
119 2014-02-27 17:23:35 ps
120 2014-02-27 17:23:35 getprocessforpid(677)
121 2014-02-27 17:23:35 man ps
122 2014-02-27 17:23:35 ps -U
123 2014-02-27 17:23:35 ps -u
124 2014-02-27 17:23:35 GetProcessPID(494)
125 2014-02-27 17:23:35 GetProcessPID() q
126 2014-02-27 17:23:35 GetProcessPID494
127 2014-02-27 17:23:35 GetProcessPID 494
128 2014-02-27 17:23:35 netstat -b
129 2014-02-27 17:23:35 top
130 2014-02-27 17:23:35 top
131 2014-02-27 17:23:35 top
132 2014-02-27 17:23:35 netstat -a
133 2014-02-27 17:23:35 netstat -a | grep vnc | grep ESTABLISHED
134 2014-02-27 17:23:35 top
135 2014-02-27 17:23:35 netstat -a
136 2014-02-27 17:23:35 top
137 2014-02-27 17:23:35 top
138 2014-02-27 17:23:35 netstat -a
139 2014-02-27 17:23:35 ps -aux
140 2014-02-27 17:23:35 netstat -a | grep vnc | grep ESTABLISHED
141 2014-02-27 17:23:35 ps -aux
142 2014-02-27 17:23:35 ps -A
143 2014-02-27 17:23:35 ps -A
144 2014-02-27 17:23:35 netstat -a | grep vnc | grep ESTABLISHED
145 2014-02-27 17:23:35 netstat -a
146 2014-02-27 17:23:35 top
147 2014-02-27 17:23:35 top
148 2014-02-27 17:23:35 netstat -a
149 2014-02-27 17:23:35 netstat -a
150 2014-02-27 17:23:35 netstat -a
151 2014-02-27 17:23:35 q
152 2014-02-27 17:23:35 top
153 2014-02-27 17:23:35 top
154 2014-02-27 17:23:35 sudo tmutil disablelocal
155 2014-02-27 17:23:35 exit
156 2014-02-27 17:23:35 top
157 2014-02-27 17:23:35 top
158 2014-02-27 17:23:35 top
159 2014-02-27 17:23:35 top
160 2014-02-27 17:23:35 top
161 2014-02-27 17:23:35 top
162 2014-02-27 17:23:35 neststat -n
163 2014-02-27 17:23:35 netstat -n
164 2014-02-27 17:23:35 netstat -n
165 2014-02-27 17:23:35 ls
166 2014-02-27 17:23:35 lsaf
167 2014-02-27 17:23:35 cd ..
168 2014-02-27 17:23:35 cd ..
169 2014-02-27 17:23:35 cd ..
170 2014-02-27 17:23:35 cd ..
171 2014-02-27 17:23:35 ls
172 2014-02-27 17:23:35 top
173 2014-02-27 17:23:35 netstat
174 2014-02-27 17:23:35 dscl . list/users
175 2014-02-27 17:23:35 cd ~
176 2014-02-27 17:23:35 dscl . list/users
177 2014-02-27 17:23:35 dscl . list /users
178 2014-02-27 17:23:35 dscl . list /groups
179 2014-02-27 17:23:35 dscl . readall /users
180 2014-02-27 17:23:35 netstat
181 2014-02-27 17:23:35 netstat
182 2014-02-27 17:23:35 whoami
183 2014-02-27 17:23:35 ls
184 2014-02-27 17:23:35 cd ..
185 2014-02-27 17:23:35 cd ..
186 2014-02-27 17:23:35 cd .
187 2014-02-27 17:23:35 cd ..
188 2014-02-27 17:23:35 ls
189 2014-02-27 17:23:35 tree
190 2014-02-27 17:23:35 cd Users
191 2014-02-27 17:23:35 ls
192 2014-02-27 17:23:35 cd Administrator
193 2014-02-27 17:23:35 ls
194 2014-02-27 17:23:35 cd ..
195 2014-02-27 17:23:35 cd ..
196 2014-02-27 17:23:35 cd ..
197 2014-02-27 17:23:35 ls
198 2014-02-27 17:23:35 cd Users
199 2014-02-27 17:23:35 ls
200 2014-02-27 17:23:35 cd Adminstrator
201 2014-02-27 17:23:35 cd Administrator
202 2014-02-27 17:23:35 ls
203 2014-02-27 17:23:35 cd Downloads
204 2014-02-27 17:23:35 ls
205 2014-02-27 17:23:35 exit
206 2014-02-27 17:23:35 whoami
207 2014-02-27 17:23:35 ls
208 2014-02-27 17:23:35 ls
209 2014-02-27 17:23:35 cd Library
210 2014-02-27 17:23:35 ls
211 2014-02-27 17:23:35 cd Application Support
212 2014-02-27 17:23:35 ls
213 2014-02-27 17:23:35 cd ..
214 2014-02-27 17:23:35 ls
215 2014-02-27 17:23:35 cd ..
216 2014-02-27 17:23:35 ls
217 2014-02-27 17:23:35 cd pXXXXXXXX
218 2014-02-27 17:23:35 ls
219 2014-02-27 17:23:35 cd Library
220 2014-02-27 17:23:35 whoami
221 2014-02-27 17:23:35 sudo - Adminsitrator
222 2014-02-27 17:23:35 ls
223 2014-02-27 17:23:35 ls
224 2014-02-27 17:23:35 sudo -
225 2014-02-27 17:23:35 more /etc/hosts
226 2014-02-27 17:23:35 scc ver
227 2014-02-27 17:23:35 scc numprofiles
228 2014-02-27 17:23:35 netstat -an |find /i "listening"
229 2014-02-27 17:23:35 netstat
230 2014-02-27 17:23:35 top
231 2014-02-27 17:23:35 kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
232 2014-02-27 17:23:35 sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfi x|x)/{print $3}'
233 2014-02-27 17:23:35 launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}'
234 2014-02-27 17:23:35 ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta} * L*/Fonts 2> /dev/null
235 2014-02-27 17:23:35 osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
236 2014-02-27 17:23:35 osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null
237 2014-02-27 17:23:35 top
238 2014-02-27 17:23:35 dscacheutil -flushcache
239 2014-02-27 17:23:35 sudo killall -HUP mDNSResponder
240 2014-02-27 17:23:35 top
241 2014-02-27 17:23:35 ./bitcoin-qt
242 2014-02-27 17:23:35 cd $home
243 2014-02-27 17:23:35 ls
244 2014-02-27 17:23:35 cd ..
245 2014-02-27 17:23:35 cd ..
246 2014-02-27 17:23:35 cd ..
247 2014-02-27 17:23:35 ls
248 2014-02-27 17:23:35 cd Applications
249 2014-02-27 17:23:35 ls
250 2014-02-27 17:23:35 ./bitcoin-qt.app
251 2014-02-27 17:23:35 top
252 2014-02-27 17:23:35 ps -420
253 2014-02-27 17:23:35 ps -9541
254 2014-02-27 17:23:35 top
255 2014-02-27 17:23:35 /Applications/Postgres93.app/Contents/MacOS/bin/psql ; exit;
256 2014-02-27 17:23:35 /Applications/Postgres93.app/Contents/MacOS/bin/psql ; exit;
257 2014-02-27 17:23:35 top
258 2014-02-27 17:23:35 ps -a (2077)
259 2014-02-27 17:23:35 ps -a2077
260 2014-02-27 17:23:35 sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
261 2014-02-27 17:23:35 top
262 2014-02-27 17:23:35 on run
263 2014-02-27 17:23:35 do shell script "osascript -e 'tell app \"ARDAgent\" to do shell script \"say quack\"'"
264 2014-02-27 17:23:35 end run
265 2014-02-27 17:23:35 ls -ls /System/Library/Filesystems/AppleShare/check_afp.app/Contents/MacOS/check_afp 2
266 2014-02-27 17:23:35 sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
<POB> ENDI'm extremely unclear on exactly what's happening. You mention something about a script running at startup in your subject, but then never mention that again. What's going on there? Where are you finding that script?
That script would suggest someone playing a joke on you, by making your computer say "quack" every time you start up. That's not indicative of malware.
On the other hand, a hidden file as you describe is a common malware trick, though I'm not sure why it would only contain "--purge" - that isn't a complete command, as far as I know, and the purge command isn't likely to be used for malicious purposes anyway.
Still, you do have some indication that you're using Bitcoin-related apps, and there has been some Bitcoin malware that has appeared recently. See:
New CoinThief malware discovered
Note that the post on MacRumors that you refer to in your second post is almost six years old, and references a vulnerability that was closed later in 2008. It's completely irrelevant to any modern system. -
Maxl Script running Issue in Essbase 11.1.2.2
Hi All,
We have a Maxl Script which takes Level 0 Backup of the Database. We have migrated the apps to the new server 11.1.2.2 and this script is not running in the new server but it works fine in the Old Server.We have the code like this in the script
REM $1 = USERNAME
REM $2 = PASSWORD
REM $3 = servername
REM $4 = BSOAppName = RPSBSO
REM $5 = BSODB_Name = RPSBSOD
REM $6 = ASOAppName = RPSASO
REM $7 = ASODB_Name = RPSASOD
essmsh C:\Hyperion\Automation\MAXL\Backup_BSO.msh Username password gvw3086-v.atlanta.hp.com RPSBSO RPSBSOD RPSASO RPSASOD
When i run the .bat script an Fatal Error is shown under the above line saying
MSH Fatal Error: Error Initializing localization module.
I have changed all the path locations,server names etc according to the new environment in the script but the script is displaying error like above. Can any one help me on this.
Regards,
Naveen972698 wrote:
Hi John Thanks for your post.
I would like to give some more information like this is the script named BU_BSO_2.bat which is used for taking backup of individual application RPSBSO, and it calls Backup_BSO.msh script which is internally called in BU_SO_2.bat file as given below the command. What we do is we just run this BU_BSO_2.bat batch file where it executes everything and places the backup in given path in the script. But actually its giving error in executing only the given below line
essmsh C:\Hyperion\Automation\MAXL\Backup_BSO.msh Username password gvw3086-v.atlanta.hp.com RPSBSO RPSBSOD RPSASO RPSASOD
Error shown : MSH Fatal Error: Error Initializing localization module
And i went through your doc but they are the server specific paths which we are not using in this script and this script runs fine in 11.1.1.
Let me know if i can provide any more information.
Regards,
Naveen
Try updating
essmsh C:\Hyperion\Automation\MAXL\Backup_BSO.msh Username password gvw3086-v.atlanta.hp.com RPSBSO RPSBSOD RPSASO RPSASOD
to
startMaxl.bat C:\Hyperion\Automation\MAXL\Backup_BSO.msh Username password gvw3086-v.atlanta.hp.com RPSBSO RPSBSOD RPSASO RPSASOD
If the location of startMaxl is not in the windows path variable you will need to either update the path variable or put the path in the script e.g.
C:\Oracle\Middleware\user_projects\epmsystem1\EssbaseServer\essbaseserver1\bin\startMaxl.bat
or C:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin\startMaxl.cmd
Alternatively edit startMaxl and take the variable information out of it and put it in your script then you will be able to use essmsh.
Cheers
John
http://john-goodwin.blogspot.com/ -
User sites unreachable after weekly script run
Server 10.3.9 on both my webserver and on my Xserve with RAID where my user sites are hosted.
I have sites hosted directly on my webserver and my user sites are served through the webserver but site on the Xserve, shared through Open Directory.
Everything works awesome except every Saturday morning, after the weekly script runs on both machines at 4:30 a.m., my users sites are no longer available through the webserver. If I reboot the webserver they come back just fine.
I've looked through the weekly script and nothing was obvious to me that would break this connection.
Has anyone else seen this?
Thanks
EricThanks for these tips. I've tried them and a few other things...
It sounds, and I may be wrong, like you're proxying
through your webserver to your file server for the
user sites. The first thing will be to find out
which machine is getting goofed up.
Tomorrow, see if your regular websites are accessible
after the script runs.
The user sites are not available this morning through my webserver, as has been the case since installing the server in January. The regular (local) sites on the webserver are just fine.
Try the user's sites directly
from the file server, eliminating the webserver
proxying.
I don't usually run the webserver on my file server but I did fire it up this morning and was able to reach the user sites through it.
If both of those are okay, then setup a
terminal window on each machine, and on both machines
do:
tail -f /var/log/httpd/error_log
and try hitting the user's sites through the
webserver and see what messages come up on each
machine, and post them.
I don't get any error messages when accessing the user sites through the fileserver. I do get errors on the webserver when accessing user sites, saying "File does not exist:" then the path to the Network directory where the users site is. ( /Network/Servers/fileserver.address/Volumes/Home/username/Sites )
This prompted me to try accessing user sites from one of my desktop machines (running OS X client 10.4.5) that is also connected to the fileserver with OD, and is running a webserver. That worked fine!
I then tried to traverse the filesystem at the command line on my webserver to reach the users home sites and couldn't do it. I could do it on my desktop machine.
So it appears that something on Server is breaking the AFP communication between the webserver and the fileserver when the periodic weekly scripts are run. I did try restarting AFP on the webserver just in case but that made no difference. I can't really restart AFP on the fileserver as I have users actively connected, but my guess is that is working just fine since I can access those shared volumes from my desktop machines.
Instead of restarting whichever machine you've been
restarting, try stopping and starting just the
webserver to see if that takes care of the problem.
I did try this and everything was the same as above.
Strange that Server has this problem losing connection to AFP shares, but my clients don't. There isn't anything obvious to me in the weekly scripts that could cause this but I'll look again in case I missed this.
Seems like others would have run across this??
Note: a reboot of the webserver again this morning (after this testing) returned the users sites to my webserver. Doing an automatic reboot each week would be a kludge solution, but one that I really want to avoid if possible.
Thanks for the troubleshooting tips. I hope you or someone else has some further advice...
Eric
iBook G4, iMac G5, Dual 2.5 GHz G5 Mac OS X (10.4.4)
Dual G4 and single Xserve with RAID Mac OS X (10.3.9) -
I have a problem with scripts running a lot.They hang up my page when i'm trying to search or navigate for stuff.A box will come up saying "long running script"..Is this normal because of the browser doing stuff or is it something else?
Hello SK
All your workflows, assignments and validation will be lost in new repository.
Moreover, for exclude problem with starting repository on new environment you should do next steps.
1)If some WF in process you should develop some application that will get record_id and current WF step(or do it manually) and save that information before start your migration activity.
2)after that you should delete all WF(and its history), assignment, validation.
Congratulation, you are ready to start migration.
I'm not sure that your unix script can manage mdm syndication server, only if that script run some application working with SAP MDM API.
In that case you should modify application because in SAP MDM API 5.5 and 7.1 is different.
To Clix application - in SAP MDM 7.1 has been added some changes in command string notation.
Regards
Kanstantsin Chernichenka -
My toolbar is missing and there is a button at the top left that asks me to "Please re-install the Toolbar" but when I click on it nothing happens???
Then when I start Mozilla I get a long delay before it launches and a script running error "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
Script: chrome://tavgp/content/libs/include.js:595"
How do I solve these issues???No idea - and you provide no clues
what version of iPHoto do you have? Of the OS? is the iPhoto icon you are speaking of in the Dock?
re-read your post and try to provide information using standard Mac terms since we can not see you or your computer and only have your worrds to let us try to help you
Somehow my "IPhoto" icon now says "Preview". When I click on "Preview" nothing opens up except the bar says Preview. When I click on the Preview on the bar, a box opens up with different items, except when I click on any of them, there is nothing there. The only thing that work is the "quit preview". However, it is still there where my IPhoto icon should be. I can't get into my IPhoto. How do I get rid of this "Preview" and how did it end up taking over the IPhoto icon???
If you go to your Applications folder and double click on iPhoto what happen?
LN -
Firefox freezes due to a script running. how can I stop it or fix it
I keep having a script run when I am playing Face Book games Especially Battle Pirates and it freezes everything. What can i do to stop it? Or fix it so it dosen't freeze my game?
This script runs over and over while I am playing Battle Pirates. Every time it runs it freezes the darn game and I have to click and click on the screen before a box pops up with a long string and asks if I want to stop the string. This is what it says:
"A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete."
" Script:http://static.ak.fbcdn.net/rsrc.php/...tS5XVSwP/ks:42 "
What is this and dose it need to run or is it a hacker messing with me and my FF browser ?
When I'm in the middle of a battle screen and it freezes it messes me up. If I am in full screen when it freezes it throws me to another open Browser tab or out of full screen if i don't have another open.
What is this? Something to do with FaceBook? A Hacker ? A BP game glitch. please help. This is driving me crazy. Imagine being in the middle of the best part of a BP battle and freeze.... then click click click i go and zoom to another open window away from the battle so i no longer have a view of the fight let alone control it or boom to non full screen and 1/2 the screen is obscured.
It just happened again while I was typing this request for help. I have a window open with BP also and it took me there. HELPHi knighterrant56,
Have you looked at the Knowledge Base article [[Problems using Facebook in Firefox]]? There is a lot of good troubleshooting information in there. Please be sure to try all of the suggested steps. Each one is valuable and may be the answer to your issue.
Hopefully this helps! -
'suspend' command in script run as a cronjob not working
I have the following 2 lines in a script run every minute :
echo "test" >> $HOME/test
/usr/bin/systemctl suspend
The script is run properly as the file 'test' is appended with 'test' every minute. But the suspend command doesn't work. Both command work when they are entered manually.
What could be causing this?To expand on what I think thegala is trying to get at, the use of systemctl's suspend, poweroff, etc. are all made available to a regular user through polkit and logind. So I am not sure that the cron daemon gets itself an authenticated session, making that suspend non-functional.
-
Progress bar to update as script runs
Hi, I'd like to have a progress bar being displayed as my script runs. I created a simple progress bar as follows:
var win = new Window("palette", "SnpCreateProgressBar", [150, 150, 600, 260]);
win.pnl = win.add("panel", [10, 10, 440, 100], "Script Progress");
win.pnl.progBar = win.pnl.add("progressbar", [20, 35, 410, 60], 0, 100);
win.pnl.progBarLabel = win.pnl.add("statictext", [20, 20, 320, 35], "0%");
win.show();
while(win.pnl.progBar.value < win.pnl.progBar.maxvalue)
// this is what causes the progress bar increase its progress
win.pnl.progBar.value++;
win.pnl.progBarLabel.text = win.pnl.progBar.value+"%";
$.sleep(10);
alert('Done!');
win.close();
Now, if I target the ExtendScript Toolkit, I can see the "animation" of the bar progressing. But If I target illustrator, I only see when it's at 0% and then it jump to 100%. Is there a way to update the information visually as the script progresses?
Thanks!
I'm running CS6 on mac.Hi,
i was using the above code in my application but it is displaying the following message when i run it:
Can you please help me out.
Thanks
Harsh -
Will scripts run automatically ?
If I shut down my Mac everynight(I live in a time zone 6 hours ahead of Eastern US time), will the scripts run automatically when I start it up the next morning...or...do I need a special utility application for this ?
these scripts are not worth worrying about. you should just leave them alone. the OS does a very good job of running them all by itself. and they are all quite useless anyway. many people (apparently yourself included) seem to think that these periodic scripts are important maintenance tools and will make your system run better and faster. nothing can be further from the truth.
*monthly scripts* :
1. archive and recycle fax logs. have you used your mac as a fax machine lately?
2. write accounting information (total uptime of every account) in the monthly.out log.
That's IT. so unless you use your mac as a fax machine (do you, really?) you don't need to run monthly scripts. EVER.
*weekly scripts*:
in snow leopard they do one thing ONLY: rebuild whois database. it's only useful if you are a unix user and actually use the whois terminal command at least on occasion. I'll bet my bottom dollar you never have and never will. then you don't need to run the weekly scripts either. EVER.
*daily scripts*
they do several things
1. clean up the logs from /Library/Logs/CrashReporter which are more than 60 days old. hardly an urgent task. and those logs are really very few unless your system is seriously messed up. you can go a year without deleting any and will collect a few MBs at the most.
2. delete junk from /tmp directory that's more than 3 days old.
This is done automatically on every reboot without any periodic scripts. if you don't reboot the computer then daily scripts will run *no matter* the schedule. if you don't sleep the computer at night they'll run at night. if you do sleep the computer at night they will run first thing in the morning when the computer is turned on. again, zero need to reschedule anything.
3. deletes files older than 7 days from /var/rwho. this is only relevant if you are running a unix network. otherwise there is nothing to delete - EVER.
4. rotate accounting files. again, those are nonexistent unless you are a unix administrator.
5. run the terminal command *df -l -h* and print out the output to daily.out. all this command does is list currently mounted hard drives. useless.
6.print the current network status in daily.out. this is again just reporting not maintenance.
7. Delete system messages. Once again this is relevant only for multi-user Unix systems.
8. remove scratch fax files. see my comment above about using your mac as a fax machine.
9. it writes some other accounting and system status info to daily.out. this is again only reporting and is ONLY actually present on unix networks.
and that's all, folks. -
Request: tag each script run
Since each time you execute a script it outputs to the same log window, and sometimes you have to run a script multiple times (e.g. while debugging it), it would be useful to preface each run with some sort of divider:
== Script run at 10:04 AM PST ====================
So it would be easy to see where each run begins and ends . . .
Tim KeatingThat took care of it. Thanks for the help.
If you would answer another question for me, I sure would appreciate it.
Whenever I create beans or try using tab libraries, I always have to put them in common directories instead of the directories where they should be deployed.
An example was this request tag library. I had the taglibs-request.tld file in this directory, but it didn't work:
C:\tomcat\jakarta-tomcat-4.1.30\webapps\ROOT\ch09\WEB-INF
When I put it in this directory, the request.jsp page came right up:
C:\tomcat\jakarta-tomcat-4.1.30\webapps\ROOT\WEB-INF
Another example is beans. Instead of the file working here:
C:\tomcat\jakarta-tomcat-4.1.30\webapps\ROOT\ch06\WEB-INF\classes\beans
I have to place my beans here:
C:\tomcat\jakarta-tomcat-4.1.30\common\classes\beans
Perhaps I am misunderstanding the whole location issue. Any help would be appreciated.
Maybe you are looking for
-
I updated the ios on my ipod touch. Now when I browse the itunes store on my ipod, it only allows a very brief visit before automatically closing me out. I have to go back into the store and begin searches etc all over again. Is this a setting or a p
-
Does anyone have any advice?
-
Gray rule around clipped images when exporting as PDF?
I've been clipping images in Photoshop CS6 (Macbook Pro retina) and placing them in my InDesign layout but when I export to PDF, a gray rule appears around the clipped images. It is not visable anywhere in the Photoshop files. Thank you for any advis
-
Multithreaded client: which listener to use?
I've got a client program that needs to talk to a server. Instead of building in all the RMI and server-aware stuff into the client, I'm making a layer between then, called ClientHookup. This way, we can write alternate front-ends, and just make sure
-
Need help using the "skatter" function with brushes.
I'm using Photoshop 7 right now. I want to use the scatter function with one of the standard brushes to make a star trail, but the problem is that the stars are too thick, there's too many of them. How do I tell it to draw less instances of the brush