Glam Prestige Journal

Bright entertainment trends with youth appeal.

I am configuring a webserver in Ubuntu 10.04. More particularly I am installing DataStax OpsCenter.

Unfortunately, the logs are spammed with this error:

ERROR [pool-3-thread-7] 2013-02-15 22:04:34,533 Long os-stats collector failed: Process failed: cat /proc/partitions Exit val: 1 Output:
cat: /proc/partitions: No such file or directory
ERROR [pool-5-thread-3] 2013-02-15 22:04:56,846 Error getting devices and partitions #<IOException java.io.IOException: Process failed: cat /proc/partitions Exit val: 1 Output:
cat: /proc/partitions: No such file or directory>

Why do I get cat: /proc/partitions: No such file or directory?

I really doubt that the problem is with the application I am using, because if I run this command from command line cat /proc/partitions I still get No such file or directory and from what I have found in some forums that directory should be created when the OS is starting up, I could be wrong but that's as far I got.

6

4 Answers

As you said in your comment, you're on a virtual private server (VPS). OpenVZ as well as other VPS solutions don't offer access to /proc/partitions. The whole /proc partition is a virtual filesystem (procfs). The structure is maintained in the kernel. So it will not work to manually create the file.

The DataStax OpsCenter has a support forum. At the moment I found no questions qhich deal with your problem. However the experts there should be able to help you out.

1

To get proc file system you might need to mount it.

mount proc /proc

To get list of partitions I use following commands. Each of them gives list of partitions.

fdisk -l
parted -l
df -h
mount

Note: mount only displays list of volumes currently mounted and df shows statistics of mounted volumes.


Answer created by @Shiplu in a Stack Overflow tread.

1

Try making the folder yourself. This is how you do it: in a terminal, type

sudo mkdir /proc
sudo mkdir /proc/partitions

See if your logs still appear.

3

Installation steps to install pro* C / proc / pro c SK Vandeyaer download all this software for windows 32 bit from oracle site :

instantclient-basiclite-nt-12.1.0.1.0
instantclient-basic-nt-12.1.0.1.0
instantclient-jdbc-nt-12.1.0.1.0
instantclient-odbc-nt-12.1.0.1.0
instantclient-precomp-nt-12.1.0.1.0
instantclient-precomp-win32-11.1.0.7.0
instantclient-sdk-nt-12.1.0.1.0
instantclient-sqlplus-nt-12.1.0.1.0
instantclient-tools-nt-12.1.0.1.0

Extract all to a single folder ... keep all the contents under a single folder. check if proc.exe and oci.dll are in same folder **otherwise it will error out.

run the proc program from command prompt

  1. start -> run -> cmd
  2. cd c:\singlefolder (contents where all the extracted contents are present)
  3. type proc - it should give out some output (if you get its installed correctly)
  4. to run - type proc progamname.pc
  5. check the same folder it should have generated a programname.c file in same directory
  6. you can run the .c file using vc++ or any c++ compiler (borland or others)

Sample program :

#include <stdio.h>
#include <conio.h>
int main(int argc, char *argv[])
{ printf("Hello, world!\n"); getch(); return 0;
}
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy