logo

Troubleshooting

#Permissions

  • 401 authz.invalid_permission on specific endpoint
  1. Check list of your permissions on barong seeds.yml or tower admin panel
  2. If there are no such permission just add new permission on tower admin panel
  • 401 authz.invalid_permission after login
  1. Check your permissions on barong rails console
irb(main)013:0> Permission.all
irb(main)013:0> Rails.cache.read('permissions')
  1. If there are no permissions on rails cache or these permissions are wrong you need to run following command When you delete permissions from rails cache they will be automatically fetched
irb(main)013:0> Rails.cache.delete('permissions')
  1. If there are no permissions on DB you need to seed permissions
bundle exec rake db:seed

#Restictions

Be careful with testing restriction and don't ban your local IP!