Unable to connect to a repository at URL 'svn://localhost' - windows

I installed the Subversion package version 1.7 on windows 7 operating system using admin account
I created the depository with the following command: svnadmin create "c:\svn_repository"
I modified the svnserve.conf and passwd files : anon-access = read, auth-access = write, and password-db = passwd
I installed the Subversion as a windows service and I started it using the following commands:
sc create svnserver binpath= "C:\Program Files (x86)\Subversion\bin\svnserve.exe --service -r c:\svn_repository" DisplayName= "Subversion" depend= tcpip start= auto
I also setted the variable SVN_EDITOR to : set SVN_EDITOR=c:\windows\system32\notepad.exe
The problem I faced is when I invoke the following command :
svn mkdir svn://localhost/myproject
I receive the following error :
svn: E200002: Unable to connect to a repository at URL 'svn://localhost'
svn: E200002: C:\svn_repository\conf\svnserve.conf:19: Option expected

check the svnserve.conf for whitespace at the beginning of the line for each option you specified (in your case, check line 19 of svnserve.conf, if you have a white space before that line, remove it)

-r c:\svn_repository" and svnadmin create c:\svn_repository are incompatible
-r define common root of repositories and can't be repository per se

Related

How to connect to a JDBC database (Filemaker) from the command line (macOS)?

I'd like to connect (and query) a FileMaker database via its jdbc driver fmjdbc.jar from the command-line?
How to do this?
I found jisql which seems to be a command-line client but as I'm a noob, I don't know how to install / compile it.
Rather than compiling jar files from source you can download the necessary jars to your computer (or server) and then reference them when calling jisql.
The simplest source of prepared jars is the Maven repository. Search for the library you want and then click "Browse" to get a direct URL for the jar.
Here's an example using Maven to download the jar files. I'm connecting to Redshift here since I couldn't easily find a FileMaker download link.
mkdir jisql-test
cd jisql-test
wget https://repo1.maven.org/maven2/org/apache/ranger/jisql/2.1.0/jisql-2.1.0.jar
wget https://repo1.maven.org/maven2/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar
wget https://s3.amazonaws.com/redshift-downloads/drivers/jdbc/1.2.37.1061/RedshiftJDBC42-1.2.37.1061.jar
java -cp jisql-2.1.0.jar:jopt-simple-5.0.4.jar:RedshiftJDBC42-1.2.37.1061.jar org.apache.util.sql.Jisql -user my_user -password MyComplexPassword -driver com.amazon.redshift.jdbc42.Driver -cstring jdbc:redshift://cluster-name.csds57mn8kff.us-east-1.redshift.amazonaws.com:5439/my_db -c \;
This should open a query prompt and you are ready to go:
Enter a query:
1 > SELECT now();
now |
------------------------------------|
2020-11-19 13:47:10.285999+00 |
Enter a query:
1 >

Problem cloning bare repository from windows 10 git server to windows 7 client: does not appear to be a git repository

I created a bare repository on windows 10 workstation which is attached to company private network
cd c:\users\remoteusername\gitserver
mkdir myrepo.git
cd myrepo.git
git init --bare --shared=group
Thereafter I setup an ssh server on this windows server using Win32_OpenSSH
On my windows 7 client, I first create a pair of public/private ssh keys from git shell and added it to ssh-agent:
cd c:\users\localusername\.ssh\
ssh-keygen.exe -t ed25519
eval `ssh-agent -s`
ssh-add.exe id_ed25519
This generated public/private key pair id_ed25519.pub and id_ed25519 on my windows 7 client machine.
Then I copied the contents from public key id_ed25519.pub to file c:\users\remoteusername.ssh\authorized_keys on windows 10 server which hosts my bare git repository.
I restart ssh daemon on the windows 10 server
net stop sshd
net start sshd
hello
Next, on my windows 7 client, I connect to my companies private network through VPN. I first check if I could connect from my Windows 7 client to Windows 10 machine via ssh using my remoteusername:
ssh remoteusername#myorg.com
I was successfully able to connect using my remoteusername. However, if I used 'git' as user name with ssh, I can't connect:
ssh git#myorg.com
git#myorg.com's password:
Permission denied, please try again.
Next I try to clone my remote repository on my local machine but it fails:
git clone ssh://remoteusername#myorg.com/C:/Users/remoteusername/gitserver/myrepo.git testrepo
Cloning into 'testrepo'...
remoteusername#myorg.com's password: 'git-upload-pack' is not recognized as an internal or external command,
operable program or batch file.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
To resolve error with unrecognized command 'git-upload-pack', on my Windows 10 server, I added paths of git sub-folders with binaries to my environment PATH variable:
C:\Users\remoteusername\AppData\Local\Programs\Git\bin
C:\Users\remoteusername\AppData\Local\Programs\Git\mingw64\bin
I again try to clone my remote repository on my local machine but it fails with a different error:
git clone ssh://remoteusername#myorg.com:/C/Users/remoteusername/gitserver/myrepo.git testrepo
Cloning into 'testrepo'...
remoteusername#myorg.com's password:
fatal: ''/C/Users/remoteusername/gitserver/myrepo.git'' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Anyone knows what is that I am missing and how to resolve this ?

