geronimo deploy cli file not found - deployment

Hello I want to deploy an .ear remotely with the deploy.sh of geronimo. But after the upload i get:
http://localhost:8080/remote-deploy/upload
07:50:22,889 ERROR [DeployTool] Error:
org.apache.geronimo.common.DeploymentException: Unable to deploy myproj.service.external.ear: java.io.FileNotFoundException: /home/myproj/geronimo-tomcat6-javaee5-2.2/bin/myproj.service.external.ear (No such file or directory)
/home/myproj/geronimo-tomcat6-javaee5-2.2/bin/myproj.service.external.ear (No such file or directory)
at org.apache.geronimo.deployment.cli.CommandDeploy.runCommand(CommandDeploy.java:45)
at org.apache.geronimo.deployment.cli.CommandDistribute.executeOnline(CommandDistribute.java:149)
at org.apache.geronimo.deployment.cli.CommandDistribute.execute(CommandDistribute.java:125)
at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:168)
at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)
I'm using geronimo
Version 2.2
Build 2009.12.07-18:20:06.045-0800
My deploy cmd looks like:
./deploy.sh -host hostname --user "usr" --password "pw" deploy myproj.service.external.ear

Related

FAILED: list-all did not return any version

I'm trying to install Java with the asdf plugin.
I could get the plugin but I cannot get the Java list.
The command:
asdf plugin-test java https://github.com/halcyon/asdf-java.git
gives me the message:
FAILED: list-all did not return any version
I'm on Windows 11 in a Tabby 1.0.179 / Git bash terminal.
Previously I could run the commands:
asdf plugin list
asdf plugin list all
asdf plugin add java
cd ~/dev/projects/myproject
asdf list
asdf list java
But the command:
asdf list all java
fails with the message:
Plugin java's list-all callback script failed with output:
/c/Users/stephane.2143929/.asdf/plugins/java/bin/list-all: line 1: functions: command not found
Indeed the ~/.asdf/plugins/java/bin/list-all file contains only one word: functions
As the access to the git repository is done through https and not ssh I have previously specified the GITHUB_API_TOKEN environment variable which is correctly set as seen by an echo $GITHUB_API_TOKEN command.
Regarding the git configuration, I was having the error message:
SSL certificate problem: unable to get local issuer certificate
and the property http.sslbackend had the value openssl
as showed by the command:
git config -l --show-origin
Then I typed in the command:
git config --global http.sslbackend schannel
and verified the changed property again:
git config -l --show-origin
and I could then clone some repository.

AWS CLI : Windows CLI -- SSLError: [Errno 2] No such file or directory

I am trying to create stack using below command on Windows AWS CLI
aws cloudformation create-stack --stack-name dockerApp --template-body file://./stack.json`
Here is stack.json contains my template definition
I am getting below error:
Error parsing parameter '--template-body': Unable to load paramfile file://./stack.json: [Errno 2] No such file or directory: u'/./stack.json'
Open command prompt as administrator and execute below command
copy "c:\Program Files\Amazon\AWSCLI\botocore\vendored\requests\cacert.pem" "c:\Program Files\Amazon\AWSCLI\certifi"
For more information, go through aws-cli-issue

Powershell command is not recognized in gitlab.ci.yml

I am trying to execute a PowerShell script from gitlab.ci.yml file, but the PowerShell command is not recognized. The PowerShell which I am trying to trigger just has a single line to print some message.
Running with gitlab-runner 11.5.0 (3afdaba6)
on docker-auto-scale fa6cab46
Using Docker executor with image ruby:2.5 ...
Pulling docker image ruby:2.5 ...
Using docker image sha356:7834f561ba80e65515163209a3f952fcd1d11f9ce4420ba63d952e5b52b77e1 for ruby:2.5 ...
Running on runner-fa6cab46-project-9772339-concurrent-0 via runner-srm-1545289526-a4a36a59...
Cloning repository...
Cloning into 'builds/leo.danny/jenkinsintegration'...
Checking out 4b9beba2 as master...
Skipping Git submodules setup
$ powershell "./JenkinsPowershell.ps1"
/bin/bash: line 70: powershell: command not found
ERROR: Job failed: exit code 1

Exported data from Octopus Deploy 3.9 and now having issues importing Octopus Deploy 4.10?

