Displaying 20 results from an estimated 7000 matches similar to: "High load averages with latest kernel and USB drives?"
2018 Sep 19
3
LVM and Backups
Il 18/09/2018 17:14, Gordon Messmer ha scritto:
> On 9/17/18 11:38 PM, Alessandro Baggi wrote:
>> Il 17/09/2018 22:12, Gordon Messmer ha scritto:
>>> That doesn't look right.? It should look more like 1) stop or freeze
>>> all of the services (httpd and database), 2) make the snapshot, 3)
>>> start or thaw all of the services, 4) mount the snapshot, 5)
2005 Apr 28
1
relation "pg_user" does not exist error when running pg_dump
Hi,
I'm trying to move a postgres database to another server and I ran
into some weird problems. Pg_dump command was not giving any output
and the logs got filled with some SELinux errors. So I turned off
SELinux completely (and rebooted). Now I'm getting the following error
message:
# pg_dump -U postgres database > database.out
pg_dump: SQL command failed
pg_dump: Error message from
2006 Feb 28
10
Salted hash login, postgresql, unit tests
Hello,
I have tried to install the salted hash login generator by following the
quick start guide at:
http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart.
Everything seems to work fine until I try to run the unit tests by doing
''rake test_units'', then I get the following error message:
<error-message>
[brasse@keso login-test]$ rake test_units
(in
2010 Jun 08
6
reloading realtime sip peers
Hello,
I noticed that changes to realtime sip peers are not applied until a
'reload'. A 'sip reload' does not make any changes to realtime sip peers.
When changing for instance the mailbox-parameter in the realtime
sip_buddies table, the change is not applied with a 'sip reload'.
For every change there is a complete 'reload' necessary.
Why does a 'sip
2007 Feb 06
1
Postgres, testing and maybe spurious database DROPpings?
Folks,
I don''t like that I have to grant CREATEDB rights to the test user to
get testing working smoothly with Postgres.
What is the philosophical reason that Rails wants to drop and recreate
databases during the testing? It would seem to me that "pg_dump -c" (the
"clean" dump option, similar to mysqldump''s --add-drop-tables ) would
suffice when
2017 Aug 27
2
Connect to postgreSQL
I am using RStudio Version1.0.143 on a Windows 7 machine. R version 3.4.0
I am trying to connect to a postgreSQL database with the following
command, but I receive an error message that says my password is
incorrect. Since I saved my password in a file, I think I remember it.
I searched for a solution online, but cannot figure out what to do. If I
have to change my password, please provide
2006 Apr 30
16
postgresql duplicate key violates unique constraint
I have a weird problem with creating a new record when using PostgreSQL.
From inside script/console ...
>> entity = Entity.new
>> entity.first_name = "Foo"
>> entity.last_name = "bar"
>> entity.save
Throws an exception due to the following SQL error: duplicate key
violates unique constraint.
The application was working fine before and suddenly
2006 May 29
2
foreign keys and referential integrity
Sans rails my normal approach to handling this would be to enforce it in
the database and when a database operation failed I''d try to validate
the model to produce an error message. It''s always served me pretty
well.
Rails expects you to validate before commiting but of course this does
nothing to guarantee referential integrity. It''s perfectly possible for
one
2017 Aug 27
0
Connect to postgreSQL
On Sat, 26 Aug 2017 18:35:31 -0700
Ira Sharenow via R-help <r-help at r-project.org> wrote:
Can you access the postgres database through psql or some other route?
Also, do you require a password to access the database from these
alternatives?
JWDougherty
2001 Aug 31
1
RODBC SQLSave
I am having the following problem with RODBC
I connect to an oracle 8i (8.1.7) database using RODBC as follows;
dbConn <-
odbcConnect("mydatabase","myuserid","mypassword",case="oracle")
Then I extract some data, actually a whole table;
orgdata <- sqlQuery(dbConn, "select * from organism", na.strings = "NA")
Then I try to save it
2002 Aug 28
1
RODBC: sqlFetch and its argument sqtable
Calling function "sqlFetch" in library(RODBC) and specifying a character
string as 2nd argument, I get an error I don't understand:
library(RODBC)
channel <- odbcConnect("mydatabase.mdb", case="msaccess")
sqlFetch(channel, "mytable")
# this works fine
tabname <- "mytable"; sqlFetch(channel, tabname)
# this gives an error:
# Error in
2005 Jul 21
3
Rprof fails in combination with RMySQL
Dear R community,
I tried to optimized my R code by using Rprof. In my R code I'm using MySQL
database connections intensively. After a bunch of queries R fails with the
following error message:
Error in .Call("RS_MySQL_newConnection", drvId, con.params, groups, PACKAGE = .MySQLPkgName) :
RS-DBI driver: (could not connect mylogin@mydatabase on dbname "myDB"
2005 Mar 07
1
postgres unit testing in 0.10.1
http://dev.rubyonrails.com/changeset/856
looks to me like it''s not going to work, since there''s no way of
specifying a password to pg_dump/dropdb/createdb.
If you set PGPASSWORD in your environment it might work, but that''s not
documented anywhere and isn''t done automatically in the Rakefile.
See
http://thread.gmane.org/gmane.comp.lang.ruby.rails/3693
for
2018 Sep 18
2
LVM and Backups
Il 17/09/2018 22:12, Gordon Messmer ha scritto:
> On 9/17/18 7:50 AM, Alessandro Baggi wrote:
>> Running a backup I follow this steps:
>>
>> 1) Stop httpd
>> 2) Create lvm snapshot on the dataset
>> 3) Backup database
>> 4) restart httpd (to avoid more downtime)
>> 5) mount the snapshot and execute backup
>> 6) umount and remove the snapshot
2002 Dec 23
1
Segmentation Fault on Large (over 2 gig) file from Win2k client to Win2k daemon.
I am trying to sync some large (greater than 2
gigabytes) files, pushing them from a Win2k client to
a Win2k machine running the rsync daemon. Both
machines have the CYGWIN environmental variable set to
ntsec.
Below is the full session. There is only one file in
the MyDatabase directory on the client, but it's 2.2
gig. Once I get this working, I want to set it up to
exclude files in that
2016 Jun 09
5
remote backup
On Thu, June 9, 2016 1:14 pm, John R Pierce wrote:
> where Rsync falls down, is if you need a point in time snapshot... Rsync
> processes one file at a time, so if the files are being updated while
> its running, the differnet files will be copied at different times.
> This is usually fine for static archives of files and such, but
> unsuitable for a database server where random
2008 Jun 05
23
unit test question
In development and production, I''ve got postgresql constraints that
prevent deleting a CaseManager if there is a Client that belongs to that
CaseManager.
In unit tests...and obviously in my testing db, those restrictions don''t
get added.
Is it wrong to test for deleting dependent records in unit tests?
Craig
--~--~---------~--~----~------------~-------~--~----~
You received
2014 Jul 02
3
block level changes at the file system level?
I'm trying to streamline a backup system using ZFS. In our situation,
we're writing pg_dump files repeatedly, each file being highly similar
to the previous file. Is there a file system (EG: ext4? xfs?) that, when
re-writing a similar file, will write only the changed blocks and not
rewrite the entire file to a new set of blocks?
Assume that we're writing a 500 MB file with only
2014 Jan 11
1
Does cdr adaptive odbc re-connect automatically after a long idle time?
Hi all,
I use astersk 11.7.0 on Ubuntu 12.04.01 TLS (i386). I use cdr_adaptive_odbc
to write CDR to my MySQL's cdr table.
After my testing, this scenario is working well.
After a long idle time, I didn't make any call to the asterisk server.
When I try to make a call again after 8 hours, I found that the cdr lost.
It cannot be inserted to cdr table.
Also, I could not find the insert CDR
2014 Feb 26
2
OT: Howto to capture taskset output command
Hi all,
I am trying to set processor affinity for a specific process using a
shell script without result. Script:
#!/bin/sh -x
cpu_affinity_ok="2"
cpu_affinity="taskset -p -c `cat /tmp/test.pid` | awk '{print $6}'"
if [ -f /tmp/test.pid ]; then
if [ "$cpu_affinity" == "$cpu_affinity_ok" ]; then
exit 0
else
taskset -p -c 2