# Custom catalog not showing templates

**URL:** <https://forums.suse.com/t/custom-catalog-not-showing-templates/6444>\
**Category:** Rancher 1.x\
**Created:** [May 23, 2017, 12:22pm UTC](https://forums.suse.com/t/custom-catalog-not-showing-templates/6444 "2017-05-23T12:22:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal.Jusik](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@Michal.Jusik](https://forums.suse.com/u/Michal.Jusik)\
**Post date:** [May 23, 2017, 12:22pm UTC](https://forums.suse.com/t/custom-catalog-not-showing-templates/6444/1 "2017-05-23T12:22:28Z")

</div>

Hi,

Recently we have installed Rancher as a docker container. We’re using rancher/server:latest which I found today, it’s not stable version.  
Configuration itself went smooth and we are able to manage containers from within the Rancher/Cattle UI.

Yesterday I tried to create custom catalog with the application we built. To deploy it, we are successfully using docker-compose.yml file.  
I read a ton of guides and followed the instructions.  
The difference from others is that I’m using local git repository instead of the one at GitHub to maintain catalog content.  
The reason why I do this, is the copyrights policy in the company where I work.

Unfortunately what ever I would do, the custom catalog shows “There are no compatible templates.”  
I started to debug this situation.  
To exclude any docker-compose / rancher-compose issues, I just created empty files, as it was described on one blog.  
The config.yml file is as follows :

name: test # Name of the Catalog Entry  
description: |  
test app # Description of the Catalog Entry  
version: 1 # Version of the Catalog to be used  
category: test # Category to be used for searching catalog entries  
maintainer: mike # The maintainer of the catalog entry  
license: Company # The license  
projectURL: /private\_catalog/templates/ # A URL related to the catalog entry

I’ve set the custom catalog at Cattle :

Name : Dev URL: /private\_catalog/templates/.git Branch: master

I checked from the rancher/server container that I can successfully do “git clone” from the repository which is also on the same container. I read that changes are cloned into DATA directory which is not present on the container.  
I created “DATA” directory at /var/lib/cattle/DATA and manually “git cloned” the repository which resulted in fetching advised folders structure. Also didn’t work out. Still “There are no compatible templates.” information at Catalog tab.  
After this test I reverted the changes (deleted DATA directory).

However I noticed that there is “cache” directory. When I changed the content of local git repository and committed it, files at /var/lib/cattle/cache/global/31dc0f55293c998d0e770efa811d2612 where pulled/cloned successfully.

I reviewed the logs and didn’t see any relevant error.

Audit Logs → Response Object :

 ![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/4/4694701d2f840fc6e1c64ce55b36ad1e261f14f0.png)

Logs from the container :

2017-05-23 11:54:59,927 INFO [:] [ecutorService-2] [i.c.p.core.cleanup.TableCleanup] Skipped “cattle”.“environment” where id in [22, 23]  
2017-05-23 11:54:59,948 INFO [:] [ecutorService-2] [i.c.p.core.cleanup.TableCleanup] SQL [delete from `account` where `account`.`id` in (?, ?, ?)]; (conn:1055) Cannot delete or update a parent row: a foreign key constraint fails (`cattle`.`audit_log`, CONSTRAINT `fk_audit_log__account_id` FOREIGN KEY (`account_id`) REFERENCES `account` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION)  
Query is: delete from `account` where `account`.`id` in (?, ?, ?), parameters [14,15,16]  
2017-05-23 11:54:59,948 INFO [:] [ecutorService-2] [i.c.p.core.cleanup.TableCleanup] Skipped “cattle”.“account” where id in [9, 17]  
2017-05-23 11:54:59,949 INFO [:] [ecutorService-2] [i.c.p.core.cleanup.TableCleanup] Cleanup other tables [cutoff=Sun May 21 11:54:59 UTC 2017]  
2017-05-23 11:54:59,949 INFO [:] [ecutorService-2] [i.c.p.core.cleanup.TableCleanup] [Rows Skipped] instance=32 service\_index=11 image=32 agent=2 service=9 environment=2 account=2

Docker is installed on Red Hat Enterprise Linux Server release 7.3 (Maipo)  
Docker engine version : 17.03.1-ce

CATTLE\_RANCHER\_CLI\_VERSION=v0.6.0  
DEFAULT\_CATTLE\_RANCHER\_CLI\_DARWIN\_URL=https://releases.rancher.com/cli/v0.6.0/rancher-darwin-amd64-v0.6.0.tar.gz  
CATTLE\_CATTLE\_VERSION=v0.179.7  
DEFAULT\_CATTLE\_RANCHER\_COMPOSE\_WINDOWS\_URL=https://releases.rancher.com/compose/v0.12.5/rancher-compose-windows-386-v0.12.5.zip  
DEFAULT\_CATTLE\_API\_UI\_CSS\_URL=/api-ui/ui.min.css  
DEFAULT\_CATTLE\_RANCHER\_CLI\_WINDOWS\_URL=https://releases.rancher.com/cli/v0.6.0/rancher-windows-386-v0.6.0.zip  
DEFAULT\_CATTLE\_AUTH\_SERVICE\_EXECUTE=true  
DEFAULT\_CATTLE\_RANCHER\_COMPOSE\_LINUX\_URL=https://releases.rancher.com/compose/v0.12.5/rancher-compose-linux-amd64-v0.12.5.tar.gz  
CATTLE\_HOME=/var/lib/cattle  
DEFAULT\_CATTLE\_RANCHER\_CLI\_LINUX\_URL=https://releases.rancher.com/cli/v0.6.0/rancher-linux-amd64-v0.6.0.tar.gz  
CATTLE\_API\_UI\_URL=//releases.rancher.com/api-ui/1.0.8  
CATTLE\_RANCHER\_SERVER\_VERSION=v1.6.0  
DEFAULT\_CATTLE\_API\_UI\_INDEX=//releases.rancher.com/ui/1.6.1  
DEFAULT\_CATTLE\_SECRETS\_API\_EXECUTE=true  
CATTLE\_RANCHER\_SERVER\_IMAGE=rancher/server  
CATTLE\_HOST\_API\_PROXY\_MODE=embedded  
DEFAULT\_CATTLE\_CATALOG\_URL={“catalogs”:{“community”:{“url”:“[https://git.rancher.io/community-catalog.git",“branch”:“master”},“library”:{“url”:“https://git.rancher.io/rancher-catalog.git”,“branch”:"master](https://git.rancher.io/community-catalog.git%22,%22branch%22:%22master%22%7D,%22library%22:%7B%22url%22:%22https://git.rancher.io/rancher-catalog.git%22,%22branch%22:%22master)”}}}  
CATTLE\_USE\_LOCAL\_ARTIFACTS=true  
DEFAULT\_CATTLE\_WEBHOOK\_SERVICE\_EXECUTE=true  
CATTLE\_RANCHER\_COMPOSE\_VERSION=v0.12.5  
DEFAULT\_CATTLE\_RANCHER\_COMPOSE\_DARWIN\_URL=https://releases.rancher.com/compose/v0.12.5/rancher-compose-darwin-amd64-v0.12.5.tar.gz  
DEFAULT\_CATTLE\_API\_UI\_JS\_URL=/api-ui/ui.min.js  
DEFAULT\_CATTLE\_CATALOG\_EXECUTE=true  
CATTLE\_DB\_CATTLE\_DATABASE=mysql  
DEFAULT\_CATTLE\_COMPOSE\_EXECUTOR\_EXECUTE=true  
DEFAULT\_CATTLE\_MACHINE\_EXECUTE=true

Does this situation is the result of unstable version ?  
Any advice would be appreciated.

Cheers  
M.J.

PS. I wanted to upload more screebshots but unfortunately as a new member I can attach only 1.

---

<div class="post-metadata">

**Author:** ![Michal.Jusik](https://avatars.discourse-cdn.com/v4/letter/m/9dc877/32.png) [@Michal.Jusik](https://forums.suse.com/u/Michal.Jusik)\
**Post date:** [May 24, 2017, 1:06pm UTC](https://forums.suse.com/t/custom-catalog-not-showing-templates/6444/2 "2017-05-24T13:06:30Z")

</div>

HI,

I found the reason why I couldn’t see a template.  
Initially I was creating entry based on the document at [http://rancher.com/rancher-catalog-templates-from-scratch-part-1/](http://rancher.com/rancher-catalog-templates-from-scratch-part-1/)  
Unfortunately either this post is old and changes have been made to rancher or author didn’t write important note.

It turned out that rancher-compose.yml file can not be empty.  
In other words when I added the “.catalog” section I was able to see the icon and view details.  
A scaffolding for this section is :

.catalog:  
name: TestApp  
version: 1.0.1  
description: |  
A test app scenario.

After adding this to rancher-compose.yml I’m able to add custom catalog entry either via GitHub or local git repo.
