Deploying / Publishing a Shiny App: failed attempt to find temporary /private/var/... files

345 views
Skip to first unread message

Mike Williamson

unread,
Oct 23, 2017, 5:11:00 PM10/23/17
to shinyapps.io Users


After attempting to publish to shinyapps.io (using the publish button on RStudio), I receive the following output:


========================================
Preparing to deploy document...DONE
Uploading bundle for document: 228462...Error in read.dcf(...) : cannot open the connection
Calls: <Anonymous> ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
In addition: Warning messages:
1: In as.POSIXlt.POSIXct(x, tz = tz) :
  unknown timezone 'default/America/Los_Angeles'
2: In read.dcf(...) :
  cannot open compressed file '/private/var/folders/2m/lxzpjs4j2sb17qy3wqy9y7nc0000gp/T/RtmpNSGEts/file5f832ac986de/packrat/packrat.lock', probable reason 'No such file or directory'
Execution halted
========================================

I have checked, and indeed there is no file there.  I know that this file path (I have a Mac) is for temporary files.  Also, as you can see, it is attempting to work with the packrat lock file, which shouldn't even be relevant for this work.  How can I tell it to ignore this un-necessary file?

Here is some information, in case any of it is relevant (please let me know if any further is needed):

========================================
> R.version
               _                           
platform       x86_64-apple-darwin16.7.0   
arch           x86_64                      
os             darwin16.7.0                
system         x86_64, darwin16.7.0        
status                                     
major          3                           
minor          4.2                         
year           2017                        
month          09                          
day            28                          
svn rev        73368                       
language       R                           
version.string R version 3.4.2 (2017-09-28)
nickname       Short Summer                
> 
========================================


========================================
Package: shiny
Type: Package
Title: Web Application Framework for R
Version: 1.0.5
========================================

========================================
Package: packrat
Type: Package
Title: A Dependency Management System for Projects and their R Package
        Dependencies
Version: 0.4.8-1
========================================

========================================
Mac OS X 10.13 (High Sierra)
========================================

Thanks!
Mike



Joshua Spiewak

unread,
Oct 23, 2017, 5:21:27 PM10/23/17
to shinyapps.io Users
what version of rsconnect do you have installed?

There is additional logging that can be enabled on rsconnect that might help troubleshoot the issue, see rsconnectOptions in the package documentation.

Mike Williamson

unread,
Oct 27, 2017, 1:53:02 PM10/27/17
to shinyapps.io Users
Hi Joshua,

    I posted all of the version information in the original post.  If you mean version of Shiny, you'll see that it is 1.0.5.

    Regarding how to flag additional logging, can you let me know the commands?  I'm happy to post more details, but not sure how to generate any further information from R.  Gathering tracebacks from R is not as easy (at least not for me) as it is from other programming languages.

Regards,
Mike

Joshua Spiewak

unread,
Oct 27, 2017, 2:23:44 PM10/27/17
to shinyapps.io Users
No, I mean what version of the rsconnect package, which I do not see in your post: packageVersion('rsconnect')

Have a look at https://cran.rstudio.com/web/packages/rsconnect/rsconnect.pdf and go to rsconnectOptions. rsconnect.error.trace seems like a good one to try.

Mike Williamson

unread,
Oct 27, 2017, 4:08:26 PM10/27/17
to shinyapps.io Users

Package: rsconnect
Type: Package
Title: Deployment Interface for R Markdown Documents and Shiny
        Applications
Version: 0.8.5
Author: JJ Allaire
Reply all
Reply to author
Forward
0 new messages