solved GEDCOM import

alt=
@nl
9 years ago
23 posts
Hi,

I have installed Jamroom/Genosis without any issue, and everything seems great, except that I cannot import a GEDCOM file.

It seems to be related to the server file handling, but everything server-side seems ok (all tests are green, all permissions are 705).
The GEDCOM file is generated with Gramps and should not have any issue.

- The function "Import a GEDCOM File to the active tree" starts, and never stops after ``preparing for GEDCOM import to tree_id 1...``.
- If I use "Import Media Archive", an error message say ``Unable to rename or copy uploaded media file to media directory - verify server permissions``.

I don't know if it's related, but if I use "Export GEDCOM File" (the tree is empty tough), the activity log reports : ``jrCore_send_download_file: unable to create file handle for download: /home/site/www/genosis/data/media/0/0/gedcom-file.ged``

I'm a bit stuck now..
Thanks for your help !
updated by @nl: 06/26/15 08:38:29PM
brian
@brian
9 years ago
10,148 posts
Welcome to Jamroom!

It sounds like there is a problem with file reading/writing on your server - what type of OS are you on? Make sure the web user has permissions to read/write to the media, logs and cache directories inside the jamroom/data directory.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@nl
9 years ago
23 posts
Hello,

Thanks for your help.

It's on Linux, Apache 2.2.22 and PHP 5.5. Here is the phpinfo :
http://fpm5.5-check.cluster015.ovh.net/phpinfo.php

All the subdirectories of data (cache/, html_purifier_cache/ and media/) are 705 and the files are 604.
brian
@brian
9 years ago
10,148 posts
705 is going to be incorrect UNLESS the web server is running as the same user that owns the Jamroom files - do you know if that is the case?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@nl
9 years ago
23 posts
Hi,

I don't know that, but I tried to set everything to 777 without more success...
brian
@brian
9 years ago
10,148 posts
nl:
Hi,

I don't know that, but I tried to set everything to 777 without more success...

Are there any security policies running on the server - i.e. something that will check the directory permissions on each request? I doubt it, but I've seen it before so want to check.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@nl
9 years ago
23 posts
You're right, if I get it there is a limitation to 755 permission max, 777 are forbidden. I just discovered that. But I didn't get any problem with move_uploaded_file before... (there is several other cms installed on the same host).
brian
@brian
9 years ago
10,148 posts
nl:
You're right, if I get it there is a limitation to 755 permission max, 777 are forbidden. I just discovered that. But I didn't get any problem with move_uploaded_file before... (there is several other cms installed on the same host).

yeah I see you're running as FastCGI, so it should issue a setuid() BEFORE the PHP call so even 700 should work - since it is not, I'm not sure what it would be without access to the filesystem - do you see any errors in the Activity Log -> PHP Error Log tab?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@nl
9 years ago
23 posts
I have two lines from a few hours ago, but as I tried the import a lot more until a few minutes I suspect that it should be relative to the export bug related above.

[09-May-2015 15:31:45 Europe/Dublin] PHP Fatal error: [] operator not supported for strings in /home/site/www/genosis/modules/jrGenCore/include.php on line 2744 [x 2]

[09-May-2015 17:11:46 Europe/Belgrade] PHP Fatal error: [] operator not supported for strings in /home/site/www/genosis/modules/jrGenCore/include.php on line 2744 [x 5]

Thanks for your support.
alt=
@nl
9 years ago
23 posts
Hi again !

This is strange but even if I didn't do anything in the meantime, the issue is different today.
When using the import tool, the action stops now with the error :

errors were encountered importing the GEDCOM file
invalid import tree_id - please try again

I tried with several GEDCOM that have been tested elsewhere, and nothing is displayed in the logs.

That's irritating, because I'm more and more eager to try it.
brian
@brian
9 years ago
10,148 posts
Sorry for the hassle - unfortunately it's difficult to tell from here what the issue might be - if you can, contact me at support [at] jamroom [dot] net with your site login info (Jamroom and FTP) and your GEDCOM file I can check it out and get to the bottom of why it is not working.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@nl
9 years ago
23 posts
Hi again, I'm writing that here for the record.

After a bit more testing, I've been able to go a bit further.
I've been able to bypass the invalid import tree_id by creating a new tree. It seems to depend on the session too (first apparition of the error after a day without login, I got different results by logout/login today, or related to the tree_default got in jrGenCore_get_active_tree_id ? ).

Anyway, I'm now facing the original Import a GEDCOM File to the active tree that never ends. And it seems to be related to the GEDCOM file/parser, because it works with the following sample :
http://microformats.org/wiki/GEDCOM_Worked_example

I'm sending you one of the failing GEDCOM by mail.

Thanks for your support.
brian
@brian
9 years ago
10,148 posts
nl:
Hi again, I'm writing that here for the record.

After a bit more testing, I've been able to go a bit further.
I've been able to bypass the invalid import tree_id by creating a new tree. It seems to depend on the session too (first apparition of the error after a day without login, I got different results by logout/login today, or related to the tree_default got in jrGenCore_get_active_tree_id ? ).

Anyway, I'm now facing the original Import a GEDCOM File to the active tree that never ends. And it seems to be related to the GEDCOM file/parser, because it works with the following sample :
http://microformats.org/wiki/GEDCOM_Worked_example

I'm sending you one of the failing GEDCOM by mail.

Thanks for your support.

Perfect - I can test the GEDCOM here and see what the hang up is. It's mother's day today so I won't be able to do this until tomorrow though - just an FYI.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
9 years ago
10,148 posts
If you can, send the GEDCOM to brian [at] jamroom [dot] net - our support ticket system won't accept the GEDCOM file as an attachment (unless you ZIP it first).

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@nl
9 years ago
23 posts
Hi,

I confirm that the last release fixes this GEDCOM import issue.

This problem is solved, thanks.
brian
@brian
9 years ago
10,148 posts
nl:
Hi,

I confirm that the last release fixes this GEDCOM import issue.

This problem is solved, thanks.

Right on - very glad to hear that - thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags