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.
Related
I am working with an Alpine container and I would like to list all running services inside this container (something like service --status-all). The container is based on the Mosquitto-Image from Dockerhub.
With a little search, I have found that the openrc package must be installed. I tried to install it using apk
apk add openrc
then it returns:
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
140449180932936:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.16/main: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.16/main: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
140449180932936:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.16/community: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.16/community: No such file or directory
ERROR: unable to select packages:
openrc (no such package):
required by: world[openrc]
could anyone help?! Thanks in Advance :)
The command I executed:
devtool add --srcbranch master hello ssh://git#gitlab.xxxx.com.cn:22222/cjl/hello.git
but error shows:
ERROR: Fetcher failure: Fetch command export PATH="...omit"; export HOME="...omit"; git -c core.fsyncobjectfiles=0 ls-remote ssh://git#gitlab.xxxx.com.cn/22222/cjl/hello.git failed with exit code 128, output:
Permission denied, please try again.
Permission denied, please try again.
git#gitlab.ucas.com.cn: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
It resolves my URI to ssh://git#gitlab.xxxx.com.cn/22222/cjl/hello.git(:22222 to /22222)
I'm sure that:
git clone ssh://git#gitlab.xxxx.com.cn:22222/cjl/hello.git in bash is ok.
git://git#gitlab.xxxx.com.cn:22222/cjl/hello.git;protocol=ssh in other bbfile is ok.
so, why devtool change :port to /port?
yocto version: rocko 2.4
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.
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!
i have problem with swift..when i execute swift -V 2.0 -A http://xxx.xxx.x.xx:5000/v2.0/ -U cookbook:demo -K openstack stat
and then this is output
Auth GET failed: http://xxx.xxx.x.xx:5000/v2.0/tokens 500 Internal Server Error
any solution for me? :)
I hit this error while execute 'swift list'.
Error: Account GET failed ... 503 Internal Server Error (first 60 chars of response)...
On swift storage node, check log '/var/log/swift/account-server.log', and get a piece of error message:[Errno 13] Permission denied '/srv/node/sdb1/accounts'
According to the error message, I found the root cause is that, on swift storage node, the swift user doesn't have permission on directory '/srv/node/'. Grant permission with CMD: chown -R swift:swift /srv/node
And the problem is solved. Hope this helpful.