​apigeetool deployproxy "Error: Proxy base directory . does not exist"

Not applicable

I'm trying to use apigeetool but I got "Error: Proxy base directory . does not exist". Can you help me to solve it?

* config tree

.
├── deploy-proxy-example.xml
├── policies
├── proxies
│   └── default.xml
└── resources
    └── default.xml 

* deploy-proxy-example.xml

<APIProxy name="deploy-proxy-example">
    <Description>Deploy Simple Proxy Example</Description>
</APIProxy> 

* proxies/default.xml

<ProxyEndpoint name="default">
    <PreFlow>
    </PreFlow>
    <HTTPProxyConnection>
        <BasePath>/mocktarget_key</BasePath>
        <VirtualHost>default</VirtualHost>
        <VirtualHost>secure</VirtualHost>
    </HTTPProxyConnection>
    <RouteRule name="default">
        <TargetEndpoint>default</TargetEndpoint>
    </RouteRule>
</ProxyEndpoint> 

* resources/default.xml

<TargetEndpoint name="default">
    <HTTPTargetConnection>
        <URL>http://mocktarget.apigee.net/</URL>
    </HTTPTargetConnection>
</TargetEndpoint> 

* apigeetool command

$ cd deploy-proxy-example
$ apigeetool deployproxy -u 'xxx' -p 'xxx' -o 'xxx-eval' -e 'test' -n 'deploy-proxy-example' -d .
Solved Solved
1 5 1,036
1 ACCEPTED SOLUTION

Not applicable

I found the reason. apiproxy directory was required.

.

└── apiproxy

    ├── deploy-proxy-example.xml

    ├── policies

    ├── proxies

    │   └── default.xml

    └── resources

        └── default.xml

View solution in original post

5 REPLIES 5

Not applicable

I found the reason. apiproxy directory was required.

.

└── apiproxy

    ├── deploy-proxy-example.xml

    ├── policies

    ├── proxies

    │   └── default.xml

    └── resources

        └── default.xml

Glad you found the issue @zono. Please accept the answer so that its useful to others who stumble upon the same issue

In other words, make sure that you are outside of your apiproxy folder in order to be able to deploy it. It should then work if your apiproxy folder is in your current directory.

hello

I have the same problem, but I already have my directory like that but I'm working in windows and I'm using nodejs this is my command:

apigeetool deployproxy -u xxxxx:xxxxx -o xxxxx-eval -e test -n api-deploy-demo -d .


└── apiproxy

    ├── api-deploy-demo.xml

    ├── policies

    ├── proxies

    │└──default.xml

    └── targets

        └──default.xml

Try and make sure that you are outside of your apiproxy folder in order to be able to deploy it. It should then work if your apiproxy folder is in your current directory (apigeetool should be able to find it then).