Question
I am running Ubuntu 18.04, and I'm wondering what is the safest way to give an individual user access to g++. The user, in my case, is called shiny, because I am trying to host an app on my server.
I've seen answers like this, but I'm not sure if there are other implications in this situation here.
Questions about the shiny user seem to be popular (e.g. here, and here), but I don't believe these apply to my specific question.
Information about my situation
I'm not sure I understand the run_as portion of the shiny server config file /etc/shiny-server/shiny-server.conf. I have a shiny app that works on my local machine, but I'm having some difficulty hosting it on my server using https://github.com/rstudio/shiny-server/blob/master/README.md
I am using the default configuration, so the top of the file reads
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
When I visit the url to test out my app, the web browser reads
An error has occurred
The application failed to start.
The application exited during initialization.
So I check the log file /var/log/shiny-server/myapp-shiny-20200611-180231-34359.log, and I see a linker error:
/usr/bin/ld: cannot find -lhmc-lib
collect2: error: ld returned 1 exit status
make: *** [sourceCpp_2.so] Error 1
Error in Rcpp::sourceCpp("do_comps.cpp", verbose = T, rebuild = T) :
Error 1 occurred building shared library.
Calls: runApp ... sourceUTF8 -> eval -> eval -> ..stacktraceon.. -> <Anonymous>
WARNING: The tools required to build C++ code for R were not found.
Please install GNU development tools including a C++ compiler.
Execution halted
Weird, because all of this already built successfully and ran fine when I test it in a more friendly setting, running everything as root.
Related
Hello this is my first time make android program and found this error but the code not have an error point. the error message is below :
Execution failed for task ':app:mergeDebugResources'.
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
Failed to transform aapt2-4.1.1-6503028-windows.jar (com.android.tools.build:aapt2:4.1.1-6503028) to match attributes {artifactType=_internal-android-aapt2-binary, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for Aapt2Extractor: C:\Users\lenovo.gradle\caches\modules-2\files-2.1\com.android.tools.build\aapt2\4.1.1-6503028\cc838ebadee3649d47e07d029371bc1054e2200d\aapt2-4.1.1-6503028-windows.jar.
> java.io.IOException: Unable to delete directory 'C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc'
Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
- C:\Users\lenovo.gradle\caches\transforms-2\files-2.1\aa8b5888abc00f78a9403248465821cc\aapt2-4.1.1-6503028-windows
can someone tell me how to fix it ?
i had same problem in linux
tried many ways and asked some question.
finally found out there is file missing named aap2 in build-tools
i couldn't find that file to place it in destination so i deleted whole file and re Download it with sdk manager and if it doesn't work too i guess u should try reinstall android studio
yes its not a good answer but it was all experience i had with this error.
I've been trying to set up a Trellis local WordPress dev environment from the Roots stack. I did all the steps from the docs, have the recommended folder structure, downloaded all the dependencies, but I still get a few errors.
First I get some errors and warnings when I use "yarn" in my theme folder, as suggested here. They say to use the CLI from my host instead of Vagrant box, that's just the MacBook's terminal right? Or do I need a CLI from VirtualBox?
The second error happens when trying to call "vagrant up", and this is one that I can paste here as it's a bit more concise.
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["hostonlyif", "create"]
Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 95 of file VBoxManageHostonly.cpp
After Googling this I got a lot of outdated suggestions to check my PATH and restart the VirtualBox, but these I tried and didn't help. I hope someone can help me set this up, thanks. :)
I have shiny running on a mac. These apps have previously been working. I'm getting the following error when I try to access any of them
The application failed to start.
The application exited during initialization.
su: illegal option -- p
usage: su [-] [-flm] [login [args]]
This is also all that is in the log. Any ideas on what is going on here? I know shiny server is not intended for mac which is why we are transitioning to a linux server, but in the meantime I need these apps which were previously working to continue working.
I am trying to use node-inspector to help debug my meteor app on windows. As indicated here: https://docs.meteor.com/commandline.html#meteordebug
running meteor debug should start the node-inspector portal at http://localhost:8080/debug?port=5858 by default.
I can navigate to the url, but do not see any files under "Sources" (or anywhere for that matter)
I've tried setting the port manually, and tried installing node-inspector via npm as well in case it was needed, and tried running "meteor NODE_OPTIONS='--debug' ...but those don't seem to help (and the NODE_OPTIONS parameter doesn't even work...)
what am I missing/why don't the files show up? how can I debug this debuggng issue...?
PS - i do see Notifications permission has been blocked as the user has dismissed the permission prompt several times. See https://www.chromestatus.com/features/6443143280984064 for more information.
in the dev console on the debugger tab. Could this cause any issues? Not really sure what notification permissions I supposedly blocked.
UPDATE:
Also getting these 3 errors popping up in the console:
Runtime.js:358 Assertion failed: Unknown experiment canvasInspection
Runtime._assert # Runtime.js:358
21:53:06.599 Runtime.js:367 TypeError: Cannot read property 'createSetting' of undefined
at WebInspector.FilterBar.setName (:8080/ui/FilterBar.js:62)
at WebInspector.NetworkPanel (:8080/network/NetworkPanel.js:47)
at Function.WebInspector.NetworkPanel._instance (:8080/network/NetworkPanel.js:408)
at eval (:8080/node/network/NetworkPanel.js:13)
at eval (<anonymous>)
at evaluateScript (Runtime.js:153)
at scriptSourceLoaded (Runtime.js:136)
at <anonymous>
Runtime._reportError # Runtime.js:367
21:53:06.772 Runtime.js:367 TypeError: Cannot read property 'sources' of undefined
at WebInspector.SourcesOverrides._hideChromeSpecifics (:8080/node/sources/SourcesOverrides.js:12)
at WebInspector.SourcesOverrides (:8080/node/sources/SourcesOverrides.js:5)
at eval (:8080/node/sources/SourcesOverrides.js:63)
at eval (<anonymous>)
at evaluateScript (Runtime.js:153)
at scriptSourceLoaded (Runtime.js:136)
at <anonymous>
many thanks for any help.
I have my shinyapp deployed on Shiny Server. I use RJDBC::JDBC() method to connect to Redshift DB.
RedshiftJDBC42-1.2.1.1001.jar file is in the folder called "driver" which is in the same folder as app.R file, the argument 'driverClass' is "com.amazon.redshift.jdbc42.Driver" and 'classPath' argument I provide is ".../driver/RedshiftJDBC42-1.2.1.1001.jar" but when I want to run the app in my browser, I get the following message (in browser):
An error has occurred
The application failed to start.
The application exited during initialization.
In the log I find the following:
Error in .jfindClass(as.character(driverClass)[1]) : class not found
Calls: runApp ... ..stacktraceon.. -> JDBC -> is.jnull -> .jfindClass
I tried to set the CLASSPATH ('...' classified folders ):
export CLASSPATH="/home/.../driver/RedshiftJDBC42-1.2.1.1001.jar"
but this does not work.
Please help.
put the diriver under /opt
make like /opt/driver/driver/RedshiftJDBC42-1.2.1.1001.jar
double check the path ... it is case sensitive