ERRO[0002] Failed Starting wordpress : json: cannot unmarshal number into Go value of type string
ERRO[0002] Failed to start: wordpress : json: cannot unmarshal number into Go value of type string
FATA[0002] json: cannot unmarshal number into Go value of type string
If I remove the external link and use rancher-compose it starts up fine. Then I can add the external link through the UI to get it to work. Anybody know why it is giving me the marshaling error?
I originally thought it was an issue needing quotes, but it’s not. I’ve tried quoting all numbers, but that doesn’t help. It ONLY occurs when I have the external_links defined, and it also doesn’t occur right away. It will try to start the services but around 10 seconds into the process is when it fails. Normally when the YAML is messed up rancher-compose won’t even run. If I remove the external_links definition it has no issues and sets the mem_limit correctly using the integer.
I’m pretty sure the unmarshaling error is occuring when it decodes a JSON response from the API server.
The Main stack is the default stack created by Rancher, just renamed to Main. All of the services in that stack are created through the UI. I haven’t had any issues before with linking, and it only seems to happen with an external link. I did use the external_links feature correctly, right? I couldn’t find a ton of docs on it other than a mention in the load balancer section.
Is there an equivalent rancher-compose.yml and could I also get the docker-compose.yml for the Main stack? I will try to reproduce in the next day or two.
I didn’t use a rancher-compose file for the stack with wordpress. Also I don’t have a docker-compose file for Main stack, as I am not using rancher-compose for that stack.
No, I did not use a rancher-compose file for the stack with the external_links. As for the ‘Main’ stack I created that one through the UI so I do not have a docker-compose file for that stack.
If it’d help I can allow your github account to access my UI temporarily.
What version of Rancher-compose are you using? Can you do a rancher-compose -v? Also, what version of Rancher are you running?
One thing that’s weird is that in your original post you are linking to Main/MariaDB:mysql, but in your docker-compose.yml of your Main stack, it’s called MariaDB-Master.
Also, you might find this issue on Expose relevant. Basically, rancher-compose ignores “Expose”. There was an issue with expose in previous rancher-compose release. The latest version (v0.4.1) has a fix.
Yeah, I copied the wrong YAML file. I actually referenced MariaDB-Master in the YAML file Ive been trying to use. I had thought before that the dashes were messing it up so I copied MariaDB-Master into another container called MariaDB and tried using that to no avail.
When I originally posted this thread I was using rancher-compose 0.4.0 but I upgraded the other day to 0.4.1 and it still gives the marshaling error.