Programming :: C - Resource Temporarily Unavailable?
Mar 7, 2010
I'm working a program to implement a simple multi-process browser. The browser works by having a ROUTER process as the parent of everything else in the program. There's another process called the CONTROLLER which is part of where the user can input information. To tell the ROUTER to make a new tab in the browser the user activates a function from the CONTROLLER to send the create new tab information to the ROUTER:
I installed a while ago two CentOS 5.3 servers. One of them was running Samba and another OpenLDAP. I configured Samba to act as a PDC on the network and everything was working fine. I was already on policies configuration and desktop migrations.
The following problems are Samba server problem, LDAP server is on hold until I figure out the first problem.
Software conf:
Hardware conf:
One day, both servers began crashing, and after a while, it showed the following during the boot on Samba:
After that, ALL CentOS installations had this problem after yum update, epel installation and some smb.conf modifications:
I figured out it might be EPEL (i did installed yum-priorities and tryied updating the base sistem BEFORE epel installations), so I installed the system without EPEL yum repository. After some good and relieving 15 min working, the system crashed AGAIN after yum base update and showed the following on boot time:
And it stops right there.
Maybe some wrong kernel update? the first time it crashed in one way, with running updated system (After the first update, no manual update was done). The sequel problems were all after Kernel update and EPEL. The last one was just after Kernel update. I'll try one last time with NO updates, but i can't run the system like that.
I can't do anything that might one day crash, it's a 6000-7000 user gov environment, but i don't want to install another distro, so if I don't figure it out, they will order me to.
I have had ubuntu installed for a few months now and have been loving it. Yesterday I wanted to get JDK installed for a found a forum that said how to install it on ubuntu. The installation was not a success (I am not sure why because I am not skilled when it comes to the command line and I didn't understand the error). Later, I tried to install a different application just through the ubuntu software center and it said it was waiting for a different software manager to finish. I didn't understand what was still running because I had all other applications closed that I know of.
Once I restarted the problem was the same. Then I found a bug where people had the same problem with the software manager and they entered this and fixed it: sudo dpkg --configure -a Now whenever I try to apt-get anything I get: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Today when tried to install a software from the terminal...d command dint work. Check this.
calvin@calvin-desktop:~$ sudo apt-get install pidgin [sudo] password for calvin: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? calvin@calvin-desktop:~$
It says that it cannot get lock! I have installed ubuntu along with windows! and drive E: is in windows.
I am running ubuntu 10.04 and am trying to get updates via the update manager but continue to get the following errors: "E: could not get lock /var/cache/apt/archives/lock - open(11:Resource temporarily unavailable) E: Unable to lock the download directory"
I have a few updates that I can install using the Update Manager but when I click the "Install Updates" button I get this pop up window message E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock the download directory How to get the updates?
I was just mucking about in xfce, trying out new window buttons in conjunction with the black theme - dusk?? - when POW! - X shut down. Rebooting didn't restore things. Error is along these lines:
xfce4-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0. xfwm4: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0. [Code]....
Is there a config file I can edit to get away from the window button setting it dislikes, or is reinstalling xfce the only option?
When i connect windows server 2003 from ubuntu these error displayed .When i installing the tsclient, by executing these following command from a Terminal window:
sudo apt-get install tsclient
When i run these command the following error displayed.
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I recently installed Ubuntu 11.04 on an old Sony Vaio laptop. I was following some of the steps here..[url]
The step "Enable Full DVD Playback(Dual Layer DVD Support)" did not finish correctly doh and now I can't use 'sudo apt-get' for anything or the software center or using the 'Update Manager' does not work.
The update manger says it may be caused by an update not finishing correctly which sounds correct as explained above. The apt-get command gives me back the following....'Could not get lock /var/lib/dpkg/lock resource temporarily unavailable' 'unable to lock administration directory /var/lib/dpkg is another process using it?'
I tried the obvious restart but that hasn't worked.
I've been running Samba on Gentoo as a PDC for a Windows XP domain for several years. We are using the IdealX smbldap tools to maintain users, we are storing accounts in OpenLDAP, and everything has been just golden for quite a while. However, for various reasons, we are migrating our servers away from Gentoo and onto Ubuntu 10.04 (64-bit). Unfortunately, replicating our Samba PDC/OpenLDAP backend on Ubuntu is kicking our backsides.I've got Samba 3.4.7 running. I've got OpenLDAP running. ldapsearch/ldapmodify/ldapadd all work correctly. However, when I try to mount a Samba share on another Ubuntu machine, I get...:
I have pidgin2.5.2. I want to install pidgin2.6.6.How can I do that?E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I have a machine running on RH with 4G memory and 8G swap.Just now I'm having a problem when loging in with a user - just call it "userX" -.Each time I'm logged in I got a message Code:-bash: fork: ource temporarily unavailableAnd almost everytime I entered any command, it gives me the same warning. In some time (rarely) it will give me proper result, but almost any time it gives me the warning and no result.When I use 'top' command, it shows that I still have 500M free memory and about 8G free swaps. Plus the process for userX is less than 20 processes, and each of them are short processes (less than an hour, mostly just few seconds).As a note this problem only occur on userX, for any other user on the machine everything works just fine.
I am working with a C++ program consisting of two threads. The first threads receives packets through an UDP unicast connection and stores them in a buffer. The second thread reads the packets from the buffer and sends them through an UDP multicast connection. Both use blocking sockets and share a common buffer and a linked list L1, which are protected by mutexes. The program seemed to work just fine, receiving a packet and sending it almost immediately, but started giving some trouble recently. The synchronization between both thread started failing, and I decided to use a non-blocking socket in the sending thread. As a consequence, sendto() doesn't work in some cases, causing an errno 11 (Resource unavailable).
I'm just beginning to program with GTK+, and I'm facing this issue: I want to inhibit a signal emission inside one and only one function. I've down cut my code into the smallest example I can to show you what I want to do:The "Emitter" contains a "GtkSpinBox" and it relays the "value-changed" signal, it's header:
Recently I use a program "pktlogdump" in IXP platform. But the system print an error message as follow:"error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory".So where can I get this file? Or how can I get the resource file?
I want to disallow one user using Solaris machine when some process is active. I will store the PID of my process. If that PID is alive then i do not want one specific user to use the machine.
I want to change the resource limits for a specific processOr to create a new process and give it limits as I want, There is a function setrlimit, Which is possible to change it but for a programmatic I want to apply it to another Process, The problem is that this function does not receive process ID for example. I read in most books on the subject of The Linux system programming
I am trying to develop a video resource manager in Linux.By that what I mean is, if two applications (may be running in two different machines) are trying to play videos, the video resources will be served by this video resource manager (running at a center location). Pardon me as I donot have much idea about video resource handling in Linux , first of all , it is feasible to have this kind of a layer, in between the applications and the available resource hardware. Kindly give me some pointer as to how do I start? Pl. give me some reference URLs.
I am trying to play some of my old dvds, they play in Windows 7, but I get the following using vlc in Fedora 12 (all software in up to date).
[jerry@bigbox Desktop]$ vlc dvd:///dev/sr0 VLC media player 1.0.4 Goldeneye [0x93058b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. libdvdnav: Using dvdnav version 4.1.4 libdvdread: Encrypted DVD support unavailable. libdvdnav: DVD Title: OKLAHM libdvdnav: DVD Serial Number: 26654F88 libdvdnav: DVD Title (Alternative): OKLAHM libdvdnav: Unable to find map file '/home/jerry/.dvdnav/OKLAHM.map' libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1 libdvdnav: Suspected RCE Region Protection!!! libdvdnav: Suspected RCE Region Protection!!! [0xb7300710] main input error: ES_OUT_RESET_PCR called [0xb7300710] main input error: ES_OUT_RESET_PCR called libdvdnav: Suspected RCE Region Protection!!! [0xb7300710] main input error: ES_OUT_RESET_PCR called [0xb7300710] main input error: ES_OUT_RESET_PCR called
I have a dual boot Win7/Fedora 12 laptop. I set the region to 1 on the windows side.
I'd like to upgrade my 9.10 desktop to 10.04 but I can't get past step 1.I've done alt-f2 and issued update-manager -d, but no "New distribution" option is presented.I've clicked the "check" button and updated all my repo information but that doesn't help.I've done a wireshark trace and observed that the update-manager's requests get through the corporate firewall, and responses come back.Somehow it determines that no new distro is available.I'll explore further if someone could help me out with getting hold of the relevant update-manager source code.
Fedora 11 was being run on a Toshiba Satellite Intel Core2 Duo @ 2.1 with 180 gig hard drive and 3 gigs of RAM. The laptop is encrypted, using Fedora's encryption option when installing 11. Just finished upgrading using the upgrading DVD. Fedora boots and runs fine, when update manager is accessed it says 338 updates available. When updating is attempted there is one unavailable package after another. Have attempted to break the updates down into manageable sections to no avail. There is no repository manager (that can be located). Where to from here?
I just set up Suse 11.1 64bit and installed Virtual Box 3.1.6. I had it running previously with no problems, however, this time I can't get it to recognize any USB ports. In fstab I entered the line None /proc/bus/usb usbfs devgid=1000,devmode=664 0 0 and ran mount -a (no go) I loaded Vmware Player and it uses the USB ports perfectly fine (go figure) I added to the "none" line auto, busgid=1000,busmode=0775,devgid= etc. Still a no go - vmware uses them no matter what I have in "fstab" what am I missing with Vbox?
WARNING No path in service <printername> - Making it unavailable!
I'm runing a CentOS 5.4 server. I have a Windows NT Domain. My CentOS server is in the Domain, Samba works fine (both ways). I haven't needed to print from the CentOS box until now. I have a shared HP LaserJet 2100 printer connected to a workstation and shared. Everyone can use it. I'm not using SELinux
I want to be able to print from the CentOS box to that printer.
I used Webmin to set it up, but no joy so I've searched the entire web for any info to do it manually but I'm stuck.
(and new-ish to Linux in general) and would appreciate some assistance with fixing a problem I'm having with getting wireless working on my computer.Computer specs: Lenovo Thinkpad Edge 520, I5Wireless card: Intel WiFi Link 1000 b/g/n(Note: I also have a Netgear USB wireless adapter, and trying to use this does not solve my problem)I cannot activate wireless. When I go to Network Settings > Wireless, it is listed as "unavailable", and "off". When I try to switch wireless "on", it says "disconnected", but then immediately switches back to "off".Having tried to browse various forums and such for a solution, I tried looking for the file ifcfg-wlan0 under /etc/sysconfig/network-scripts, but it doesn't exist
I have a directory that needs to be owned by nginx user and I need to access it via other users in order to add/edit/delete files in it. So I created a group called www and added both then chgrp -R on the directory. However I am still getting a "unavailable to access no permissions" sort of error in my SSH/SCP/what ever you want to call Mac's Transmit. ls -a output drwxr----- 3 nginx www 4096 Jul 17 23:56 nginx
I've installed transmission-daemon on my headless Ubuntu 11.04 server and use the web interface to manage it. This is all working fine. However, after a reboot it seems that transmission daemon starts but the webinterface is unavailable. I get this in the syslog after a reboot:
Code: Jun 22 10:54:27 localhost transmission-daemon[703]: Transmission 2.31 (12441) started (session.c:706) Jun 22 10:54:27 localhost transmission-daemon[703]: RPC Server Adding address to whitelist: 192.168.*.* (rpc-server.c:805) Jun 22 10:54:27 localhost transmission-daemon[703]: RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:982) Jun 22 10:54:27 localhost transmission-daemon[703]: RPC Server Whitelist enabled (rpc-server.c:986) Jun 22 10:54:27 localhost transmission-daemon[703]: RPC Server Password required (rpc-server.c:989) Jun 22 10:54:27 localhost transmission-daemon[703]: Port Forwarding Stopped (port-forwarding.c:181) Jun 22 10:54:27 localhost transmission-daemon[703]: UDP Failed to set receive buffer: requested 4194304, got 262142 (tr-udp.c:75) .....
I'm using Google Chrome & Arch Linux x86.When I try to log in to my Gmail to check my Email I get this;Quote:The webpage at "A very long URL" might be temporarily down or it may have moved permanently to a new web address.And when I click on 'more information about this error' I get this;
Code: Error 107 (net::ERR_SSL_PROTOCOL_ERROR): Unknown error. I've updated openssl and have both SSL 2.0 and 3.0 enabled in options and I still can't log in