-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when uploading SHP file on local dev instance #50
Comments
I still can't make this work. I reinstalled PostGIS because the proj4 seemed to be a postgis problem. So I no longer see the particular errors I mentioned above. But now the "processing" of the file seems to fall into an infinite loop of some kind. I now see no error message, and 100% CPU usage. I let it try to process a 10MB file for 3 hours before I gave up. Uploading this same data to cartodb.com takes less than 10 seconds to process. Any ideas? |
I'm not sure why, but when I tested this again today, I get a new error:
btw, this happens with my custom SHP data, as well as the built-in sample data e.g. World borders. Any help is appreciated, thanks. |
The infinite loop thing is a known issue, the importer doesn't detect some crashed imports. We'll hopefully push a fix this week. What branch of Cartodb/Cartodb20 are you using in your instance? I'm not able to reproduce this last error on my develop branch as of fb2ae81 |
I'm on develop. I just pulled the latest and now I can get the sample data to import, but my data will not import (http://dev.nbtsolutions.net/~tjwebb/mi.zip). Nothing ever happens; it says "importing" and the client just keeps checking forever and the server never says done and I see no errors. But this data imports fine at cartodb.com |
Mmmm, any feedback on the development log? Also, you can take a look at the data_imports table, a record should be created there with some log information. Thanks for all the feedback! |
There is nothing in the development log, and the only entries in the data_imports table are from the other successful imports. |
So I think this is the same bug I explained on #51. Did you try to reboot the resque daemon and then import the file again? How are you running the daemon |
bundle exec foreman start -p 3000 On Tue, Dec 11, 2012 at 5:48 PM, David Arango notifications@github.comwrote:
|
Try to import the file after a full app restart, if it works then is the same bug I said before. |
Just in case it can help. after transform you to the LAT/LON projection, you should be able to import it : |
Worked for me at cartodb.com. This data is there right now. Looks like they On Sat, Dec 15, 2012 at 2:19 PM, amnesic notifications@github.com wrote:
|
Hey Travis, As I said before, this bug seems to happen only on development mode. Did you manage to import the file after a full app restart? Actually, I spent some time with it past week, I seems that you need to add realine pkg to rvm (see here) |
I've the same problem here (in development mode too). The first import works well, but the second failed and fall into an infinite loop.
The 'table_id' and 'data_source' art strangely empty only for this import. Also I copy the resque workers log for this failed import in case it can help :
|
Thank you so much for the log trace, @amnesic. I spent more time with this today, but can't find the problem. Tried compiling Ruby with readline support since I thought the problem could be related to the debugger gem, which gave us problems with Resque in the past, but the workers keep freezing after the first run. Also tried upgrading our gems (Rails, resque...), but the problem still persist. I also spent some time exploring Resque issues unsuccessfully. Found this possibly related issue (https://github.com/defunkt/resque/issues/288), closed without much detail. I can't spend much more time with this this week since this isn't a production issue. Maybe next week we'll find something, I'll keep you updated. |
Ah, I also debugged some import jobs and found that the |
Could you share your shapefile with us? That's a different error message. |
Is a shapefile from cartodb open data (European Countries) . (All of the common data gives me that error). I´m looking development.log (no errors appears) and postgresql-9.1-main.log (configured to write all sentences). I only see that in the postgresql: (0.000653s) UPDATE "data_imports" SET "user_id" = 2, "table_id" = NULL, "data_source" = 'http://cartodb.s3.amazonaws.com/static/european_countries.zip', "data_type" = 'url', "table_name" = NULL, "state" = 'importing', "success" = false, "logger" = '39985be6-8267-11e2-adfd-080027431acf', "updated_at" = '2013-03-01 12:57:45.449928+0100', "created_at" = '2013-03-01 12:57:43.467775+0100', "error_code" = 3005, "queue_id" = 'd464384fe83818394ede329bb17479fe97ca2378', "tables_created_count" = NULL, "table_names" = NULL WHERE ("id" = 1) And 2013-03-04 09:51:31 CET LOG: no se pudo recibir datos del cliente: Conexión reinicializada por la máquina remota |
Could you please log into the rails console (
|
I can´t access to the snippet. |
Sorry, I what I wanted is the output of You'll have to log into the rails console, do you need help with that? |
Nice, you successfully logged in! Just run Try Ruby is a nice way to learn the basics of the language if you feel like: http://tryruby.org/levels/1/challenges/0 |
I tried again and when i put DataImport[1].log, appears this When i see the psql log, i see that lines with error, but i dont know where is the problem: 2013-03-04 09:51:31 CET LOG: no se pudo recibir datos del cliente: Conexión reinicializada por la máquina remota |
Fixed: #51 |
…c-map Display header title and description on public visualization
First of all, thank you guys so much for helping me finally get this thing running. Here's another one for ya:
I'm trying to upload a .zip file that contains a SHP file and all of the usual accessories. It uploads great through my account at cartodb.com. But when I try to upload it on my new dev instance, I get this error:
Any help is appreciated, thanks.
The text was updated successfully, but these errors were encountered: