(Sprockets::FileNotFound)

Similar issue to what I’ve been reading around— but haven’t found a fix for it. On load of the server, it error’s out saying it can’t find the associated image. I can pull all the images out, re-run the server, and drop them back in and it works. But I can’t build or restart the server while any of my image assets are in the image folder.

Anyone familiar with this?

$ bundle exec middleman server --verbose
== The Middleman is loading
== Activating: sprockets
== Reading:  Local config
== Activating: relative_assets
Loaded extensions:
== Extension: sprockets
== Extension: relative_assets
== Extension: frontmatter
== File Change: config.rb
== File Change: source/images/alarmicon.svg
== File Change: source/index.html.erb
== File Change: source/javascripts/all.js
== File Change: source/layouts/layout.erb
== File Change: source/partner.html.erb
== File Change: source/stylesheets/all.scss
== File Change: source/stylesheets/base/_bootstrap-theme.min.css
== File Change: source/stylesheets/base/_bootstrap.min.css
== File Change: source/stylesheets/base/_extends.scss
== File Change: source/stylesheets/base/_normalize.scss
== File Change: source/stylesheets/base/_typography.scss
== File Change: source/stylesheets/base/_variables.scss
== File Change: source/stylesheets/components/_btn.scss
== File Change: source/stylesheets/components/_nav.scss
== File Change: source/stylesheets/modules/_footer.scss
== File Change: source/stylesheets/modules/_header.scss
== File Change: source/stylesheets/modules/_sections.scss
== Rebuilding resource list
/Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/sprockets-2.12.4/lib/sprockets/base.rb:153:in `resolve': couldn't find file '/projects/Company/source/images/alarmicon.svg' (Sprockets::FileNotFound)
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-sprockets-3.4.2/lib/middleman-sprockets/asset.rb:12:in `initialize'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-sprockets-3.4.2/lib/middleman-sprockets/extension.rb:99:in `new'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-sprockets-3.4.2/lib/middleman-sprockets/extension.rb:99:in `block in manipulate_resource_list'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-sprockets-3.4.2/lib/middleman-sprockets/extension.rb:98:in `each'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-sprockets-3.4.2/lib/middleman-sprockets/extension.rb:98:in `manipulate_resource_list'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/sitemap/store.rb:215:in `block (2 levels) in ensure_resource_list_updated!'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/sitemap/store.rb:214:in `each'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/sitemap/store.rb:214:in `reduce'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/sitemap/store.rb:214:in `block in ensure_resource_list_updated!'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/sitemap/store.rb:208:in `ensure_resource_list_updated!'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/sitemap/extensions/on_disk.rb:31:in `block in initialize'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/uber-0.0.15/lib/uber/options.rb:96:in `instance_exec'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/uber-0.0.15/lib/uber/options.rb:96:in `proc!'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/uber-0.0.15/lib/uber/options.rb:82:in `evaluate_for'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/uber-0.0.15/lib/uber/options.rb:60:in `call'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/hooks-0.4.1/lib/hooks/hook.rb:59:in `evaluate_callback'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/hooks-0.4.1/lib/hooks/hook.rb:55:in `execute_callback'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/hooks-0.4.1/lib/hooks/hook.rb:40:in `block in run'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/hooks-0.4.1/lib/hooks/hook.rb:39:in `each'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/hooks-0.4.1/lib/hooks/hook.rb:39:in `inject'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/hooks-0.4.1/lib/hooks/hook.rb:39:in `run'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/hooks-0.4.1/lib/hooks.rb:55:in `run_hook_for'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/hooks-0.4.1/lib/hooks/instance_hooks.rb:6:in `run_hook'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/core_extensions/request.rb:57:in `inst'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/preview_server.rb:107:in `new_app'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/preview_server.rb:24:in `start'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/cli/server.rb:81:in `server'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/cli.rb:72:in `method_missing'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:29:in `run'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/command.rb:126:in `run'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/lib/middleman-core/cli.rb:20:in `start'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/lib/ruby/gems/2.0.0/gems/middleman-core-3.3.12/bin/middleman:18:in `<top (required)>'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/bin/middleman:23:in `load'
	from /Users/arvindang/.rbenv/versions/2.0.0-p195/bin/middleman:23:in `<main>'

I dug around a little bit and I’m realizing it’s probably a permissions error associated with nesting the folder in Dropbox. Removing the app from Dropbox seems to resolve it. Hope this helps someone else down the road!