Unable to open XServer [Resource temporarily unavailable] systemctl

How do I allow programs/scripts that I've written access the current x session when it's a systemd service? Here are the scripts in question: https://github.com/boogerlad/ready2sleep
I did this: https://wiki.archlinux.org/index.php/Sy … er#DISPLAY
But still, I'm getting the error in the subject. Any ideas?
Last edited by boogerlad (2015-03-31 19:29:55)

Here is a working solution:
$ cat ~/bin/ready2sleep
#!/bin/bash
network()
i=0
io=0
while read line #loop through interfaces
do
i=$((i + 1))
if [ "$i" -gt 2 ] #skip first two lines
then
arr=($line)
io=$(($io + ${arr[1]} + ${arr[9]})) #1 = receive, 9 = transmit
fi
done < /proc/net/dev
echo $io #in bytes
if [ -f ~/tmp/sleep ]
then
source ~/tmp/sleep
fi
if [ -z "$c" ]; then c=0; fi
if [ -z "$p" ]; then p=0; fi
if [ -z "$n" ]; then n=0; fi
if [ -z "$oldIO" ]; then oldIO=$(network); fi
if [ ! -f ~/tmp/ss.png ]; then
import -silent -window root ~/tmp/ss.png
fi
if [ "$(awk 'BEGIN{i=0}
{sum[i]=$2+$3+$4+$5; idle[i++]=$5}
END {printf "%d\n", 100*( (sum[1]-sum[0]) - (idle[1]-idle[0]) ) / (sum[1]-sum[0])}
' <( head -n 1 /proc/stat; sleep 0.5; head -n 1 /proc/stat))" -lt 5 ]
then
c=$((c+1))
else
c=0
fi
import -silent -window root ~/tmp/ss2.png
same=" Channel distortion: MSE
red: 0 (0)
green: 0 (0)
blue: 0 (0)
all: 0 (0)"
compar="$(compare -verbose -metric MSE ~/tmp/ss.png ~/tmp/ss2.png null: 2>&1|sed -n '4,8p')"
if [ "$compar" == "$same" ]
then
p=$((p+1))
else
p=0
fi
mv ~/tmp/ss2.png ~/tmp/ss.png
io=$(network)
if [ $((io - oldIO)) -lt 6144000 ] #50*1024*120
then
n=$((n+1))
else
n=0
fi
if [ "$c" -ge "$1" ] && [ "$p" -ge "$2" ] && [ "$n" -ge "$3" ]
then
c=0
p=0
n=0
echo "systemctl suspend"
fi
echo -en "c=$c\np=$p\nn=$n\noldIO=$io" > ~/tmp/sleep
I use the 'import' and 'compare' commands from ImageMagick instead of graphicsmagick.
This script doesn't need root privileges to run.
Then I use the 'systemd --user' daemon to do what you wish to implement:
$ cat ~/.config/systemd/user/ready2sleep.service
[Unit]
Description=checks if computer is idle
[Service]
Type=oneshot
Environment=DISPLAY=:0
Nice=19
IOSchedulingClass=2
IOSchedulingPriority=7
ExecStart=/home/berbae/bin/ready2sleep 3 3 3
$ cat ~/.config/systemd/user/ready2sleep.timer
[Unit]
Description=checks if computer is idle every 2 minutes
[Timer]
AccuracySec=1us
OnActiveSec=10
OnUnitActiveSec=10
I changed the values for testing, and I don't really suspend my machine but I only write:
avril 01 17:15:06 arch64 ready2sleep[3206]: systemctl suspend
in the journal instead.
Of course replace:
        echo "systemctl suspend"
with
        systemctl suspend
to do the real thing.
I made the test with
$ systemctl --user start ready2sleep.timer
You need to authorize the user to suspend your machine for that to work entirely without root rights.
For that to work automatically when you log in, just write that:
$ cat ~/.config/systemd/user/default.target
[Unit]
Description=Default target for user
Wants=ready2sleep.timer
I hope that will help you; for me it was a training exercise.
Bye.
Edit: It is 'default.target' not 'default.target.off'; I forgot to remove the .off termination.
Last edited by berbae (2015-04-01 20:29:03)

Similar Messages

  • Open Environment error : Resource temporarily unavailable

    Hi,
    I use Berkeley DB 4.5.2 in a system with Intel PXA255, 64MB memory, 512MB USB disk. The system is Linux 2.4.18, compiler is arm-linux-gcc 2.95.3. I put database files on the USB disk (because the file size is more than 72MB), and the disk still got 70% free space (so I don't think the problem is caused by the disk space).
    The same program is run pretty well on PC, Intel P4 3.0, 512MB memory, Red hat Linux 4.2 Enterprise (Linux 2.6.9-22), compiler is gcc 4.3.3.
    But it could not even open the Environment on the board. One program shows error message:
    Environment open failed: Resource temporarily unavailable.
    The other program shows error message:
    unhandled page fault at pc=0x00019808, lr=0x000197f4 (bad address=0x000000dc, code 0)
    pc : [<00019808>] lr : [<000197f4>] Not tainted
    sp : bffff528 ip : bffff700 fp : bffff804
    r10: 402d62fc r9 : 402d5c88 r8 : 0001ee90
    r7 : 00000001 r6 : 00008a24 r5 : 4001e724 r4 : bffffce4
    r3 : 00000000 r2 : 00029cf0 r1 : bffff71c r0 : bffff700
    Flags: nzcv IRQs on FIQs on Mode USER_32 Segment user
    Control: 397F Table: A3DF8000 DAC: 00000015
    Segmentation fault
    They are using the same code:
    #define __DEBUG 1
    ret = db_env_create(&VitalEnv, 0);
    if (0 != ret)
    #if __DEBUG
    fprintf(stderr, "Error in creating environment handle: %s.\n", db_strerror(ret));
    #endif
    return ret
    }/*endif*/
    env_flags = DB_CREATE | DB_INIT_MPOOL;
    ret = VitalEnv->open(VitalEnv, "./Data", env_flags, 0);
    if (0 != ret)
    #if __DEBUG
    fprintf(stderr, "Environmet open failed: %s.\n", db_strerror(ret));
    #endif
    return ret;
    }/*endif*/
    The only difference is that I put these codes in a function called OpenDB() for the second program, and just put these codes in main() for the first program.
    And both of them could not open environment.
    I have put the arm version libdb-4.5.so on the USB disk. Everything I did but the problem is still there.

    Hi Lesslielee,
    We will try to fix first the "Resource temporarily unavailable" issue. Is not very clear for me which/what/where application/databases you had moved and when.
    Do you have Berkeley DB's additional error reporting turned on? With the error reporting turned on, do you see any additional error information when this exception is thrown? ( http://www.oracle.com/technology/documentation/berkeley-db/db/ref/debug/runtime.html )
    From what I understand, when you are storing the databases on the disk (not on the USB drive), the tests are running well, right? When you are moving the database files on the USB drive, are you also moving the environment files? Storing environment files on an NFS file system is not supported.
    When Berkeley DB database environment shared memory regions are backed by the filesystem, it is a common application error to create database environments backed by remote filesystems such as the Network File System (NFS), Windows network shares (SMB/CIFS) or the Andrew File System (AFS). Remote filesystems rarely support mapping files into process memory, and even more rarely support correct semantics for mutexes if the mapping succeeds. For this reason, we recommend database environment directories be created in a local filesystem.
    Does the problem occur when you run the application for the first time in the new configuration? How did you moved the databases? How did you closed the environment last time?
    For more information, please see the "Remote filesystems" section of the Berkeley DB Reference Guide, available in your download package or on our web site at: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/env/remote.html
    Thanks,
    Bogdan Coman

  • Mac OS 10.7 Server won't mount DMG's after opening and closing - "Resource Temporarily Unavailable"

    I am running Mac OS 10.7.3 Server on Mac Pro 2 x 2.66 GHz 6-Core Intel Xeon with multiple users editing on Avid.
    DMG's containing raw camera footage are stored on the server, mounted by connected users on their desktops to allow Avid to access the enclosed data within the DMG's. Recently we've started encountering a problem opening the DMG's after they've recently been opened and closed. After opening and closing a DMG. when we try to open it again from the same user/connected computer or any other user/computer we see an error message saying "The following disk images couldn't be opened" NAME OF DMG "Resource temporarily unavailable". This happened to several users with several DMG's.
    We have since restarted the server, which appeared to fix the problem for about a week and now we are having the same issue again.
    The only changes made recently have been an update to version 4.2 of our ISIS 5000 which all of the Avid systems edit off of, but I don't beleive that to be the cause of the DMG opening issue. I suspect it might be caused by the Pram still thinking that the DMG's are open when they've already been closed.
    Not sure if this is relevant, but we had been running only Mac OS 10.7 systems connected to the server but within the last few months we've been adding several more systems including those with OS 10.8.
    Has anyone else encountered this issue? Does anyone know the fix to this problem?
    Thanks for any and all help!

    Also, we have been able to copy the DMGs to desktops and external drives, which normally would not be possible when a DMG is currently open by another user which is the standard situation in which a DMG would say "Resource Temporarily Unavailable".
    After copying to another location, they open normally so we believe it is an issue isolated to the server itself.
    Thanks!

  • Error "fork failed: Resource temporarily unavailable" when trying to login

    I have a problem with a PPC-based server running OS X Server 10.4.11. Suddenly I'm unable to log in via SSH or use ARD (remote desktop) via the admin user account.
    In SSH it shows "Received disconnect from 1.2.3.4: 2: fork failed: Resource temporarily unavailable" as error message.
    Interestingly I can login directly via root. I wonder how to solve this, just waiting some time, rebooting server, any deeper insight would be welcome ?
    Here is what "top" says:
    Processes: 83 total, 2 running, 81 sleeping... 188 threads 17:07:16
    Load Avg: 0.12, 0.19, 0.15 CPU usage: 0.9% user, 13.6% sys, 85.5% idle
    SharedLibs: num = 173, resident = 40.6M code, 4.59M data, 6.96M LinkEdit
    MemRegions: num = 6812, resident = 89.3M + 8.34M private, 70.7M shared
    PhysMem: 98.0M wired, 123M active, 637M inactive, 858M used, 165M free
    VM: 3.41G + 113M 5641936(0) pageins, 33735(0) pageouts
    PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE
    20343 AppleVNCSe 0.0% 0:00.06 4 64 51 532K 3.84M 1.76M 33.4M
    20338 ARDAgent 0.0% 0:00.36 6 96 76 1.03M 4.34M 2.51M 52.5M
    20334 SecurityAg 0.1% 1:21.31 1 68 102 1.63M 16.4M 8.77M 76.9M
    20333 authorizat 0.0% 0:00.04 1 31 28 364K 708K 1.20M 27.4M
    20332 mcxd 0.0% 0:02.61 1 40 40 604K 7.01M 2.24M 40.3M
    20326 WindowServ 0.0% 0:31.07 2 66 45 468K 7.70M 8.21M 63.2M
    20321 loginwindo 0.0% 0:00.19 3 94 99 972K 7.72M 3.22M 61.0M
    20010 upsd 0.0% 0:23.23 1 36 36 3.80M 732K 3.96M 30.9M
    18075 top 8.8% 0:00.44 1 19 22 824K 316K 1.23M 27.0M
    18070 perl 4.0% 0:00.91 1 10 155 15.4M+ 38.5M 27.1M+ 63.9M-
    18058 perl 0.0% 0:01.40 1 10 155 15.7M 38.5M 27.2M 63.9M
    18045 bounce 0.0% 0:00.01 1 16 20 192K 392K 740K 26.8M
    18021 smtp 0.0% 0:00.01 1 16 20 208K 452K 804K 26.8M
    18020 smtp 0.0% 0:00.01 1 16 20 212K 452K 812K 26.8M
    18004 smtp 0.0% 0:00.03 1 16 20 220K 452K 624K 26.8M
    17962 smtpd 0.0% 0:00.08 1 22 80 740K 1.45M 2.30M 29.7M
    17858 sh 0.0% 0:00.01 1 14 17 196K 764K 820K 27.2M
    17843 sshd 0.0% 0:00.09 1 16 42 532K 936K 1.36M 30.0M
    17832 proxymap 0.0% 0:00.01 1 16 20 200K 356K 692K 26.7M
    17712 smtpd 0.0% 0:00.12 1 22 80 760K 1.45M 2.31M 29.7M
    17214 cleanup 0.0% 0:00.13 1 16 20 208K 412K 764K 26.8M
    17211 cleanup 0.0% 0:00.13 1 16 20 208K 412K 764K 26.8M
    16232 smtpd 0.0% 0:00.23 1 22 80 784K 1.45M 2.34M 29.7M
    16231 smtpd 0.0% 0:00.25 1 22 80 784K 1.45M 2.34M 29.7M
    16221 smtpd 0.0% 0:00.23 1 22 80 788K 1.45M 2.34M 29.7M
    16220 smtpd 0.0% 0:00.27 1 24 80 892K 1.45M 2.43M 29.7M
    15845 pickup 0.0% 0:00.02 1 16 20 188K 368K 692K 26.7M
    14736 named 0.0% 0:45.48 1 14 25 1.28M 1.46M 2.55M 84.4M
    14153 trivial-re 0.0% 0:00.97 1 16 20 244K 380K 756K 26.7M
    12301 cupsd 0.0% 0:00.41 2 30 26 280K 636K 924K 27.8M
    6814 master 0.0% 0:15.99 1 16 20 220K 296K 584K 26.7M
    6807 qmgr 0.0% 4:29.58 1 16 20 516K 396K 1.00M 26.8M
    6804 master 0.2% 5:25.26 1 15 20 208K+ 340K 652K+ 26.7M
    6791 perl 0.0% 1:30.19 1 15 154 360K 38.5M 19.9M 64.7M
    2358 trivial-re 0.0% 0:04.52 1 16 20 384K 380K 892K 26.7M
    735 httpd 0.0% 0:35.78 1 12 110 584K 1.80M 1.96M 31.3M
    734 httpd 0.0% 0:36.17 1 12 111 592K 1.80M 1.80M 31.3M
    733 httpd 0.0% 0:35.51 1 12 110 560K 1.80M 1.91M 31.3M
    636 dccifd 0.0% 0:37.46 3 30 27 88K 336K 224K 34.4M
    635 dccifd 0.0% 0:00.00 1 8 17 0K 332K 80K 27.2M
    373 httpd 0.0% 0:36.51 1 12 111 564K 1.80M 1.91M 31.3M
    324 ipfwlogger 0.0% 0:08.18 1 10 18 36K 236K 124K 26.6M
    292 httpd 0.0% 0:36.63 1 11 111 540K 1.80M 1.87M 31.3M
    283 personalba 0.0% 0:10.65 1 76 45 520K 4.04M 1.60M 38.1M
    277 httpd 0.0% 0:53.49 1 9 110 104K 1.80M 1.12M 32.2M
    259 mds 0.0% 2:19.01 7 81 52 576K 4.07M 1.54M 41.8M
    255 ARDHelper 0.0% 1:04.73 1 9 17 28K 236K 120K 26.6M
    251 getty 0.0% 0:00.00 1 14 18 4K 228K 196K 26.6M
    236 serialnumb 0.0% 0:29.85 3 27 33 240K 548K 848K 28.3M

    Just noticed that this is still open... a reboot did it
    However maybe someone has an idea how this happened and how to prevent similar situations in the future, if possible ?

  • Solaris 10 - Oracle RAC - "Resource temporarily unavailable"

    SunOS 5.10 Generic_127111-06 sun4u sparc SUNW,Sun-Fire-15000
    While running the DTraceToolkit script "errinfo" on one of our database instances (both sides of RAC cluster) we notice a lot of "Resource temporarily unavailable" errors. We currently have no noticeable performance issues, but would just like to know what these errors mean and if they are indicative of potential issues.
    Tracing... Hit Ctrl-C to end.
    ^C
                EXEC          SYSCALL  ERR  COUNT  DESC
                date            ioctl   22      1  Invalid argument                
                 fmd         lwp_park   62      1  timer expired                   
               inetd         lwp_park   62      1  timer expired                   
              oracle            ioctl   12      1  Not enough core                 
              prstat             open    2      1  No such file or directory               
               snmpd            ioctl   12      1  Not enough core                 
                nscd            fcntl   22      2  Invalid argument                
                nscd         lwp_kill    3      2  No such process                 
                nscd         lwp_park   62      2  timer expired                   
               poold         lwp_kill    3      2  No such process                 
                  sh            ioctl   25      2  Inappropriate ioctl for device  
                  sh           stat64    2      2  No such file or directory               
         svc.configd         lwp_park   62      2  timer expired                   
          svc.startd         lwp_park   62      2  timer expired                   
                  bb             stat    2      6  No such file or directory               
               clear            close    9      9  Bad file number                 
               clear            ioctl   25      9  Inappropriate ioctl for device  
              oracle            lstat    2      9  No such file or directory               
                 sed            close    9     12  Bad file number                 
                 sed            ioctl   22     12  Invalid argument                
                 sed             read    9     12  Bad file number                 
                  sh           llseek   29     13  Illegal seek                            
               xntpd       sigsuspend    4     26  interrupted system call         
               poold    lwp_cond_wait   62     27  timer expired                   
                  sh            ioctl   22     30  Invalid argument                
              oracle            ioctl    6     31  No such device or address               
              oracle             open    2     31  No such file or directory               
              oracle          setpgrp    1     31  Not super-user                  
             tnslsnr      getpeername  134     31  Socket is not connected
             tnslsnr          setpgrp    1     31  Not super-user                  
              oracle           semsys   11     34  Resource temporarily unavailable
                init          pollsys    4     35  interrupted system call         
                  sh          waitsys   10     51  No children                             
                java    lwp_cond_wait   62     52  timer expired                   
             tnslsnr           access    2     62  No such file or directory               
                init            ioctl   25     70  Inappropriate ioctl for device  
           in.mpathd          pollsys    4     74  interrupted system call         
              oracle            mkdir   17     76  File exists                             
              oracle             read    4     89  interrupted system call         
              oracle           shmsys    2     93  No such file or directory               
              oracle            ioctl   25    133  Inappropriate ioctl for device  
              oracle           access    2    217  No such file or directory               
              oracle          pollsys    4    401  interrupted system call         
              oracle             stat    2  13609  No such file or directory               
              oracle          recvmsg   11  36121  Resource temporarily unavailable Thanks,
    Jess

    Im an Oracle guy - not the SA type -
    But on ours - the SA configured this cluster incorrectly. We use veritas. instead of making ipmp groups for the interfaces - he built the cluster according to veritas docs. That is - he has two publics - on difference interfaces and different privates on different interfaces. oracle can only two interfaces - no matter if its a ipmp group or a device name. one is used for private- the other is used for public - So sure the veritas cluster filesystems will survive - but the Oracle Cluster will not - nodes will reboot -
    Is your system set up incorrectly as i described above? if it is - a quick test would be - turn down the other interfaces - and only leave the two interfaces you mention above up that you configured for Oracle CRS
    This other sharp sa was able to go through the arp table and see duplicate IPs - and the routing was attempted via an interface that oracle doesnt see. You can not define two different interfaces public - and two different interfaces for private -

  • Terminal - login: fork: Resource temporarily unavailable.

    I use Terminal to log in remotely to some off-site unix servers. Previously, I could open several terminal shells at once, but lately if I try to open more than one, I get this message: <login: fork: Resource temporarily unavailable>. Any ideas how to fix this? There was a suggestion here: http://ruminate.net/pdm/mt/osx_tips/os_x_tiger_104_process_limitssolution.html but I'm not sure how to implement it. Thanks for any help.
    iMac (G5)   Mac OS X (10.4.5)  

    Dafydd,
    you should first edit /etc/launchd.conf and then add the line "limit maxproc 512 2048" inside the file.
    From the terminal: sudo vi /etc/launchd.conf
    add the line, save the file and exit vi (or any other editor).
    To make sure that the changes are working, run "launchctl limit" before and after editing the file.
    Mihalis.
    Dual G5 @ 2GHz   Mac OS X (10.4.5)  

  • Terminal: -bash: fork: Resource temporarily unavailable

    I'm having
    "-bash: fork: Resource temporarily unavailable" when I open up the terminal on my 10.4.6 system. The only way to remedy this issue seems to restart which is at minimum annoying. The other odd thing is when this occurs and if I open up the system preferences I can not interact with the GUI interface until I close the terminal. All the preferences are greyed out.

    I figured out what the problem is. Seems like the 10.4 OS has a 100 process limitation. So if you are power user of all things OS X (i.e. dashboards, and at least 20 open apps) among other OS process you'll come across this limitation. Try to limit the number of process perhaps killing all your dashboard widgets might remedy the issue. Hopefully 10.5 resolves these users.. since 8 GB RAM shouldn't have hardly any limits except hmm upgrading to 16GB

  • Login: fork: Resource temporarily unavailable - how can i fix this?

    I use Terminal to log in remotely to some off-site unix servers. Previously, I could open several terminal shells at once, but lately if I try to open more than one, I get this message: <login: fork: Resource temporarily unavailable>. Any ideas how to fix this? There was a suggestion here: http://ruminate.net/pdm/mt/osx_tips/os_x_tiger_104_process_limitssolution.html but I'm not sure how to implement it. Thanks for any help.
    iMac (G5)   Mac OS X (10.4.5)  

    I'm glad it's working for you, but am not convinced that the firewall was the problem.
    The error message you got means that the server didn't have enough resources to process your login. This could be insufficient RAM, disk space or, more likely process space. If the server is very busy and has lots of processes running it can't fork a new process for your login.
    Problems like that are usually transient - trying again a few minutes later may work since some processes have finished and have freed up process space.
    You should look at what's running on the server and take whatever steps you think appropriate to reduce the number of processes running.

  • Apachectl: fork: Resource temporarily unavailable

    I'm in the process of upgrading to 10.1.3.5, while manually starting OPMN i'm getting the below error message..
    initial isssue with patching is "opmn is failing to start. opmn must be started.....:"
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: retry: Resource temporarily unavailable
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: retry: Resource temporarily unavailable
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: retry: Resource temporarily unavailable
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: retry: Resource temporarily unavailable
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: Resource temporarily unavailable
    my limits.conf has the below settings, not sure where it is checking for this parameter value.
    * hard nofile 65536
    * soft nofile 4096
    * hard nproc 16384
    * soft nproc 2047
    Note:
    1. I've not yet run the autoconfig after database upgrade, I'm planning to execute that after 10.1.3.5 with few more pre-req patching.
    2. Both database and application tier are under the same user name "oracle".
    ps -eLf|grep oracle|egrep -v root|wc -l
    50
    Any suggestions would be of great help.
    Regards,
    Raj.

    Please post the details of the application release, database version and OS.
    I'm in the process of upgrading to 10.1.3.5, while manually starting OPMN i'm getting the below error message..Why do you have to start OPMN in the middle of the upgrade?
    initial isssue with patching is "opmn is failing to start. opmn must be started.....:"
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: retry: Resource temporarily unavailable
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: retry: Resource temporarily unavailable
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: retry: Resource temporarily unavailable
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: retry: Resource temporarily unavailable
    /u01/VIS/apps/tech_st/10.1.3/Apache/Apache/bin/apachectl: fork: Resource temporarily unavailableAre you starting the services using "adopmnctl.sh startall" command?
    Please see (Resource Temporarily Unavailable: Fork: Unable To Fork New Process [ID 1512253.1]).
    my limits.conf has the below settings, not sure where it is checking for this parameter value.
    * hard nofile 65536
    * soft nofile 4096
    * hard nproc 16384
    * soft nproc 2047Assuming you are on 12.1.x and Linux OS, please see the settings in these docs.
    Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86 [ID 761564.1]
    Oracle E-Business Suite Installation and Upgrade Notes Release 12 (12.1.1) for Linux x86-64 [ID 761566.1]
    Note:
    1. I've not yet run the autoconfig after database upgrade, I'm planning to execute that after 10.1.3.5 with few more pre-req patching.
    2. Both database and application tier are under the same user name "oracle".Why not complete the upgrade, run AutoConfig then start the services?
    Thanks,
    Hussein

  • Rctl exceeded "fork: Resource temporarily unavailable"

    We experienced some unexpected virtual memory behavior on two new
    T1000s so started looking into various resources settings. After
    turning on logging using rctladm we started getting messages every few
    minutes about various resources being exceeded. We then used projmod
    to set the various limits as shown below but continue to get the
    syslog messages as if the values had not been set. The processes that
    are showing excesses are typically running programs such as nfsmapid,
    ncsd, or our own applications, none of which are likely to actually be
    exceeding the indicated resources. In fact, pfile indicates that
    there are at most about 20 file descriptors of any sort in use by any
    of these processes.
    ### from /var/adm/messages
    genunix: basic rctl process.max-file-descriptor (value 256) exceeded by process 220
    genunix: [ID 883052 kern.notice] privileged rctl process.max-stack-size (value 9223372036854775807) exceeded by process 2886
    genunix: [ID 883052 kern.notice] basic rctl process.max-stack-size (value 8388608) exceeded by process 502
    # uname -a
    SunOS mastiff 5.10 Generic_118833-23 sun4v sparc SUNW,Sun-Fire-T1000
    # cat /etc/project
    system:0::::process.max-file-descriptor=(basic,1024,deny),(privileged,65500,deny)
    user.root:1::::process.max-file-descriptor=(basic,1024,deny),(privileged,65500,deny)
    noproject:2::::
    default:3::::process.max-file-descriptor=(basic,10240,deny),(privileged,65500,deny);process.max-stack-size=(basic,134217728,deny);project.max-shm-memory=(privileged,32212254720,deny)
    group.staff:10::::
    # swap -l
    swapfile dev swaplo blocks free
    /dev/dsk/c0t1d0s1 32,1 16 52436912 52399520
    # swap -s
    total: 4780856k bytes allocated + 225120k reserved = 5005976k used, 27745432k available
    1) Is it expected that an out-of-the-box T1000 should be exceeding
    resources with normal system programs?
    2) Why does the setting of new process.max-file-descriptor not appear
    to affect the limits of new processes in the project?
    3) Could any of this be related to the original problem we are having
    that one can allocate memory only up to the point that physical memory
    is almost full at which point the allocation slows down to almost
    nothing and other processes get the error "fork: Resource temporarily
    unavailable"?

    How many process currently running
    The process statistics utility, prstat, shows us a top-level summary of the processes that are using system resources. The prstat utility summarizes this information every 5 seconds by default and reports the statistics for that period.
    The -L option causes prstat to show one thread per line instead of one process per line.
    How many process running for per user
    Again you can use prstat with the below option .
    -u euidlist
    Report only processes whose effective user ID is in
    the given list. Each user ID may be specified as
    either a login name or a numerical user ID.
    No. of opened files for per process.
    A list of files open within a process can be obtained with the pfiles command.
    Total no. of opened files for all process.
    Try running lsof as root . One open file is displayed per line and, unless you specify otherwise, all open files from all processes are displayed.
    No. of process limit
    Check out this link :
    http://blogs.sun.com/hasham/entry/solaris_10_increasing_number_of
    No. of open file limit
    Each process has a hard and soft limit for the number of files it can have opened at any time; these limits are administered through the Resource Controls infrastructure by process.max-file-descriptor . Limits can be viewed with the prctl command.
    $ prctl -n process.max-file-descriptor $$
    process: 21471: -ksh
    NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
    process.max-file-descriptor
    basic 256 - deny 21471
    privileged 65.5K - deny -
    system 2.15G max deny -
    If no resource controls are set for the process, then the defaults are taken from system tuneables; rlim_fd_max is the hard limit, and rlim_fd_cur is the current limit (or soft limit). You can set these parameters systemwide by placing entries in the /etc/system file.
    set rlim_fd_max=8192
    set rlim_fd_cur=1024
    The limits can be set from the shell also using the limit/ulimit commands.

  • -bash: fork: Resource temporarily unavailable

    i cannot find an answer or fix to this problem.
    if i open a terminal as any user (i have a couple of user accounts in case i have
    problems with one), i get the message
    -bash: fork: Resource temporarily unavailable
    first, what is causing this?
    second, how can i fix this? i need to use my terminal to work and i can't.

    No expert by any means, but historical posts going back to OS X 10.4 indicate this is a limit on number of concurrent processes and is controlled by a number of config files. Do a search on "fork: resource temporarily unavailable" and you'll start to find the discussion.
    I'm trying to decide whether I want to try the fixes for the thing I'm trying to do or find an OS X server and run it where it is designed to run in the first place. I'm trying to run this particular software on OS X 10.6 desktop and getting the error. I'm assuming OS X server has fewer governors on it and can run more processes.

  • IOException Resource temporarily unavailable

    I have a program that opens a socket and listens for udp packets. The code snippet code goes like this
    while( true )
    byte[] buf = new byte[ 2048 ];
    DatagramPacket p = new DatagramPacket( buf, buf.length );
    try { socket.receive( p ); }
    catch( IOException exc )
    log("Socket read error: " + exc.getMessage());
    break;
    //... do something with p
    My program works fine until I get this "Resource temporarily unavailable" exception. (I dont use nio classes) Iam on linux 8.0 with JRE1.5..
    When does this exception occur ? Is there any workaround ? It looks like this would be thrown when no data is available on the socket (but I dont get this in Windows) Any help would be greatly appreciated.

    First off, what do you mean you use linux 8.0? What distribution is that?
    Is the exception that is being thrown an IOException? I just want to make sure the problem is actually happening at the socket.receive(p) line.
    You can also try to print the stack trace of the exception by doing this: exec.printStackTrace()
    That might tell you what class is throwing the exception which will give a clue as to what resource it needs to allocate but cannot.
    Nick

  • WSAEWOULDBLOCK: Resource temporarily unavailable

    Hi All,
    Please help me on resolving the SAP log in issue.
    I am able to ping the IP from CMD and not able to log in to SAP.. While log in I get the below error message.
    WSAEWOULDBLOCK: Resource temporarily unavailable
    The server is up and running and some of my collegues at onsite are able to log in to the system but am not able .. please help.
    Thanks
    Manju

    Hi,
    Thanks for the responce. when I do telnet <ip> <port> it says "Could not open the connetion to the host on port.
    Please let me know how to check whether the port is opened or not and whether it should be done on the BI server or on the remote machine.
    Thanks lot for your responce.
    thanks
    Manju

  • EDC5112I Resource temporarily unavailable.; _errno= X'00000070' (112) error

    Our application is a simple JRIO code which writes into a VSAM file. The jar which does this job is also housed under the Mainframe. For the past few months we are getting the below exception
    EDC5112I Resource temporarily unavailable.; errno= X'00000070' (112), errno2= X'00000000' (0)
         at com.ibm.recordio.os390nonvsam.NativeException.throwIoExWithUntranslatedMessage(NativeException.java(Compiled Code))
         at com.ibm.recordio.os390nonvsam.NativeException.rethrow(NativeException.java(Compiled Code))
         at com.ibm.recordio.os390nonvsam.FileOutputRecordStream.flush(FileOutputRecordStream.java(Compiled Code))
         at com.aviva.nui.transformer.FixedFileFormatter.writefile(FixedFileFormatter.java(Compiled Code))
         at com.aviva.nui.transformer.FixedFileFormatter.generateFixLengthIndexFeedFile(FixedFileFormatter.java(Compiled Code))
         at com.aviva.nui.transformer.AFEndPoint.execute(AFEndPoint.java(Compiled Code))
         at com.aviva.nui.af.bridging.EndpointCallerJava.callIn(Unknown Source)
         at com.aviva.nui.af.RequestContext.callEndpoint(Unknown Source)
         at com.aviva.nui.af.AFMain.callIn(Unknown Source)
    I have found from an IBM forum the below description
    The forum had the decription as :
    External Symptoms:
    msgedc5112i error may be raised when using jrio .
    Systems with High Processing or Low CP Processing
    Resource Availability.
    When using JRIO you may encounter:
    Loader:main:IOException:EDC5112I
    Resource temporarily unavailable.;
    errno= X'00000070' (112), _errno2= X'0594003D' (93585469)
    I am not really sure what the two errnos say and what difference does it make if they are different.
    The solution that was given for above issue was : update recordio.jar and libJrioOS390.so
    Can some one please help me with the above error.The problem is this error does not occur always. It happens occasionaly only. Say 3 or 4 times a month.
    Many thanks in advance
    chilloutnhell

    Just noticed that this is still open... a reboot did it
    However maybe someone has an idea how this happened and how to prevent similar situations in the future, if possible ?

  • WSAEWOULDBLOCK - Resources temporarily unavailable

    Hi,
    I am trying to open one of our IDES server via SAP GUI. I am getting the following error as ' Partner 192.168.0.0 Sapdb00 not reached' WSAEWOULDBLOCK - Resources temporarily unavailable'.
    When I try to login via SAPGUI directly from the server where IDES is running, it works fine. But when i try from other machines it throws the above errors.  I checked up the services and hosts file entry. It has the following entries
    sapdp00  3200/tcp  till 3399 is mentioned.
    Please help to resove this issue.
    regards,
    raj

    Hi Raj,
    Please check that from your end port 3200, 3300, 3600 are open or not, where 00 is your instanace number.
    you can check the same via doing telnet from end user desktop i.e..
    telnet (ip address of server) 3200 where 3200 is port number metioned.
    Cheers
    Deepanshu

