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

New installation doesn't copy subfolders and files #18

Closed
dfranciscus opened this issue Jan 7, 2018 · 12 comments
Closed

New installation doesn't copy subfolders and files #18

dfranciscus opened this issue Jan 7, 2018 · 12 comments
Assignees
Labels
Milestone

Comments

@dfranciscus
Copy link

Seems that the app_data and contents folder do not copy to c:\tools\chocolatey.server from the package. Anyone else seeing this?

@ferventcoder
Copy link
Contributor

Can you submit the install.log? It has some detail about what it copies and what it skips.

@ferventcoder
Copy link
Contributor

ferventcoder commented Jan 7, 2018

Submit == provide the detailed part of the log starting at the point where it hands over to the PowerShell script, the one from the log file will have debug data.

@ferventcoder
Copy link
Contributor

If App_Data exists, it will not copy it again - this prevents overwriting of the logs and existing packages.

@ferventcoder
Copy link
Contributor

ferventcoder commented Jan 7, 2018

Not sure on contents, but a guess is that we did not set recurse properly when there are no contents in the tools folder and it creates it all.

Is there another subfolder?

@dfranciscus
Copy link
Author

@ferventcoder where is install.log located?

@ferventcoder
Copy link
Contributor

My bad 😆, I totally meant the chocolatey.log, did not mean to put that dot in between install and log.

@FLeven
Copy link

FLeven commented Jan 8, 2018

Same problem here, installed 2.0 using the same dockerfile I used for 0.1.3 and the Folders: App_Data, Bin, Content were missing and accessing the page ended in a runtime error. I have fixed it by manualy moving the missing folders to C:\tools\chocolatey.server inside the container and it works now.

@dfranciscus
Copy link
Author

chocolatey.log

@ferventcoder here you go

@dfranciscus
Copy link
Author

@FLeven same worked for me. For the time being I just added code into the Puppet module to copy those as a work around.

@ferventcoder
Copy link
Contributor

Container cannot be copied onto existing leaf item.
Container cannot be copied onto existing leaf item.

Found the issue. Copy-Item won't create the top level folder if it doesn't exist (even if you use -Force).

@ferventcoder ferventcoder self-assigned this Jan 8, 2018
@ferventcoder ferventcoder added this to the 0.2.1 milestone Jan 8, 2018
@ferventcoder ferventcoder changed the title Install of v0.2 doesnt copy all files New installation doesn't copy subfolders and files Jan 8, 2018
ferventcoder added a commit that referenced this issue Jan 8, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
In the directory we are deploying to, Copy-Item will not create the
directory if it does not exist, even if you have selected `-Force` as
an option. So ensure the directory exists by creating it before calling
Copy-Item.
@ferventcoder
Copy link
Contributor

Fixed in 0.2.1

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

No branches or pull requests

3 participants