Thanks for the congratulations on Release 1.1. :)
Thanks also for searching the discussion list for previous report of
the issue you are having, it really saves us time when users are
resourceful like that; Unfortunately your search didn't produce a
solution this time, but I appreciate the effort. :)
To be honest I can't remember the exact solution that I used with
Klaus' data, but I do remember that there was some corruption in his
data set. Please send me your data set at my personal email "david
at artefactual dot com" and I'll figure out what's happening and post
a general solution back to the discussion list.
Regards,
David Juhasz,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | P: 604.527.2056 | F: 604.521.2059
Hi David,
apropos Klaus. Me again ;-)
My problems starts at step 1:
php /var/www/XXXdb/symfony propel:data-dump XXXdb_20101128.yml
results in:
>> propel dumping data to "/var/www/XXXdb/data/fixtures/XXXdb_20101128.yml"
Fatal error: Class QubitActor contains 4 abstract methods and must
therefore be declared abstract or implement the remaining methods
(ArrayAccess::offsetExists, ArrayAccess::offsetGet,
ArrayAccess::offsetSet, ...) in /var/www/XXXXdb/lib/model/
QubitActor.php on line 27
Hi Jesús,
php /var/www/htdocs/XXXdb/symfony propel:insert-sql
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to
allocate 30720 bytes) in /var/www/htdocs/XXXdb/vendor/symfony/lib/
plugins/sfPropelPlugin/lib/vendor/phing/lib/Zip.php on line 2532
(In php.ini there is no memory limit resp. = -1.)
This is a bug that we caught late in the Release 1.1 testing phase,
but we though it was isolated to the import module and didn't consider
it critical enough to delay the release:
http://code.google.com/p/qubit-toolkit/issues/detail?id=1882
I've bumped the priority of the issue to "critical" for Release 1.2.
It occurs randomly, so starting the load again won't produce the same
key clash, but the chances of a clash increase with the amount of data
you are loading. When you say it takes several hours to load the
data, is that with the data indexing turned off? How many records are
in your system roughly (including actors, repositories, terms, and
functions)?
Cheers,
David Juhasz,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | P: 604.527.2056 | F: 604.521.2059
I'm just working on the duplicate key bug, so I should have a patch
available for you today.
Thank you very much for your emergency service! As root I tried toapply with
patch -p0 < random_slug.patch
and got following results:
patching file lib/model/QubitObject.php
patching file lib/model/QubitSlug.php
Hunk #1 FAILED at 28.
Hunk #2 succeeded at 65 (offset 2 lines).
1 out of 2 hunks FAILED -- saving rejects to file lib/model/
QubitSlug.php.rej
What's wrong? lib/model/QubitSlug.php.rej is writable for user root.
Regards, Klaus
1GB isn't enough? I cannot increase the memory limit very much on this
server.
I successfully migrated and loaded your data without experiencing the
same error you did. I think the problem is in the insert-sql step:
> ltiarchives@ubuntu:~$ php /var/www/icaatom-1.1/symfony propel:insert-
> sql
>>> schema converting "/var/www/icaatom-1.1/config/schema.yml" to XML
>>> schema putting /var/www/icaatom-1.1/config/generated-schema.xml
>>> schema converting "/var/www/icaatom-1.1...Plugin/config/schema.yml" to XML
>>> schema putting /var/www/icaatom-1.1/plu...generated-qbAclPlugin-schema.xml
> WARNING: The data in the database related to the connection name
> propel will be removed.
>
> Are you sure you want to proceed? (y/N)
>
> y
>
>
> You must create a schema.yml or schema.xml file.
>
In your ICA-AtoM install directory, there should be a
"config/schema.yml" file. Can you please check your "config" directory
and see if the schema.yml file is missing? Are you installing from the
Release 1.1 tarball?
--
David Juhasz,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | P: +1.604.527.2056 | F: +1.604.521.2059
-- David Juhasz, Software Engineer, Artefactual Systems Inc. http://www.artefactual.com | P: +1.604.527.2056 | F: +1.604.521.2059
Hi David,
Hmm.
I tried it with sudo and got the same "segments_3 is not readable" error. I checked, and the owner of those files is already www-data.
So I copied segments_2 in the index file, renamed it "segments_3" and ran it again. This gave me the following:
ltiarchives@ubuntu:~$ sudo mv /home/ltiarchives/Desktop/segments_3 /var/www/icaatom-1.1/data/index/
ltiarchives@ubuntu:~$ sudo php /var/www/icaatom-1.1/symfony search:populate QubitSearch
QubitSearch >> Populating index...
QubitSearch >> Index erased.
PHP Fatal error: Class QubitActor contains 4 abstract methods and must therefore be declared abstract or implement the remaining methods (ArrayAccess::offsetExists, ArrayAccess::offsetGet, ArrayAccess::offsetSet, ...) in /var/www/icaatom-1.1/lib/model/QubitActor.php on line 28
Fatal error: Class QubitActor contains 4 abstract methods and must therefore be declared abstract or implement the remaining methods (ArrayAccess::offsetExists, ArrayAccess::offsetGet, ArrayAccess::offsetSet, ...) in /var/www/icaatom-1.1/lib/model/QubitActor.php on line 28
ltiarchives@ubuntu:~$
I don't have a 500 error anymore, but the search is still not returning any results. I tried clearing the cache and running it again, but got the same error message.
Cheers,
Erika
On Thu, Dec 16, 2010 at 6:08 PM, David Juhasz <da...@artefactual.com> wrote:
On 10-12-16 02:55 PM, Erika Heesen wrote:
Hi David,
The sql dump worked perfectly. Thank you so much.
I also checked - there is a schema.yml in the config directory (I installed from the tarball). Hope that helps ...
Now, I needed to do a rebuild of the search index as there are no search results for items that I know are in the database. However, I got this error message:
ltiarchives@ubuntu:~$ php /var/www/icaatom-1.1/symfony search:populate QubitSearch
File '/var/www/icaatom-1.1/data/index/segments_3' is not readable.
And when I go to that location, segments_3 does not exist (but segments_2 does).
It also gives me a "500 Internal Server Error" message now when I try to search on my site. Any suggestions?
Cheers,
Erika
Hi Erika,
It sounds like a permissions problem. If you are running the search:populate task as a different user then the web user (usually "www-root") then you may need to run the populate task as the superuser (note the "sudo" command):
ltiarchives@ubuntu:~$ sudo php /var/www/icaatom-1.1/symfony search:populate
If the search:populate completes successfully and you still get a 500 error when you try a search, you may need to update the permissions on the search index directory:
ltiarchives@ubuntu:~$ sudo chown -R www-data:www-data /var/www/icaatom1.1/data/index
-- David Juhasz, Software Engineer, Artefactual Systems Inc. http://www.artefactual.com | P: +1.604.527.2056 | F: +1.604.521.2059