I'm working on a pc with Ubuntu 12.04 LTS and this computer has OpenFoam libraries. Recently, I installed the R software. I didn't have any problem during the installing process of R. The problem that I found was related to running R. When I write R in the terminal, I get this:
luke#glinux:~$ R
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.0-5be49240882f
Exec : R
Date : Mar 15 2014
Time : 10:56:27
Host : "glinux"
PID : 7525
Case : /home/luke
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
fileName::stripInvalid() called for invalid fileName UbuntuOne
For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)
Why, when I want to work with R, does the terminal show me the OpenFoam version?
What could I do to solve this problem?
You can figure out what versions of R the system knows about (and which it is going to use by default) by running which -a R or whereis R.
If you want to run the statistical program R instead of the OpenFoam thing, you could run /usr/bin/R (fill in the real full path for your system), or set up an alias for R: alias R=/usr/bin/R (thanks to #XavierStuvw)
Related
I'm in alpine system and I have installed nginx. But when I try to start nginx, I get this error:
/run # /etc/init.d/nginx start
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/blkio/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/cpu/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/cpuacct/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/cpuset/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/devices/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/freezer/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/hugetlb/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/memory/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/net_cls/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/net_prio/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/perf_event/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/pids/tasks: Read-only file system
/lib/rc/sh/openrc-run.sh: line 100: can't create /sys/fs/cgroup/systemd/tasks: Read-only file system
* You are attempting to run an openrc service on a
* system which openrc did not boot.
* You may be inside a chroot or you may have used
* another initialization system to boot this system.
* In this situation, you will get unpredictable results!
* If you really want to do this, issue the following command:
* touch /run/openrc/softlevel
* ERROR: networking failed to start
* ERROR: cannot start nginx as networking would not start
/run #
What seems to be the issue? How does touch /run/openrc/softlevel help with this situation?
just
nginx
to stop
nginx -s stop
I just faced the same issue with starting docker service by openrc on Alpine 3.13.4:
host:~# service docker start
* You are attempting to run an openrc service on a
* system which openrc did not boot.
* You may be inside a chroot or you may have used
* another initialization system to boot this system.
* In this situation, you will get unpredictable results!
* If you really want to do this, issue the following command:
* touch /run/openrc/softlevel
* ERROR: sysfs failed to start
* You are attempting to run an openrc service on a
* system which openrc did not boot.
* You may be inside a chroot or you may have used
* another initialization system to boot this system.
* In this situation, you will get unpredictable results!
* If you really want to do this, issue the following command:
* touch /run/openrc/softlevel
* ERROR: cgroups failed to start
* ERROR: cannot start docker as sysfs would not start
The sequence that worked:
host:~# openrc boot
* Starting Docker Daemon ... [ ok ]
host:~# service docker status
* status: started
I make a boos.sh like this.
openrc
rc-service nginx start
It works.
You should run it as root, try
sudo /etc/init.d/nginx start
I am currently using grpc version 1.9.0. The GRPC python client seems like throwing error when msg size is greater than 4MB
Rendezvous of RPC that terminated with (StatusCode.RESOURCE_EXHAUSTED, Received message larger than max
Does any one know how to handle this ?
Specifying below does not work
channel = grpc.insecure_channel(conn_str, options=[('grpc.max_send_message_length', 1000000 * 1000),
('grpc.max_receive_message_length', 1000000 * 1000)])
Have tried to google a lot but in vain
I solved it by using GRPC Python Cython layer: https://github.com/grpc/grpc/tree/master/src/python/grpcio/grpc/_cython
For example if you want 100MB max message_lenght options will be:
options = [(cygrpc.ChannelArgKey.max_send_message_length, 100 * 1024 * 1024),
(cygrpc.ChannelArgKey.max_receive_message_length, 100 * 1024 * 1024)]
What does "hard/soft nproc"mean on CentOS7
What diffrent with 'hard/soft nproc' or 'hard/soft noproc'
THS
/etc/security/limits.conf
* hard nofile 131702
* soft nofile 131702
* hard nproc 131702
* soft nproc 131702
* hard core unlimited
* soft core unlimited
* hard memlock unlimited
* soft memlock unlimited
nofile # The total number of files that can be opened
npro # The total number of threads that can be opened
core unlimited # not limited
memlock unlimted # not limited
I've solved this problem when faced with a MySQL setup, but I seem to be falling short when we use PG.
Issue: Error establishing a database connection
Here's my wp-config.php:
// ** Heroku Postgres settings - from Heroku Environment ** //
$db = parse_url($_ENV["DATABASE_URL"]);
if($_SERVER["SERVER_NAME"]==="localhost") {
define('DB_NAME','finpipe_dev_db');
/** MySQL database username */
define('DB_USER','ilia');
/** MySQL database password */
define('DB_PASSWORD','ilia');
/** MySQL hostname */
define('DB_HOST','localhost');
} else {
// ** Heroku Postgres settings - from Heroku Environment ** //
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME',trim($db["path"],"/"));
/** MySQL database username */
define('DB_USER',$db["user"]);
/** MySQL database password */
define('DB_PASSWORD',$db["pass"]);
/** MySQL hostname */
define('DB_HOST',$db["host"]);
}
/** Database Charset to use in creating database tables. */
define('DB_CHARSET','utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE','');
Here's my output from being inside the Postgres console:
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
--------------------+----------+----------+-------------+-------------+-----------------------
finpipe_dev_db | ilia | UTF8 | en_CA.UTF-8 | en_CA.UTF-8 |
I've even done ALTER USER ilia WITH PASSWORD 'ilia';
And yet, still getting hit with Error Establishing...
What's going on?
This error you are getting is probably because PostgreSQL isn't accepting connections. Please check pg_hba.conf and postgresql.conf files in your PostgreSQL instance directory, you might have to configure them in order to be able to access your database.
Try to configure the following and test, if it works, you'll need to find the correct configuration (this one allows all)
pg_hba.conf
# IPv4 local connections:
host all all 0.0.0.0/0 md5
postgresql.conf
listen_addresses = '*'
I'm covering a little bit of networking and I'm onto the topic of subnetting. One of the end of chapter exercises has me stumped. It looks easy but I've got nothing. The exercise is as follows:
Explain how subnet 2 can be isolated from the internet (i.e. unable to
send/recive packets to/from the internet but able to exchange packets
with the other subnets (fill in the corresponding part of the routing
tables of the appropriate routers in the format shown below)
Any assistance would be greatly appreciated!
The subnet (simplified):
********* *********
* SUB 1 * * SUB 2 *
********* *********
\ /
\ /
\ /
######### *********
#ROUTER1# * SUB 3 *
######### *********
| /
| /
######### /
#ROUTER2#_/
#########
|
|
To/From Internet
The Table:
Source NetID | Destination NetID | Action
---------------------------------------------------
| |
| |
Note, I was going to post this on serverexchange but apprently SO is the place to ask high level questions networking like this?
SUB 1: 1.0.0.0/8
SUB 2: 2.0.0.0/8
SUB 3: 3.0.0.0/8
Router1:
1.0.0.0 -> 2.0.0.0: Send to 2.0.0.0
1.0.0.0 -> 0.0.0.0: Send to Router2's IP address
2.0.0.0 -> 1.0.0.0: Send to 1.0.0.0
2.0.0.0 -> 3.0.0.0: Send to Router2's IP address
Router2:
1.0.0.0 -> 3.0.0.0: Send to 3.0.0.0
1.0.0.0 -> 0.0.0.0: Send to Internet
2.0.0.0 -> 3.0.0.0: Send to 3.0.0.0
3.0.0.0 -> 1.0.0.0: Send to Router1's IP address
3.0.0.0 -> 2.0.0.0: Send to Router1's IP address
3.0.0.0 -> 0.0.0.0: Send to Internet
The trick is the absence of a default route for anything originating from 2.0.0.0/8 on both routers.