AppManage error: Failed to create adjustment process

When attempting to deploy a TIBCO BusinessWorks project using TIBCO TRA AppManage for example:
D:\projects\MyProject>D:\tibco\tra\5.7\bin\AppManage --propFile "D:\tibco\tra\5.7\bin\AppManage.tra" -deploy -ear build\MyProject.ear -deployConfig build\MyProject.xml -app /Projects/MyProject -user myuser -domain DEV -pw secret
Deployment fails with the following error:
Failed to create adjustment process
Add .exe to the AppManage command:
D:\projects\MyProject>D:\tibco\tra\5.7\bin\AppManage.exe --propFile "D:\tibco\tra\5.7\bin\AppManage.tra" -deploy -ear build\MyProject.ear -deployConfig build\MyProject.xml -app /Projects/MyProject -user myuser -domain DEV -pw secret`
This may be related to the version of the operating system (without .exe works fine on Windows 7 but not on Windows Server 2008 R2).

Change "PBX in a flash" passwords on EC2

I have a EC2 instance running CentOS and PBX on a flash installed.
I can connect to server using SSH. I want to reset PBX passwords, so i run:
passwd-master
after following steps, i get an error at the end :
Your manual password was accepted!
passwd-master - 2.0.4 released on 082612
CentOS release 6.3 (Final) - 64 Bit
**********************************************************************
* Now applying new password to maint/meetme/wwwadmin *
**********************************************************************
Applying wwwadmin password
Applying maint password
Applying meetme password
httpd service restarted to apply new passwords!
passwd-master - 2.0.4 released on 082612
CentOS release 6.3 (Final) - 64 Bit - ARI PATCH
**********************************************************************
* Now patching main.conf.php *
**********************************************************************
Now verifying /var/www/html/recordings/includes/main.conf.php exists
ERROR the file /var/www/html/recordings/includes/main.conf.php DOES NOT EXIST
or is zero length. Unable to continue now exiting
I noticed i dont have permission to access this folder : "/var/www/html/recordings/includes/"
Then i tried to set password of "maint" only, and i got an error at the end again :
passwd-maint
-------------------------------------------
Set password for AMP web GUI and maint GUI
User: maint
-------------------------------------------
New password:
Re-type new password:
Updating password for user maint
htpasswd: unable to update file /usr/local/apache/passwd/wwwpasswd
And its because i dont have access to "wwwpasswd" (not even read permission)
I login using default EC2-user obviously.
My question is, how can i fix this problem and change passwords?
I tried to use : sudo su command
and then run passwd-master , but it doesnt work.
after i use sudo su command, it doesnt know passwd-master and passwd-maint anymore and i get
bash: passwd-master: command not found
error.
Any advise please?
If its not in the path, then you have to run it like this ./passwd-master while in the directory where the script exists. – datasage
Thank you datasage. using " ./ " solved my problem . i didn't know about it.

Git with putty on windows

When attempting to push / pull over ssh, git is failing with the following error:
"C:\Program Files\Git\bin\git.exe" push -u --recurse-submodules=check -progress "testremote" project:project
Using username "git-receive-pack 'ec2-user".
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Done
The remote "testremote" is setup as "ssh://ec2-user#sweeb.net:gittest.git" and I'm using an existing keypair that I have used with PuTTY before without issue.
Pageant is running, with my key loaded.
I think the issue is the line "Using username "git-receive-pack 'ec2-user"." - I assumed git's commands were breaking on windows thanks to the space in "Program Files" so I've tried to surround everything with double quotes, but that doesn't seem to be working. Has anyone seen anything like this before?
Windows vars:
GIT_SSH=C:\PuTTY\plink.exe
PATH=[...];"C:\Program Files\Git\cmd";"C:\Program Files\Git\libexec\git-core\";"C:\Program Files\Git\bin\"
This was solved by removing "ssh://", that's implicit in Git Extensions apparently.

Resources