-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Unable To Export Data #2937
Comments
@asbiin I am experiencing this issue as well, and it makes me nervous about continuing to put data into the system. Thank you for all your help building Monica! |
I, too am experiencing this issue. I dropped an email on Sept 9th and have gotten no response. 10/17/19 |
This is fixed by now, at least on 2.4.* and 2.5.* which I ran today. |
@Tomgs I don't believe this is working - I tried on PC Firefox and Mac Chrome. I have 2K+ contacts so I would guess it's timing out for people with large databases and working for smaller ones. @asbiin I'd be happy to investigate further - I've done a bit of work with databases in the past, but know very little about PHP / how projects are structured - can you point me in the right direction as to where this function is located in the codebase, and I'll try to do some research from there? |
@mattdp Ah, sorry about that, my database is indeed smaller than yours. The route that specific settings pages sits on is Line 238 in c90354c
The settings controller is defined here:
If I'm not mistaken, than this is the thing that actually triggers the correct view inside that file: monica/app/Http/Controllers/SettingsController.php Lines 236 to 243 in 10e73e3
This is that view: And this is the button that triggers what is eventually giving you an empty page: If I'm not mistaken, this is where the export gets triggered: It relies on this class to do its thing: But I can't really pinpoint the failing point without your input, since for me it's seemingly working. |
Thank you so much, @Tomgs , for taking your time to outline this to me! I will check this out when I have a few free hours. |
My pleasure @mattdp. I'll actually be attending an Hacktoberfest later this week (Wedensday) so if the hours match up we might be able to hack on it together. I'd really like to see this fixed, as this is one of the most awesome things about Monica - their SQL export actually exports all the things. |
TLDR: @djaiss @asbiin - within five seconds of submitting this comment I started an export on the hosted site. Odds are that's the only export with a close timestamp. Any chance you could send us whatever logging you get from that export failing, so we can move towards a fix during Tom's Hacktoberfest time Wednesday? -- Very cool @Tomgs - want to let me know by emailing monicaissue at matthewfdupont.com what time/time zone you'll be hacking to see if we can sync? Since I use the hosted version, I'm wondering what if anything I can do short of spinning up an instance of self-hosted with a few thousand contacts to help diagnose if the issue. I'd guess, as I'm sure you've already considered, that either a) the export function you highlighted errors out somewhere along the way for something memory- or variable-size related But I haven't been a dev for a few years so might be missing something obvious here. |
It doesn't work in production indeed. I'll push a new PR soon with logs everywhere to understand this problem better. Sorry for the problems. |
Thanks @djaiss and @asbiin , please let us know when the trace is in place—if you have any logs you can send about the issues once those traces are in place, I'm happy to try and dig a bit on what they mean in terms of changes needed. I really appreciate the attention to this issue! It makes me much more comfortable building out long-term workflows relying on Monica when export works. |
I've added some logs in production to understand what's going on. |
Hola! Awesome to see all the attention around this. Hope this pans out!
@mattdp, will contact.
|
Well, Drip died on the address you gave me, but I'll be on this on
Wednesday, circa 2100 or 2200 GMT+2. No worries if that doesn't work for
you;) I'd stress test it locally with dummy contacts.
|
Ah, just noticed it's an actual email there in your comment! I just went directly to the website. Emailing now. |
The export process has been refactored and has been merged, and finally it works in production again. I hope it works for all users too. My vision is that exporting data is essential and core to the product. |
This issue has been automatically locked since there |
Describe the bug
I'm trying to export my data (just to keep a backup) using the Export to SQL button from the hosted MonicaHQ instance but I'm just getting a blank page. Some weeks back I was getting an error but I didn't submit a ticket at the time.
Screenshots
Clicking the button beings to load https://app.monicahq.com/settings/exportToSql, it finishes and literally a blank page is returned (no source code)
The text was updated successfully, but these errors were encountered: