bachya / Sifttter-Redux

IFTTT to Day One service
MIT License
36 stars 0 forks source link

/tmp/sifttter not found when executing #3

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi Aaron

I've got further but I've just hit another bump with v0.3.8…

I went through the first half of the init absolutely fine - set up dropbox-uploader (with full access). I went through the locations and left them all blank (I presume that is how you leave it to the default?) and added the folder I use to store the sifttter files (~/Dropbox/Apps/Sifttter - do I need to specify the full path?):

 #### COLLECTING PREFERENCES...
Location for downloaded Sifttter files from Dropbox [default: /tmp/sifttter]: 
Location of Sifttter files in Dropbox [default: /Apps/ifttt/sifttter]: /Apps/Sifttter                       
Location for downloaded Day One files from Dropbox [default: /tmp/dayone]: 
Location of Day One files in Dropbox [default: /Apps/Day\ One/Journal.dayone/entries]: 

Unfortunately, when I execute, it doesn't see the /tmp/sifttter file:

$ srd exec
#### EXECUTING...
---> INFO: Creating entry for February 25, 2014...
---> INFO: Downloading Sifttter files...Done.
find: /tmp/sifttter: No such file or directory
---> WARNING: No entries found...
---> INFO: Removing temporary local files...Done.

If I create the sifttter file in /tmp/ manually then it hits the same error and seems to wipe it when removing temp files.

Also, if changing the paths, do you need to go through the whole init again and enter dropbox secret etc? Might be useful to be able to change those separately with a different command.

Thanks!

Alex

gabysbrain commented 10 years ago

I get the same error and my sifttter dropbox folder is in the same place. When I run srd with verbose output turned on I get this message:

#### EXECUTING...
---> INFO: Creating entry for February 25, 2014...
---> INFO: Downloading Sifttter files...
 > No such file or directory: //Apps/ifttt/sifttter
---> INFO: Done.
find: /tmp/sifttter: No such file or directory
---> WARNING: No entries found...
---> INFO: Removing temporary local files...Done.

Which seems like the script is ignoring my setting for sifttter_remote_filepath

bachya commented 10 years ago

Could you both send me your ~/.sifttter_redux and ~/.sifttter_redux_history? Email them to me at bachya1208@gmail.com. Thanks, guys!

UPDATE: easiest way to get these to me is:

  1. Open Terminal
  2. Run this command: cat ~/.sifttter_redux* | pbcopy
  3. Simply paste (Ctrl+V) into an email back to me.
gabysbrain commented 10 years ago
---
sifttter_redux:
  config_location: /Users/tom/.sifttter_redux
  sifttter_local_filepath: /tmp/sifttter
  sifttter_remote_filepath: /Apps/Sifttter
  dayone_local_filepath: /tmp/dayone
  dayone_remote_filepath: /Apps/Day\ One/Journal.dayone/entries
db_uploader:
  local_filepath: /usr/local/opt/Dropbox-Uploader
