Skip to content
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 logged regarding uploaded-files directory not found #5211

Closed
gtritchie opened this issue Aug 10, 2019 · 7 comments

Comments

@gtritchie
Copy link
Contributor

commented Aug 10, 2019

System details

RStudio Edition : Server (dev build)
RStudio Version : (master as of 2019/08/10)
OS Version      : macOS 10.14.6
R Version       : 3.6.0

Steps to reproduce the problem

  • start IDE

Describe the problem in detail

Get this error logged in the console (every time a session starts):

10 Aug 2019 18:54:58 [rsession-gary] ERROR system error 2 (No such file or directory) [path=/Users/gary/.rstudio/uploaded-files]; OCCURRED AT: rstudio::core::Error rstudio::core::FilePath::children(std::vector<FilePath> *) const /Users/gary/rstudio/src/cpp/core/FilePath.cpp:1032; LOGGED FROM: rstudio::core::Error (anonymous namespace)::rInit(const rstudio::r::session::RInitInfo &) /Users/gary/rstudio/src/cpp/session/SessionMain.cpp:694

Describe the behavior you expected

No error. Assigning to @kfeinauer since this looks like part of the recent upload work.

@jmcphers

This comment has been minimized.

Copy link
Member

commented Aug 10, 2019

I see this too.

@kfeinauer

This comment has been minimized.

Copy link
Contributor

commented Aug 10, 2019

How is that possible with the following code? The sub directory iteration code shouldn't even trigger.

if (module_context::userUploadedFilesScratchPath().exists());
{
std::vector<FilePath> childPaths;
error = module_context::userUploadedFilesScratchPath().children(&childPaths);
if (error)
LOG_ERROR(error);

Regardless I'll debug further on Monday.

@kevinushey

This comment has been minimized.

Copy link
Contributor

commented Aug 10, 2019

Best guess is a permissions issue? (since we've been seeing a variety of those on scratch path folders recently)

@kfeinauer

This comment has been minimized.

Copy link
Contributor

commented Aug 10, 2019

@gtritchie can you show your .rstudio folder permissions with subdirs to verify?

@gtritchie

This comment has been minimized.

Copy link
Contributor Author

commented Aug 11, 2019

[gary@mbp ~/.rstudio]$ ls -la
total 32
drwxr-xr-x   20 gary  staff   640 Aug 10 21:00 .
drwxr-xr-x+ 134 gary  staff  4288 Aug 10 14:36 ..
-rw-r--r--    1 gary  staff  1179 Aug 10 20:59 addin_registry
drwxr-xr-x   10 gary  staff   320 Aug 10 21:00 client-state
drwxr-xr-x    2 gary  staff    64 Aug 10 12:00 ctx
drwxr-xr-x    4 gary  staff   128 Jul  3 15:05 dictionaries
-rw-r--r--    1 gary  staff  2800 Aug 10 14:38 history_database
drwxr-xr-x    6 gary  staff   192 Jul  3 10:04 monitored
drwxr-xr-x    5 gary  staff   160 Aug 10 20:59 notebooks
drwxr-xr-x    9 gary  staff   288 Aug 10 21:00 pcs
-rw-r--r--    1 gary  staff   546 Aug 10 20:59 persistent-state
drwxr-xr-x    2 gary  staff    64 Jul  3 10:04 presentation
drwxr-xr-x    2 gary  staff    64 Jul  3 10:04 profiles-cache
drwxr-xr-x   15 gary  staff   480 Aug  8 17:35 projects
drwxr-xr-x    7 gary  staff   224 Jul  3 13:39 projects_settings
-rw-------    1 gary  staff     0 Aug 10 11:03 revocation-list
drwxr-xr-x    6 gary  staff   192 Jul  3 15:06 rversion-settings
-rw-r--r--    1 gary  staff    27 Aug 10 21:00 saved_source_markers
drwxr-xr-x    3 gary  staff    96 Jul  3 10:04 sessions
drwxr-xr-x    5 gary  staff   160 Aug  9 14:40 sources
@kfeinauer kfeinauer closed this in e7a5c9b Aug 12, 2019
@kfeinauer

This comment has been minimized.

Copy link
Contributor

commented Aug 12, 2019

Caused by a semicolon in the if statement!

@kevinushey

This comment has been minimized.

Copy link
Contributor

commented Aug 12, 2019

🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.