While creating new online backup of my Author instance it is showing error showing below:
In the log it is showing error:
30.11.2017 12:11:59.105 *ERROR* [112.196.146.254 [1512043919094] GET /libs/granite/backup/content/createBackup/content/items/backupform.check.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
java.lang.RuntimeException: java.io.FileNotFoundException: /home/ubuntu/AEM/Dev/author/crx-quickstart/launchpad/felix/bundle305/data/classes/org/apache/jsp/libs/granite/backup/components/backupform/check_html_jsp.java (Permission denied)
at org.apache.sling.commons.fsclassloader.impl.FSClassLoaderProvider.getOutputStream(FSClassLoaderProvider.java:225)
at org.apache.sling.scripting.jsp.SlingIOProvider.getOutputStream(SlingIOProvider.java:145)
at org.apache.sling.scripting.jsp.jasper.JspCompilationContext.getOutputStream(JspCompilationContext.java:146)
at org.apache.sling.scripting.jsp.jasper.compiler.Compiler.generateJava(Compiler.java:150)
I have checked the bundle 305 is active. Can anyone suggest why it is unable to create a backup and showing this error.
You seem to be dealing with filesystem-level permissions problem.
java.io.FileNotFoundException:
/home/ubuntu/AEM/Dev/(...)/check_html_jsp.java (Permission denied)
This error tells you that the AEM process was denied permission to access or save a file at the path provided.
Check which user started AEM and if the user has the permissions necessary to access the directory that you're trying to use (/home/ubuntu/AEM/Dev). Change the path or the permissions.
Related
I have followed every step from the Arducam Gudie Arducam Guide IMX519. But I am getting the following message when I try to run libcamera-hello or libcamera-still -t 0:
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:05:54.878605558] [1851] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3897-c3c878a9
[0:05:54.879023852] [1866] ERROR MediaDevice media_device.cpp:479 /dev/media0[]: Failed to open media device at /dev/media0: Permission denied
[0:05:54.879141481] [1866] INFO DeviceEnumerator device_enumerator.cpp:218 Unable to populate media device /dev/media0 (Permission denied), skipping
[0:05:54.879220573] [1866] ERROR MediaDevice media_device.cpp:479 /dev/media3[]: Failed to open media device at /dev/media3: Permission denied
[0:05:54.879271443] [1866] INFO DeviceEnumerator device_enumerator.cpp:218 Unable to populate media device /dev/media3 (Permission denied), skipping
[0:05:54.879336850] [1866] ERROR MediaDevice media_device.cpp:479 /dev/media1[]: Failed to open media device at /dev/media1: Permission denied
[0:05:54.879385479] [1866] INFO DeviceEnumerator device_enumerator.cpp:218 Unable to populate media device /dev/media1 (Permission denied), skipping
[0:05:54.879447312] [1866] ERROR MediaDevice media_device.cpp:479 /dev/media2[]: Failed to open media device at /dev/media2: Permission denied
[0:05:54.879495515] [1866] INFO DeviceEnumerator device_enumerator.cpp:218 Unable to populate media device /dev/media2 (Permission denied), skipping
ERROR: *** no cameras available ***
I flashed multiple times and reinstalled everything. Checked the cable several times. But I always get the same error.
Hope someone can help me out here.
Thanks in advance.
I tried that guide too but have run into the same issue recently. Have you tried following this instruction from arducam forum to install the driver?
Install_pivariety_pkgs.sh update and FAQ
This resolved the no cameras available error and allowed me to run libcamera-still test successfully. I still cannot get libcamera-hello to work unfortunately.
I am using external javascript inside javascript evaluator in streamsets. But when i try to load the external code i got following error. How should i resolve this. Thanks
ERROR SafeScheduledExecutorService - Uncaught throwable from
com.streamsets.pipeline.lib.executor.SafeScheduledExecutorService$SafeCallable#69717812:
com.streamsets.datacollector.util.PipelineException: PREVIEW_0003 -
Encountered error while previewing :
java.security.AccessControlException: access denied
("java.io.FilePermission"
"/opt/streamsets-datacollector-user-libs/test.js" "read")
com.streamsets.datacollector.util.PipelineException: PREVIEW_0003 -
Encountered error while previewing :
java.security.AccessControlException: access denied
("java.io.FilePermission"
"/opt/streamsets-datacollector-user-libs/test.js" "read")
As I've responded elsewhere, you will need to add a security policy to be able to load a script file. Add the following to $SDC_CONF/sdc-security.policy :
// Set global perm so that JS can load scripts from this directory
// Note - this means any code in the JVM can read this dir!
grant {
permission java.io.FilePermission "/opt/streamsets-datacollector-user-libs/-", "read";
};
You will need to restart Data Collector for changes to the security policy file to take effect.
I have seen a couple of posts, but it did not help me. I have created around 10 Linux machines in Azure and added them to agent pools.
First, the build succeeded, but when I queued the build again, it failed at get sources with the below error.
My build definition was configured:
clean: true
clean options: sources
Error:
018-03-14T18:08:10.9360932Z ##[command]git clean -fdx
2018-03-14T18:08:11.1202177Z warning: failed to remove builddir/support-files/wsrep.cnf: Permission denied
2018-03-14T18:08:11.1221821Z warning: failed to remove builddir/support-files/sysusers.conf: Permission denied
2018-03-14T18:08:11.1248161Z warning: failed to remove builddir/support-files/CTestTestfile.cmake: Permission denied
2018-03-14T18:08:11.1268109Z warning: failed to remove builddir/support-files/mariadb.pc: Permission denied
2018-03-14T18:08:11.1285043Z warning: failed to remove builddir/support-files/wsrep_notify: Permission denied
2018-03-14T18:08:11.1297658Z warning: failed to remove builddir/support-files/mysql.server: Permission denied
2018-03-14T18:08:11.1309669Z warning: failed to remove builddir/support-files/cmake_install.cmake: Permission denied
2018-03-14T18:08:11.1321349Z warning: failed to remove builddir/support-files/CMakeFiles/CMakeDirectoryInformation.cmake: Permission denied
2018-03-14T18:08:11.1333209Z warning: failed to remove builddir/support-files/CMakeFiles/progress.marks: Permission denied
2018-03-14T18:08:11.1345486Z warning: failed to remove builddir/support-files/mysqld_multi.server: Permission denied
Based on the logs, it seems delete for the duilddir/support-files directory is not allowed (you can also check the permission by referring to the post Why can't I delete a file where I have group write permissions on?).
Please set the permission enable to delete under your agent's work folder.
I have a locally sourced enterprise-installed extension which is installed via the ExtensionInstallForcelist policy. The policy is visible on the chrome://policy page with a status of OK. The URL to the update manifest xml file is of the form "file:///c:/program%20files/xxx/updates.xml" The .crx file is also located in the same folder "file:///c:/program%20files/xxx/myextension.crx" I can successfully browse to both of those files. Yet the extension does not load.
Is there any way to determine the reason that chrome is not loading the extension? I do not see any indication of error. I have opened up the inspect developer window on the extension page, but see no console messages or exceptions. Is there a log file I could look at, or some other means of determining why the extension is not loading?
UPDATE: Turned on logging and see the following:
[3752:3156:0327/171545:WARNING:extension_error_reporter.cc(79)] Extension error: Expected ID "kfegeekbdleinhdfillngiggbjiflghe", but ID was "ijdpkgandgfnpbammiehlfpfpboclodn".
[3752:3440:0327/172253:WARNING:extension_protocols.cc(422)] Failed to GetPathForExtension: kfegeekbdleinhdfillngiggbjiflghe
[3752:3440:0327/172253:WARNING:url_request_job_manager.cc(89)] Failed to map: chrome-extension://kfegeekbdleinhdfillngiggbjiflghe/
[3752:3440:0327/172253:VERBOSE1:resource_loader.cc(364)] OnResponseStarted: chrome-extension://kfegeekbdleinhdfillngiggbjiflghe/
[3752:3440:0327/172253:VERBOSE1:resource_loader.cc(778)] ResponseCompleted: chrome-extension://kfegeekbdleinhdfillngiggbjiflghe/
[3752:3156:0327/172253:VERBOSE1:navigator_impl.cc(298)] Failed Provisional Load: chrome-extension://kfegeekbdleinhdfillngiggbjiflghe/, error_code: -2, error_description: Unknown error., showing_repost_interstitial: 0, frame_id: 1
I'm having following errors from TeamCity when it updates working directory.
I'm using TeamCity 8.1.3 and checking out github repository on agent.
Looks like it happened all of a sudden. This was working yesterday.
I'm not sure how I can investigate this issue... Could someone help me?
[19:11:33]Checking for changes
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.RecentlyFailedTestsFileWriter. Error: Permission denied
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.ChangedFilesListFileWriter. Error: Permission denied
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.RunnerParametersFileWriter. Error: Permission denied
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.BuildParametersFileWriter. Error: Permission denied
[19:11:34]Failed to register agent parameters for: class jetbrains.buildServer.agent.impl.buildFiles.ConfigurationParametersFileWriter. Error: Permission denied
[19:11:34]Failed to publish build.start.properties.gz file. /Users/iosdevelopment/Documents/buildAgent/temp/agentTmp/build.start.properties.gz (Permission denied)
[19:11:34]Clearing temporary directory: /Users/iosdevelopment/Documents/buildAgent/temp/buildTmp
[19:11:34]Failed to delete empty directory: /Users/iosdevelopment/Documents/buildAgent/temp/buildTmp
[19:11:34]Checkout directory: /Users/iosdevelopment/Documents/buildAgent/work/ios_build_dir
[19:11:34]Updating sources: agent side checkout
[19:11:34][Updating sources] Will perform clean checkout. Reason: Checkout directory is empty or doesn't exist
[19:11:34][Updating sources] Cleaning /Users/iosdevelopment/Documents/buildAgent/work/ios_build_dir
[19:11:34][Updating sources] Using vcs information from server. Reason: no revision information for buildtype iPhone_CI and checkout directory /Users/iosdevelopment/Documents/buildAgent/work/ios_build_dir on agent
[19:11:34][Updating sources] VCS Root: git#github.com:taichino/iOS.git
[19:11:34][Updating sources] Failed to perform checkout on agent: Permission denied
[19:11:34]Publishing artifacts
[19:11:34]Failed to generate coverage report, error: java.io.FileNotFoundException: /Users/iosdevelopment/Documents/buildAgent/work/ios_build_dir/coverage.ic file does not exist
[19:11:34]Failed to publish build.finish.properties.gz file. /Users/iosdevelopment/Documents/buildAgent/temp/agentTmp/build.finish.properties.gz (Permission denied)
[19:11:34]Build failed to start. Artifacts will not be published for this build
I meet this similar issue, it is because of permission restriction.
I chmod -R 777 for the entire Teamcity installation, it works.
Hope it helps.
It might because you run teamcity agent under root (or other users) before, chmod -R 777 should solve the problem, but before that, you can do a "ll" on your agent's install dir, especially the ~/yourAgent/temp folder, make sure it is not owned by root.
I switched to check out on the server, ran the build and once it finished successfully I switched back to checkout on the agent, and it worked!