I exported data from Octopus Deploy 3.9 from one server and tried to import into Octopus 4.10 on another server?
Getting the following errors:
Error: Directory does not contain an Octopus export
Error: The previous command returned a non-zero exit code of: 1
Error: The command that failed was: "F:\Program Files\Octopus Deploy
4.1\Octopus.Migrator.exe" import --instance "OctopusServer" --directory "F:\Octopus\OctopusData\Events" --password "afs1"
Other Details:
Octopus Deploy 3.9 was installed on C:\ on one server
Octopus Deploy 4.1 was installed on E:\ on another
Logs:
2018-02-02 13:46:12.3847 6820 1 INFO Environment Information:
OperatingSystem: Microsoft Windows NT 6.2.9200.0
OsBitVersion: x64
Is64BitProcess: True
CurrentUser: AFSDEV\cgarcia
MachineName: AFS-SBX-TFS
ProcessorCount: 4
CurrentDirectory: F:\Program Files\Octopus Deploy 4.1
TempDirectory: C:\Users\cgarcia\AppData\Local\Temp\
HostProcessName: Octopus.Migrator
PID: 6820
2018-02-02 13:46:12.4784 6820 1 INFO ==== ImportFilesCommand ====
2018-02-02 13:46:12.4940 6820 1 FATAL Directory does not contain an Octopus export

swift build faild due to "database is locked" in docker contianer?

basically I am trying to learn swift in win7 using docker with following setup and steps:
1) physical machine running on win7
2) docker toolbox 1.12.5 window version installed in win7
3) open "Docker Quickstart Terminal" which is a MINGW64 console
4) in MINGW64 console,ran "docker pull swift" to pull a docker swift image
5) create container using "docker run -it --hostname=value --privileged=true --net=host -v //d/dev/tools/docker/swift://swift:z --name swiftfun 24cc712c0763 /bin/bash", which actually the volume mapping does not work. I can not create file in folder of my win7 host
swift version is :
root#value:/swift/PerfectTemplate/.build# swift -version
Swift version 3.0.2 (swift-3.0.2-RELEASE)
Target: x86_64-unknown-linux-gnu
linux container is :
root#value:/swift/PerfectTemplate/.build# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
6) then ran this in container "mount -t cifs //10.x.x.xxx/D$/dev/tools/docker/swift /swift -o username=myusername,password=mypassword,noperm" , this time works and I can see files in my win7 folder and can write files to win7 .
7) go to the folder "/swift" in container and pull code from git as shown in this link http://perfect.org/docs/gettingStarted.html . I can see files/folders created in win7 folder
8) in container, go to folder "PerfectTemplate" and ran swift build , it failed with following message :
...
Cloning https://github.com/PerfectlySoft/Perfect-Thread.git
HEAD is now at aee3b32 Cleanup
Resolved version: 2.0.9
<unknown>:0: error: unable to attach DB: unable to initialize database (database
is locked)
error: exit(1): /usr/bin/swift-build-tool -f /swift/PerfectTemplate/.build/debug
.yaml
...
there is a file build.db created in my win7 folder D:\dev\tools\docker\swift\PerfectTemplate\.build\build.db
and the file size remains 0 byte
following is verbose info from building:
/usr/bin/swiftc --driver-mode=swift -I /usr/lib/swift/pm -L /usr/lib/swift/pm -l
PackageDescription /swift/PerfectTemplate/Packages/PerfectThread-2.0.9/Package.s
wift -fileno 4
/usr/bin/swift-build-tool -f /swift/PerfectTemplate/.build/debug.yaml -v
<unknown>:0: error: unable to attach DB: unable to initialize database (database
is locked)
error: exit(1): /usr/bin/swift-build-tool -f /swift/PerfectTemplate/.build/debug
.yaml -v
if I use linux local folder for building code then everything is working fine .the size of build.db changes . does it have anything to do with mounted drive using //ip/drive ?
how do I resolve ? Thanks
OK, it seems that sqlite is not tolerate to mapped windows folder in containers. I tried mapping folders using both //ip/folder approach and virtualbox shared folder approach . none of them works. and seems it has something to do with winLockFile,please check link below
http://sqlite.1065341.n5.nabble.com/SQLite3-database-on-windows-network-drive-and-unreliable-connection-td75875.html
https://www.sqlite.org/whentouse.html
I also checked source code of swift package manager , it seems there is no way of adding options to swift-build-tool as part of "swift build" command