nylas / nylas-mail

:love_letter: An extensible desktop mail app built on the modern web. Forks welcome!
https://nylas.com/nylas-mail/
MIT License
24.81k stars 1.38k forks source link

Error - Failed to save "config.json" #3382

Open nirvaat opened 7 years ago

nirvaat commented 7 years ago

Hi,

I have today installed the Desktop client on Windows 10. I have added 5 email accounts all from GSuite. It is working fine but I am getting an alert popup saying - "Failed to save Config.json". It is appearing randomly automatically. It gives two options "Okay" and "Try Again".

I tried to look for the issue in Git and on Google, but nothing found related to this issue. Any help is appreciated. I am liking this application and would like to fix this irritating issue.

Thank you, Rajendra

andrelefevre commented 7 years ago

I do recognise the same!!!!

André

-- André le Fèvre

Telephone: +31-20-8943702(tel:+31-20-8943702) Mobile: +31-6-51958530(tel:+31-6-51958530) Email: alefevre@ziggo.nl(mailto:alefevre@ziggo.nl) Skype: alefevre55

--

Sent from my iPhone/iPad with AirMail

Van: Rajendra Tiwari notifications@github.com(mailto:notifications@github.com) Beantwoorden: nylas/nylas-mail reply@reply.github.com(mailto:reply@reply.github.com) Datum: 25 mei 2017 at 15:11:42 Aan: nylas/nylas-mail nylas-mail@noreply.github.com(mailto:nylas-mail@noreply.github.com) Cc: andrelefevre alefevre@ziggo.nl(mailto:alefevre@ziggo.nl), Mention mention@noreply.github.com(mailto:mention@noreply.github.com) Onderwerp: Re: [nylas/nylas-mail] Error - Failed to save "config.json" (#3382)

For me in 42 minutes it created - 250+ files in .nylas-mail folder on windows 10. And the failed error was displayed 2-3 times.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub(https://github.com/nylas/nylas-mail/issues/3382#issuecomment-304006460), or mute the thread(https://github.com/notifications/unsubscribe-auth/AbThtC3Rnx7M-zntzA_F5WERVEj_uF6mks5r9X4OgaJpZM4M8pVp).

nirvaat commented 7 years ago

To me it looks like the issue of multiple threads/instances trying to write/update single file. When trying to write by multiple instances one must fail and that is generating that Alert message. and creating backup file for the config.json.

andrelefevre commented 7 years ago

Ok, so if I understand it right, it's creating .bak files to have the config.json file back in the original state!!! And that over and over! Am I understanding this right now?

Br.
André

-- André le Fèvre

Telephone: +31-20-8943702(tel:+31-20-8943702) Mobile: +31-6-51958530(tel:+31-6-51958530) Email: alefevre@ziggo.nl(mailto:alefevre@ziggo.nl) Skype: alefevre55

--

Sent from my iPhone/iPad with AirMail

Van: Ultrashadow notifications@github.com(mailto:notifications@github.com) Beantwoorden: nylas/nylas-mail reply@reply.github.com(mailto:reply@reply.github.com) Datum: 25 mei 2017 at 15:17:38 Aan: nylas/nylas-mail nylas-mail@noreply.github.com(mailto:nylas-mail@noreply.github.com) Cc: andrelefevre alefevre@ziggo.nl(mailto:alefevre@ziggo.nl), Mention mention@noreply.github.com(mailto:mention@noreply.github.com) Onderwerp: Re: [nylas/nylas-mail] Error - Failed to save "config.json" (#3382)

@andrelefevre(https://github.com/andrelefevre) For finding a solution they need to identify the problem first. At the moment @seesemichaelj(https://github.com/seesemichaelj) thinks it has something to do with frequently changing the config file. The newest .bak file will be renamed to "config.json" so it contains the latest variable of "accounts version" (just review the file with an editor). In this process, there are maybe happening I/O (read/write of HDD or SSD) issues which lead to that error message due to the high frequency of changing and renaming.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub(https://github.com/nylas/nylas-mail/issues/3382#issuecomment-304007677), or mute the thread(https://github.com/notifications/unsubscribe-auth/AbThtLZfes2iHfQD4WV_KKreIULGUOoXks5r9X9ygaJpZM4M8pVp).

Ultrashadow commented 7 years ago

@nirvaat That would fit the observation that it's happening more often with multiple mail accounts. So maybe every mail account instance tries to edit it separately. Would be one argument more to change it to a database.

nirvaat commented 7 years ago

@Ultrashadow no I am using only one email account. Then also this error occurs. I was referring to the code where different part of code/application threads may be trying to write to config file for any reason. And when there is conflict then the error occurs. The Config file backup is created at least 10-15 times every minute, but the error message alert displays every 15-20 minutes only. This is all with single email account configured in the Nylas Email.

sachinag-zz commented 7 years ago

@seesemichaelj We're looking at this - not sure about the Travis stuff, but we're not apt to bypass that to pull this in. Give us a little bit to make sure everything is right - and thanks!

andrelefevre commented 7 years ago

Any progress?

Ultrashadow commented 7 years ago

On my laptop, I started the nylas client and it seems that the config.json file is completely missing now. I need to reconfigure it.

nirvaat commented 7 years ago

Dear All,

After almost 2 months of waiting the issue is still no where to to be fixed. The developers are not interested in fixing this irritating issue, due to which I am not able to use this application, although I really want to.

Finally I today uninstalled the application and will continue using Mailbird for which I purchased a lifetime license 5 years back.

Thank you everyone for follow up and support. I can not waste anymore time for this.

Regards, Rajendra

mikeseese commented 7 years ago

@sachinag What's the status on this?

mikeseese commented 7 years ago

Alright! I have figured out building on Windows. I need testers to see if this resolves the issue. Please head to https://github.com/nylas-mail-lives/nylas-mail/issues/15#issuecomment-306982647 for details on how to get your hands on a build that tries to address this. If we all say it works, the sooner it'll get approved and merged into the main stream. Cheers!

andrelefevre commented 7 years ago

Installing is no problem, but it doesn't send emails! It gives an error on all my accounts.

Br. Andre 

André le Fèvre Telephone: +31-20-8943702 [tel:+31-20-8943702] Mobile: +31-6-51958530 [tel:+31-6-51958530] Email: alefevre@ziggo.nl [mailto:alefevre@ziggo.nl] Skype: alefevre55

[http://img240.imagevenue.com/img.php?image=th_656124318_ALFphotoemail_122_164lo.jpg]

Sent from my Laptop Op 8-6-2017 4:44:48, Mike Seese notifications@github.com schreef: Alright! I have figured out building on Windows. I need testers to see if this resolves the issue. Please head to nylas-mail-lives#15 [https://github.com/nylas-mail-lives/nylas-mail/issues/15] for details on how to get your hands on a build that tries to address this. If we all say it works, the sooner it'll get approved and merged into the main stream. Cheers! — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub [https://github.com/nylas/nylas-mail/issues/3382#issuecomment-306982657], or mute the thread [https://github.com/notifications/unsubscribe-auth/AbThtImz2MVPwyZjnDN6iLn8a1AEx8F4ks5sB2AegaJpZM4M8pVp].