Maybe you are looking for

  • Colour shift from Snow Leopard to Lion

    I initially noticed this problem within Lion and Lightroom 4 when printing to my Epson 4800. The colour shifts to a more pinkish hue in prints done in Lion. I'd originally thought this was unique to Lightroom, but the same thing happens to the same f

  • Read XLS data

    I don't want to be one of those guys that ask questions that have been answered dozens of times (especially about excel) but I have a quick question. The end goal is open an xls file, do some stuff, then save as csv. Pretty simple, and most of the co

  • BAPI - For Clearing Vendors by using Document Number in F-51.

    Hi One and All, As I have searched Forum before posting, I found few BAPI's and FM's which are not helpful for my requirement.      a. 'BAPI_PAYM_ITEM_POST_CLEARING'      b. 'POSTING_INTERFACE_CLEARING' and soon. I am Posting the Vendor Invoice as in

  • Registration Swatch 'Passermarken' in English US version

    I'm using English US version of Illustrator CS6, and received files originally created in the German version. Now all of the files have '[Passermarken]' for the Registration color, but I need it to say 'Registration'. Everything else is in English. I

  • Table maintenance generator with radiobuttons

    Hello, how can I automatically (via se11: table maintenance generator) generate from a DDIC-structure the radiobtton-fields on a dynpro? If I use the domaine 'X' or 'XFELD', I only get checkboxes.... kind regards