opendatabio / opendatabio-r

R package for interacting with OpenDataBio
https://opendatabio.gitlab.io/
GNU General Public License v3.0
3 stars 2 forks source link

Import Location Test1 - Not working in a localhost installation #11

Closed betovicentini closed 6 years ago

betovicentini commented 6 years ago
birutaibm commented 6 years ago

What was the error message when you in your computer? I try import some locations in my computer, and it does not work, too. My server returns HTTP error 413 (Request Entity Too Large). I create a .htaccess at my opendatabio instalation directory with the content: php_value post_max_size 100M php_value upload_max_filesize 100M But it still does not work.

[EDIT: re-posted as #13]

betovicentini commented 6 years ago

Restating. It worked and submitted the Job. However, the Job, which should import the data is not working. I don't get an error message. Just the job does not conclude after submission. Change in php.ini and the restart apache. Try a smaller file (country level=0).

andrechalom commented 6 years ago

Hello, Beto.

There are some different issues here. The first is probably due to supervisor / queue management configuration.

Please check the following:

An alternative way of processing jobs is

The other issues are related to "post max size" and data duplication when importing locations from Peru. These are not related, please open different issues to track possible bugs for those. Also please add more details to help identify the problem. What is the size of the data that you are trying to import? Can you provide a minimal example of data being duplicated?

On Fri, Jan 26, 2018 at 4:17 PM, Alberto Vicentini <notifications@github.com

wrote:

Restating. It worked and submitted the Job. However, the Job, which should import the data is not working. I don't get an error message. Just the job does not conclude after submission. Change in php.ini and the restart apache. Try a smaller file (country level=0).

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/opendatabio/opendatabio-r/issues/11#issuecomment-360862611, or mute the thread https://github.com/notifications/unsubscribe-auth/AB5w9e_lHmXbE-OYF7kUA0H_RdPp5qx5ks5tOhbRgaJpZM4RsR_u .

andrechalom commented 6 years ago

Regarding the data duplication, please confirm that in your local installation the unique key is correctly set on the mysql database (you can check this by entering the mysql console and typing show create table locations):

 UNIQUE KEY `locations_name_parent_id_unique` (`name`,`parent_id`),
betovicentini commented 6 years ago

The problem was OpenDataBio not finding the supervisor configuration file, because it is not placed in a Mac in the same path (usually /usr/local/etc/). I did add to the MacInstructions how to config supervisor to make it running. Now is working fine. I had to create some folders manually, including the app/storage and app/storage/log within the opendatabio installation.

betovicentini commented 6 years ago

Closing this issue replacing with #14