Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

​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,099
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