Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Validate schema error on latest build #1515

Closed
sandlbn opened this issue Feb 13, 2017 · 7 comments
Closed

Validate schema error on latest build #1515

sandlbn opened this issue Feb 13, 2017 · 7 comments
Labels

Comments

@sandlbn
Copy link
Contributor

sandlbn commented Feb 13, 2017

Using latest build I get below error.

ERRO[0000] Validate schema error                         context=(root)::restapi description=Additional property corsd is not allowed value=map[port:8181 https:false rest_auth:false enable:true rest_certificate: rest_key: rest_auth_password: pprof:false corsd: addr::8181]

Steps to reproduce:

wget http://snap.ci.snap-telemetry.io/snap/latest_build/linux/x86_64/snapteld
chmod +x snapteld && mkdir /var/log/snap
./snapteld -plugin-trust 0 --log-level 1 --log-path /var/log/snap

System: CentOS 7
Version: snapteld version test-89bf6c0

@jcooklin
Copy link
Collaborator

A new release will be cut today (1.1.1) addressing this issue. Stay tuned.

jcooklin pushed a commit to jcooklin/snap that referenced this issue Feb 13, 2017
- Updates 'Corsd' field in rest.Config to 'allowed_origins' for json
- Validates config defaults
@jcooklin jcooklin mentioned this issue Feb 13, 2017
@mbbroberg
Copy link
Contributor

Correction to the need for a new release - as @jcooklin identified upon review, no release has this behavior - it was only master. #1516 fixed this.

@sandlbn
Copy link
Contributor Author

sandlbn commented Feb 14, 2017

@jcooklin thanks for new build but latest build still doesn't work

root@ubuntu-16:/home/vagrant# ./snapteld --version
snapteld version test-85079bc

snapteld returns to terminal prompt right after execution:

root@ubuntu-16:/home/vagrant# ./snapteld -t 0 -l 1
root@ubuntu-16:/home/vagrant#

@sandlbn sandlbn reopened this Feb 14, 2017
@jcooklin
Copy link
Collaborator

@sandlbn do you have a snapteld config in /etc/snap/?

@sandlbn
Copy link
Contributor Author

sandlbn commented Feb 14, 2017 via email

@jcooklin
Copy link
Collaborator

@sandlbn no but I was thinking maybe it defined a location for the log and in it we would see some kind of error.

I'm unable to reproduce the issue you are describing. I've tried building and downloading "latest" on both Linux and Mac. Can you strace the starting of snapteld to see if that gives us a hint as to what is wrong?

img
☝️ is running:
wget -O snapteld http://snap.ci.snap-telemetry.io/snap/latest_build/linux/x86_64/snapteld && chmod 755 snapteld && snapteld -t 0 -l 1

@sandlbn
Copy link
Contributor Author

sandlbn commented Feb 14, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants