Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create long temp concat files for long locations #297

Closed
pennycoders opened this issue Apr 13, 2014 · 1 comment · Fixed by #298
Closed

Unable to create long temp concat files for long locations #297

pennycoders opened this issue Apr 13, 2014 · 1 comment · Fixed by #298

Comments

@pennycoders
Copy link
Contributor

Hey guys,

I always seem to get the following error, whenever i am trying to create a location with the following location attribute:
~* .(ico|3gp|gif|jpg|cur|svg|jpeg|wmv|avi|asf|asx|mpg|mpeg|mp4|ttf|woff|eot|svg|pls|mp3|mid|wav|swf|flv|js|html|htm|txt|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|htc)(?[0-9]+)?$

The error:

Error: Could not set 'file' on ensure: cannot generate tempfile `/var/lib/puppet/concat/_etc_nginx_sites-available_demo.pushpennyauction.com.conf/fragments/501_demo.pushpennyauction.com-501-~* _.(ico|3gp|gif                             |jpg|cur|svg|jpeg|wmv|avi|asf|asx|mpg|mpeg|mp4|ttf|woff|eot|svg|pls|mp3|mid|wav|swf|flv|js|html|htm|txt|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|htc)(_?[0-9]+)?$20140413-25195-1c2j2ix-                             9' at 102:/etc/puppet/modules/concat/manifests/fragment.pp
Error: Could not set 'file' on ensure: cannot generate tempfile `/var/lib/puppet/concat/_etc_nginx_sites-available_demo.pushpennyauction.com.conf/fragments/501_demo.pushpennyauction.com-501-~* _.(ico|3gp|gif                             |jpg|cur|svg|jpeg|wmv|avi|asf|asx|mpg|mpeg|mp4|ttf|woff|eot|svg|pls|mp3|mid|wav|swf|flv|js|html|htm|txt|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|htc)(_?[0-9]+)?$20140413-25195-1c2j2ix-                             9' at 102:/etc/puppet/modules/concat/manifests/fragment.pp
Wrapped exception:
cannot generate tempfile `/var/lib/puppet/concat/_etc_nginx_sites-available_demo.pushpennyauction.com.conf/fragments/501_demo.pushpennyauction.com-501-~* _.(ico|3gp|gif|jpg|cur|svg|jpeg|wmv|avi|asf|asx|mpg|m                             peg|mp4|ttf|woff|eot|svg|pls|mp3|mid|wav|swf|flv|js|html|htm|txt|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|htc)(_?[0-9]+)?$20140413-25195-1c2j2ix-9'
Error: /Stage[main]/Main/Nginx::Resource::Location[demo.pushpennyauction.com-static]/Concat::Fragment[demo.pushpennyauction.com-501-~* _.(ico|3gp|gif|jpg|cur|svg|jpeg|wmv|avi|asf|asx|mpg|mpeg|mp4|ttf|woff|eo                             t|svg|pls|mp3|mid|wav|swf|flv|js|html|htm|txt|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|htc)(_?[0-9]+)?$]/File[/var/lib/puppet/concat/_etc_nginx_sites-available_demo.pushpennyauction.co                             m.conf/fragments/501_demo.pushpennyauction.com-501-~* _.(ico|3gp|gif|jpg|cur|svg|jpeg|wmv|avi|asf|asx|mpg|mpeg|mp4|ttf|woff|eot|svg|pls|mp3|mid|wav|swf|flv|js|html|htm|txt|css|exe|zip|tar|rar|gz|tgz|bz2|uha|                             7z|doc|docx|xls|xlsx|pdf|iso|htc)(_?[0-9]+)?$]/ensure: change from absent to file failed: Could not set 'file' on ensure: cannot generate tempfile `/var/lib/puppet/concat/_etc_nginx_sites-available_demo.push                             pennyauction.com.conf/fragments/501_demo.pushpennyauction.com-501-~* _.(ico|3gp|gif|jpg|cur|svg|jpeg|wmv|avi|asf|asx|mpg|mpeg|mp4|ttf|woff|eot|svg|pls|mp3|mid|wav|swf|flv|js|html|htm|txt|css|exe|zip|tar|rar|                             gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|htc)(_?[0-9]+)?$20140413-25195-1c2j2ix-9' at 102:/etc/puppet/modules/concat/manifests/fragment.pp

I am thinking maybe you could use the md5 of the location for naming the files?

Best regards,

Alex.

@pennycoders
Copy link
Contributor Author

Just submitted a pull request (Commit 0e27ce1)

Please, check it out. I've tested it and it seems to be all good.

Cheers,

Alex.

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

Successfully merging a pull request may close this issue.

1 participant