# Logfile created on 2014-02-25 21:35:02 +0100 by logger.rb/36483
I, [2014-02-25T21:35:02.746434 #41918]  INFO -- : INITIALIZING...
I, [2014-02-25T21:35:02.746514 #41918]  INFO -- : CONFIGURING DROPBOX UPLOADER...
I, [2014-02-25T21:35:06.821014 #41918]  INFO -- : Downloading Dropbox Uploader to /usr/local/opt/Dropbox-Uploader...
I, [2014-02-25T21:35:09.427518 #41918]  INFO -- : Done.
I, [2014-02-25T21:46:00.421521 #41918]  INFO -- : COLLECTING PREFERENCES...
I, [2014-02-25T21:46:37.455320 #41918]  INFO -- : Configuration values: {"sifttter_redux"=>{"config_location"=>"/Users/tom/.sifttter_redux", "sifttter_local_filepath"=>"/tmp/sifttter", "sifttter_remote_filepath"=>"/Apps/Sifttter", "dayone_local_filepath"=>"/tmp/dayone", "dayone_remote_filepath"=>"/Apps/Day\\ One/Journal.dayone/entries"}, "db_uploader"=>{"local_filepath"=>"/usr/local/opt/Dropbox-Uploader"}}
I, [2014-02-25T21:50:05.845219 #42244]  INFO -- : EXECUTING...
I, [2014-02-25T21:50:05.847615 #42244]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T21:50:07.476210 #42244]  WARN -- : No entries found...
W, [2014-02-25T21:50:07.476342 #42244]  WARN -- : No entries found...
I, [2014-02-25T21:50:31.681269 #42571]  INFO -- : EXECUTING...
I, [2014-02-25T21:50:31.681514 #42571]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T21:50:33.277596 #42571]  WARN -- : No entries found...
W, [2014-02-25T21:50:33.277718 #42571]  WARN -- : No entries found...
I, [2014-02-25T22:04:09.999101 #43786]  INFO -- : EXECUTING...
I, [2014-02-25T22:04:09.999320 #43786]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T22:04:11.172208 #43786]  WARN -- : No entries found...
W, [2014-02-25T22:04:11.172291 #43786]  WARN -- : No entries found...
I, [2014-02-25T22:05:06.202610 #44000]  INFO -- : EXECUTING...
I, [2014-02-25T22:05:06.202828 #44000]  INFO -- : Creating entry for February 25, 2014...
I, [2014-02-25T22:05:06.202880 #44000]  INFO -- : Downloading Sifttter files...
I, [2014-02-25T22:05:08.026426 #44000]  INFO -- : Done.
W, [2014-02-25T22:05:08.036839 #44000]  WARN -- : No entries found...
W, [2014-02-25T22:05:08.036930 #44000]  WARN -- : No entries found...
I, [2014-02-25T22:06:36.263005 #44211]  INFO -- : EXECUTING...
I, [2014-02-25T22:06:36.263180 #44211]  INFO -- : Creating entry for February 25, 2014...
I, [2014-02-25T22:06:36.263221 #44211]  INFO -- : Downloading Sifttter files...
I, [2014-02-25T22:06:37.870034 #44211]  INFO -- : Done.
W, [2014-02-25T22:06:37.878306 #44211]  WARN -- : No entries found...
W, [2014-02-25T22:06:37.878391 #44211]  WARN -- : No entries found...
bachya commented 10 years ago

Thank you, @gabysbrain. Positng @mralexhay's results here, as well. Looking into this right now.

---
sifttter_redux:
  config_location: /Users/alexhay/.sifttter_redux
  sifttter_local_filepath: /tmp/sifttter
  sifttter_remote_filepath: /Apps/Sifttter
  dayone_local_filepath: /tmp/dayone
  dayone_remote_filepath: /Apps/Day\ One/Journal.dayone/entries
db_uploader:
  local_filepath: /usr/local/opt/Dropbox-Uploader
# Logfile created on 2014-02-25 17:06:52 +0000 by logger.rb/36483
I, [2014-02-25T17:06:52.572819 #85544]  INFO -- : INITIALIZING...
I, [2014-02-25T17:06:52.572948 #85544]  INFO -- : CONFIGURING DROPBOX UPLOADER...
I, [2014-02-25T17:07:44.660026 #85544]  INFO -- : Downloading Dropbox Uploader to /usr/local/opt/Dropbox-Uploader...
I, [2014-02-25T17:07:53.675937 #85544]  INFO -- : Done.
I, [2014-02-25T17:18:02.592456 #85544]  INFO -- : COLLECTING PREFERENCES...
I, [2014-02-25T17:20:43.824022 #85544]  INFO -- : Configuration values: {"sifttter_redux"=>{"config_location"=>"/Users/alexhay/.sifttter_redux", "sifttter_local_filepath"=>"/tmp/sifttter", "sifttter_remote_filepath"=>"/Apps/Sifttter", "dayone_local_filepath"=>"/tmp/dayone", "dayone_remote_filepath"=>"/Apps/Day\\ One/Journal.dayone/entries"}, "db_uploader"=>{"local_filepath"=>"/usr/local/opt/Dropbox-Uploader"}}
I, [2014-02-25T17:23:40.139385 #86604]  INFO -- : EXECUTING...
I, [2014-02-25T17:23:40.181234 #86604]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T17:23:45.316031 #86604]  WARN -- : No entries found...
W, [2014-02-25T17:23:45.316155 #86604]  WARN -- : No entries found...
I, [2014-02-25T17:28:28.119105 #86922]  INFO -- : EXECUTING...
I, [2014-02-25T17:28:28.129133 #86922]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T17:28:34.346495 #86922]  WARN -- : No entries found...
W, [2014-02-25T17:28:34.346623 #86922]  WARN -- : No entries found...
I, [2014-02-25T17:29:54.337984 #87040]  INFO -- : INITIALIZING...
I, [2014-02-25T19:01:03.561564 #92563]  INFO -- : EXECUTING...
I, [2014-02-25T19:01:03.593045 #92563]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T19:01:09.517529 #92563]  WARN -- : No entries found...
W, [2014-02-25T19:01:09.517655 #92563]  WARN -- : No entries found...
I, [2014-02-25T19:03:13.636156 #92725]  INFO -- : EXECUTING...
I, [2014-02-25T19:03:13.636398 #92725]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T19:03:18.341674 #92725]  WARN -- : No entries found...
W, [2014-02-25T19:03:18.341811 #92725]  WARN -- : No entries found...
I, [2014-02-25T19:17:45.322012 #93644]  INFO -- : EXECUTING...
I, [2014-02-25T19:17:45.322219 #93644]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T19:17:50.746954 #93644]  WARN -- : No entries found...
W, [2014-02-25T19:17:50.747078 #93644]  WARN -- : No entries found...
# Logfile created on 2014-02-25 17:06:52 +0000 by logger.rb/36483
I, [2014-02-25T17:06:52.572819 #85544]  INFO -- : INITIALIZING...
I, [2014-02-25T17:06:52.572948 #85544]  INFO -- : CONFIGURING DROPBOX UPLOADER...
I, [2014-02-25T17:07:44.660026 #85544]  INFO -- : Downloading Dropbox Uploader to /usr/local/opt/Dropbox-Uploader...
I, [2014-02-25T17:07:53.675937 #85544]  INFO -- : Done.
I, [2014-02-25T17:18:02.592456 #85544]  INFO -- : COLLECTING PREFERENCES...
I, [2014-02-25T17:20:43.824022 #85544]  INFO -- : Configuration values: {"sifttter_redux"=>{"config_location"=>"/Users/alexhay/.sifttter_redux", "sifttter_local_filepath"=>"/tmp/sifttter", "sifttter_remote_filepath"=>"/Apps/Sifttter", "dayone_local_filepath"=>"/tmp/dayone", "dayone_remote_filepath"=>"/Apps/Day\\ One/Journal.dayone/entries"}, "db_uploader"=>{"local_filepath"=>"/usr/local/opt/Dropbox-Uploader"}}
I, [2014-02-25T17:23:40.139385 #86604]  INFO -- : EXECUTING...
I, [2014-02-25T17:23:40.181234 #86604]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T17:23:45.316031 #86604]  WARN -- : No entries found...
W, [2014-02-25T17:23:45.316155 #86604]  WARN -- : No entries found...
I, [2014-02-25T17:28:28.119105 #86922]  INFO -- : EXECUTING...
I, [2014-02-25T17:28:28.129133 #86922]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T17:28:34.346495 #86922]  WARN -- : No entries found...
W, [2014-02-25T17:28:34.346623 #86922]  WARN -- : No entries found...
I, [2014-02-25T17:29:54.337984 #87040]  INFO -- : INITIALIZING...
I, [2014-02-25T19:01:03.561564 #92563]  INFO -- : EXECUTING...
I, [2014-02-25T19:01:03.593045 #92563]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T19:01:09.517529 #92563]  WARN -- : No entries found...
W, [2014-02-25T19:01:09.517655 #92563]  WARN -- : No entries found...
I, [2014-02-25T19:03:13.636156 #92725]  INFO -- : EXECUTING...
I, [2014-02-25T19:03:13.636398 #92725]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T19:03:18.341674 #92725]  WARN -- : No entries found...
W, [2014-02-25T19:03:18.341811 #92725]  WARN -- : No entries found...
I, [2014-02-25T19:17:45.322012 #93644]  INFO -- : EXECUTING...
I, [2014-02-25T19:17:45.322219 #93644]  INFO -- : Creating entry for February 25, 2014...
W, [2014-02-25T19:17:50.746954 #93644]  WARN -- : No entries found...
W, [2014-02-25T19:17:50.747078 #93644]  WARN -- : No entries found...
bachya commented 10 years ago

Hi again, guys. It looks like Dropbox Uploader isn't correctly downloading Sifttter files to /tmp/sifttter. That's why that find command is failing (although, I should have a better error message...).

To confirm: all of your Sifttter text files are located in /Apps/Sifttter in Dropbox?

ghost commented 10 years ago

Yes, mine are there

bachya commented 10 years ago

OH NO. You guys...rookie mistake. I hardcoded some values during the download process (should have read your comment more closely, @gabysbrain). Let me fix it and publish a new gem. Hang tight!

bachya commented 10 years ago

Alrighty, 0.4.0 is published. Give that a shot and let me know here if it works? I'll wait to close the issue until I hear from you.

ghost commented 10 years ago

Excellent. Updated and successfully executed a basic srd and an srd -y - worked perfectly, really useful. Thanks for your speedy work!

bachya commented 10 years ago

Fantastic, @mralexhay! Thank you for helping me figure out some key bugs.

Going to close this issue; if you run into anything further, please don't hesitate to open a new issue. Appreciate your enhancement requests, too!