similar to: mysterious ''duplicate entry'' database error when building table

Displaying 20 results from an estimated 700 matches similar to: "mysterious ''duplicate entry'' database error when building table"

2006 Aug 15
0
duplicate entry mystery
I have a rails app that has a sync feature which looks up a remote database and updates the local database accordingly. Anyway, things work great for the most part, but there is a section of code which seems to randomly raise errors. I have something like this: homelinks = Syncinventorydesc.find(:all) InventoryDescription.delete_all() for link in homelinks locallink =
2007 Jul 12
0
[retry] fixture_references: "Mysql::Error #HY000"? (fwd)
I''m resending this with additional information, as I''ve had no response. I''ve been trying to use the fixture_references plugin, and I seem to be getting lots of: 1) Error: test_truth(DeviceTest): ActiveRecord::StatementInvalid: Mysql::Error: #HY000Field ''description_id'' doesn ''t have a default value: INSERT INTO devices (`id`) VALUES (2)
2006 Jul 17
0
Difference between mongrel and webrick handling request.request_uri
If I do this GET request: GET /comments/new?description_id=1 HTTP/1.1 what ends up in request.request_uri is different for mongrel and webrick: Mongrel: "/comments/new" Webrick: "/comments/new?description_id=1" The mongrel behaviour breaks my app because I''m storing the uri to redirect to it later. Mongrel even logs the request as: 127.0.0.1 - [Mon, 17 Jul 2006
2006 Dec 19
2
Dedupping Has_many through, :unique=>true
Hi, In the Agile book, it is told that by putting a :unique => true will dedup the row with ActiveRecord. But it''s not working out for me. Do I need edge rails for this? I simply want to dedup any join model associations, for instance: category_id | inventory_id 384 1 first entry 384 2 this would be ok. 384 1 this would
2006 Jan 18
2
categories/recipes & books/descriptions - has_many vs has_one => id question
People, In the cookbook eg, categories has_many recipes but in a book eg, book has_one description - doesn''t that mean that the id of the description should be the same as the id of the book (instead of having it''s own "description_id" in the book table? Thanks, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney
2011 Jul 19
0
Problem with nested form using collection_select and date_select
Hello people I have a table named Items. Items belongs_to inventory, and Items belongs_to product. so items looks like Item -id -inventory_id -product_id -date -comments The main idea is that I want to create an item while I''m creating the inventory by using nested form in the inventory form (I already test creating item with its own methods and forms and works fine), and I get an
2006 Jun 05
0
Samba not working correctly after upgrade
Hello I just upgraded from Fedora Core 2 (Samba 3.0.10) to Debian Sarge (Samba 3.0.14). The Samba server is being used as a PDC with Roaming Profiles for about 25-30 Windows XP clients. Before the upgrade everything worked perfectly but afterwards I've had some minor issues and been able to sort them out. However I have two remaining problems and I've spent quite a bit of time on them
2007 Oct 29
2
symlinks that become directories question
If I have a backup script that does the following: (latest 2.6.9 rsync) rsync --archive --hard-links --force --ignore-errors --numeric-ids --keep-dirlinks --delete / /backup I've found that if there is a symlink in place that gets backed up (which goes fine), i.e.: homelink -> /home/ and then that symlink gets changed into an actual directory, i.e.: rm homelink mkdir homelink rsync
2007 Mar 03
3
The most weird thing i've ever seen (networking)
Hi, I've installed a mail server using CentOS 4.4 Now, if i reboot the server remotely by ssh, when it cames up, i have no network. The interface is up and everything looks pretty fine. But i can't even ping other machines in the same intranet. If i reboot it locally at the console, the network cames just fine. Never seen nothing like this. The mind boggles :( Any ideas ? Warm
2012 Apr 30
1
Thank-you to Samba developers
Here's a short quote from a work-related email I sent earlier today, announcing AD authentication from a linux VM. It expresses my awe at the folks who write and maintain Samba, and it's long overdue from me: It?s been 3 or 4 years since I configured Samba; it?s always a challenge for me, mainly due to my poor understanding of MSoft networking. Then when it works, I offer a silent prayer
2007 May 08
1
Problems with LDAP
Hi, I'm using OpenLDAP in CentOS 4.4 I'm trying to create a grou of users: # Grupos do TIM dn: ou=futebol,ou=accounts,dc=telbit,dc=pt objectClass: organizationalUnit description: Grupo de Futebol ou: futebol # Grupo do futebol dn: uid=futeboladas,ou=futebol,ou=accounts,dc=telbit,dc=pt objectClass: top uid: futeboladas objectClass: groupOfNames cn: Futeboladas member:
2010 Nov 24
0
Surprise in (delete_all | clear | destroy_all) on association
Hi, I was very surprised by difference of delete_all on association vs model(delegated to relation). Given TaskFilter.has_many(:qualifiers, :class_name=>''TaskFilterQualifier'') TaskFilter.delete_all => one DELETE statement Without :dependent option on "qualifiers" association TaskFilter.first.qualifiers.delete_all => SELECT `task_filter_qualifiers`.* FROM
2001 Feb 06
1
RNG not initialised for sftp only under Solaris.
Out of the box on Solaris 2.7 using the internal entropy system. I am able to login but as soon as I get past the password prompt it dies because it claims the RNG is not initialised. Transcript: [..] debug: got SSH2_MSG_SERVICE_ACCEPT You have entered the land of dragons and mystical creatures. This server does not exist.
2014 Dec 02
0
puzzle, need magic incantation (man pages)
On Dec 1, 2014, at 9:43 AM, Gene Heskett <gheskett at wdtv.com> wrote: > FWIW, before I asked, I redid the nut ./configure --with-doc=auto, then a > make. Then I step into the docs directory and do a sudo make install, > which it appears to do. But no manpages were install despite the command > line echo showing that they were when I did the sudo make install, but I >
2010 Oct 16
2
Darwine or Wine? New to Mac, Install/Uninstall/File issues.
I'm currently running Mac OS X 10.6.4 Snow Leopard. I recently installed Darwine, and then installed a new program, Bowl Bound College Football. Even installed the patch afterwards. So far, so good. Now my problem, is that this program creates an export file to send to a league commissioner, that they can then import. I can't find the file path in Finder, or any of the files for the
2010 Sep 01
0
[LLVMdev] "equivalent" .ll files diverge after optimizations are applied
On Aug 31, 2010, at 11:18 AM, Argyrios Kyrtzidis wrote: > Hi, > > I've attached 2 .ll files which are supposed to be equivalent but 'unopt-fail.ll' causes a crash in webkit's test suite while 'unopt-pass.ll' does not. I can't give more details about the crash, when I run the crashing test it in isolation it passes, when I run the full suite it crashes; it
2007 Mar 23
2
Command not running in crontab
Hi, Can anoyone tell me why this command is not executed (or it is without success) from crontab, but works perfectly from the command line ? (yes, i've restarted crontab service) # clean up postmaster 00 30 * * * root /usr/bin/find /var/qmail/maildirs/postmaster at telbit.pt/Maildir/new -type f -print0 | xargs -0 -n 50 rm The mind boggles... Any help would be appreciated. Warm
1997 Aug 21
0
Kerberos in NT/NG
Interesting little tidbit, sort-of confirming the notion that Kerberos will be an integral part of WinNT's security scheme: http://premium.microsoft.com/msdn/library/techart/F365/F36B/D37E/S22A9C.HTM (need MSDN premium access to get here, free for the time being, just register on MS's MSDN web site). "Transitive trust is a feature of the Kerberos system, which provides the
2008 Mar 28
1
Strange behavior from grep
Hi, It's been a long time since I've been noticing a strange behaviour from CentOS grep command. But today, I really need it. I have a file that has the word gamito inside of it. If I run $ grep 'gamito' file it returns nothing. Yet, if I run $ grep -c 'gamito' file It returns 1 which is right. The mind boggles. Does anyone ever had this problem or am I missing
2008 Feb 13
2
OggPCM: support for little-endianness only?
Jean-Marc Valin wrote: > Really? How low does it take to swap bytes vs. the time it takes to read > from disk? In CPU cycles? The difference is enormous. If no byte swapping is required the vast majority of the work is done by the DMA engine, from disk straight into user space memory and while the read is underway, the CPU can do other work. For the byte swapping case, every sample needs