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

snap errors and exists if there is a symlink to a directory in the auto_discover_path #1332

Closed
woodsaj opened this issue Nov 4, 2016 · 0 comments

Comments

@woodsaj
Copy link
Contributor

woodsaj commented Nov 4, 2016

If there is a symLink in the auto_discovery_path snapd doesn't start.

root@1baa13fabedf:~# ln -s /tmp /opt/snap/tasks
root@1baa13fabedf:~# snapd --config /etc/snap/snapd.conf 
INFO[2016-11-04T18:42:12Z] setting log level to: debug                  
INFO[2016-11-04T18:42:12Z] Starting snapd (version: test-4ac7b4d)       
INFO[2016-11-04T18:42:12Z] setting GOMAXPROCS to: 1 core(s)             
DEBU[2016-11-04T18:42:12Z] pevent controller created                     _block=new _module=control
DEBU[2016-11-04T18:42:12Z] metric catalog created                        _block=new _module=control
DEBU[2016-11-04T18:42:12Z] plugin manager created                        _block=new _module=control
DEBU[2016-11-04T18:42:12Z] signing manager created                       _block=new _module=control
DEBU[2016-11-04T18:42:12Z] runner created                                _block=new _module=control
DEBU[2016-11-04T18:42:12Z] started                                       _block=start _module=control-runner
INFO[2016-11-04T18:42:12Z] Setting work manager queue size               _block=New _module=scheduler value=25
INFO[2016-11-04T18:42:12Z] Setting work manager pool size                _block=New _module=scheduler value=4
DEBU[2016-11-04T18:42:12Z] metric manager linked                         _block=set-metric-manager _module=scheduler
INFO[2016-11-04T18:42:12Z] Configuring REST API with HTTPS set to: false  _module=_mgmt-rest
INFO[2016-11-04T18:42:12Z] REST API is enabled                          
INFO[2016-11-04T18:42:12Z] control started                               _block=start _module=control
INFO[2016-11-04T18:42:12Z] auto discover path is enabled                 _block=start _module=control
INFO[2016-11-04T18:42:12Z] autoloading plugins from: /opt/snap/plugins   _block=start _module=control
INFO[2016-11-04T18:42:12Z] autoloading plugins from: /opt/snap/tasks     _block=start _module=control
ERRO[2016-11-04T18:42:12Z] read /opt/snap/tasks/tmp: is a directory      _block=start _module=control autodiscoverpath=/opt/snap/tasks plugin=&{name:tmp size:4 mode:134218239 modTime:{sec:63613881724 nsec:11062310 loc:0x1333600} sys:{Dev:60 Ino:86 Nlink:1 Mode:41471 Uid:0 Gid:0 X__pad0:0 Rdev:0 Size:4 Blksize:4096 Blocks:0 Atim:{Sec:1478284924 Nsec:11062310} Mtim:{Sec:1478284924 Nsec:11062310} Ctim:{Sec:1478284924 Nsec:11062310} X__unused:[0 0 0]}}
root@1baa13fabedf:~# 
@nanliu nanliu changed the title snap errors and exists if there is a synlink to a directory in the auto_discover_path snap errors and exists if there is a symlink to a directory in the auto_discover_path Nov 4, 2016
@nanliu nanliu added the type/bug label Nov 4, 2016
woodsaj added a commit to grafana/snap_k8s that referenced this issue Nov 4, 2016
Snap crashes with mounted configMap volumes due to its inahbility
to handle symbolic links properly.
intelsdi-x/snap#1332
@snapbot snapbot added the tracked label Nov 7, 2016
lmroz added a commit to lmroz/snap that referenced this issue Nov 30, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants