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

Alpine cp: unrecognized option: T #75

Closed
rgarrigue opened this issue Nov 17, 2017 · 2 comments
Closed

Alpine cp: unrecognized option: T #75

rgarrigue opened this issue Nov 17, 2017 · 2 comments
Assignees

Comments

@rgarrigue
Copy link

rgarrigue commented Nov 17, 2017

Hello

Running passbolt 1.6.5-alpine here. There's a cp error at the end of the log below. Plus some screaming about avatars.

assbolt_1  | .............+++++
passbolt_1  | 
passbolt_1  | Not enough random bytes available.  Please do some other work to give
passbolt_1  | the OS a chance to collect more entropy! (Need 128 more bytes)
passbolt_1  | .....+++++
passbolt_1  | gpg: /var/lib/nginx/.gnupg/trustdb.gpg: trustdb created
passbolt_1  | gpg: key C2CCC309 marked as ultimately trusted
passbolt_1  | gpg: checking the trustdb
passbolt_1  | gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
passbolt_1  | gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
passbolt_1  | Generating a 4096 bit RSA private key
passbolt_1  | ..++
passbolt_1  | ..........................................................................++
passbolt_1  | writing new private key to '/etc/ssl/certs/certificate.key'
passbolt_1  | -----
passbolt_1  | ---------------------------------------------------------------
passbolt_1  |      ____                  __          ____  
passbolt_1  |     / __ \____  _____ ____/ /_  ____  / / /_ 
passbolt_1  |    / /_/ / __ `/ ___/ ___/ __ \/ __ \/ / __/ 
passbolt_1  |   / ____/ /_/ (__  |__  ) /_/ / /_/ / / /    
passbolt_1  |  /_/    \__,_/____/____/_.___/\____/_/\__/   
passbolt_1  | 
passbolt_1  |  Open source password manager for teams
passbolt_1  | ---------------------------------------------------------------
passbolt_1  |  Install shell
passbolt_1  | ---------------------------------------------------------------
passbolt_1  | rm: can't remove '/var/www/passbolt/app/webroot/img/public/images': Resource busy
passbolt_1  |  Ooops, something went wrong when trying to delete the avatars!
passbolt_1  | Installing schema / database
passbolt_1  | ---------------------------------------------------------------
passbolt_1  | 
passbolt_1  | Cake Schema Shell
passbolt_1  | ---------------------------------------------------------------
passbolt_1  | 
passbolt_1  | The following table(s) will be dropped.
passbolt_1  | roles
passbolt_1  | users
passbolt_1  | authentication_tokens
passbolt_1  | profiles
passbolt_1  | email_queue
passbolt_1  | resources
passbolt_1  | secrets
passbolt_1  | groups
passbolt_1  | groups_users
passbolt_1  | gpgkeys
passbolt_1  | comments
passbolt_1  | permissions_types
passbolt_1  | permissions
passbolt_1  | controller_logs
passbolt_1  | user_agents
passbolt_1  | favorites
passbolt_1  | schema_migrations
passbolt_1  | Dropping table(s).
passbolt_1  | roles updated.
passbolt_1  | users updated.
passbolt_1  | authentication_tokens updated.
passbolt_1  | profiles updated.
passbolt_1  | email_queue updated.
passbolt_1  | resources updated.
passbolt_1  | secrets updated.
passbolt_1  | groups updated.
passbolt_1  | groups_users updated.
passbolt_1  | gpgkeys updated.
passbolt_1  | comments updated.
passbolt_1  | permissions_types updated.
passbolt_1  | permissions updated.
passbolt_1  | controller_logs updated.
passbolt_1  | user_agents updated.
passbolt_1  | favorites updated.
passbolt_1  | schema_migrations updated.
passbolt_1  | 
passbolt_1  | The following table(s) will be created.
passbolt_1  | roles
passbolt_1  | users
passbolt_1  | authentication_tokens
passbolt_1  | profiles
passbolt_1  | email_queue
passbolt_1  | resources
passbolt_1  | secrets
passbolt_1  | groups
passbolt_1  | groups_users
passbolt_1  | gpgkeys
passbolt_1  | comments
passbolt_1  | permissions_types
passbolt_1  | permissions
passbolt_1  | controller_logs
passbolt_1  | user_agents
passbolt_1  | favorites
passbolt_1  | schema_migrations
passbolt_1  | Creating table(s).
passbolt_1  | Table roles created
passbolt_1  | roles updated.
passbolt_1  | Table users created
passbolt_1  | users updated.
passbolt_1  | Table authentication_tokens created
passbolt_1  | authentication_tokens updated.
passbolt_1  | Table profiles created
passbolt_1  | profiles updated.
passbolt_1  | Table email_queue created
passbolt_1  | email_queue updated.
passbolt_1  | Table resources created
passbolt_1  | resources updated.
passbolt_1  | Table secrets created
passbolt_1  | secrets updated.
passbolt_1  | Table groups created
passbolt_1  | groups updated.
passbolt_1  | Table groups_users created
passbolt_1  | groups_users updated.
passbolt_1  | Table gpgkeys created
passbolt_1  | gpgkeys updated.
passbolt_1  | Table comments created
passbolt_1  | comments updated.
passbolt_1  | Table permissions_types created
passbolt_1  | permissions_types updated.
passbolt_1  | Table permissions created
passbolt_1  | permissions updated.
passbolt_1  | Table controller_logs created
passbolt_1  | controller_logs updated.
passbolt_1  | Table user_agents created
passbolt_1  | user_agents updated.
passbolt_1  | Table favorites created
passbolt_1  | favorites updated.
passbolt_1  | Table schema_migrations created
passbolt_1  | Execute specific schema PermissionsSchema (ok)
passbolt_1  | schema_migrations updated.
passbolt_1  | End create.
passbolt_1  | passbolt schema deployed
passbolt_1  | 
passbolt_1  | Cake Schema Shell
passbolt_1  | ---------------------------------------------------------------
passbolt_1  | 
passbolt_1  | The following table(s) will be dropped.
passbolt_1  | cake_sessions
passbolt_1  | Dropping table(s).
passbolt_1  | cake_sessions updated.
passbolt_1  | 
passbolt_1  | The following table(s) will be created.
passbolt_1  | cake_sessions
passbolt_1  | Creating table(s).
passbolt_1  | cake_sessions updated.
passbolt_1  | End create.
passbolt_1  | passbolt session table deployed
passbolt_1  | 
passbolt_1  | Cake Schema Shell
passbolt_1  | ---------------------------------------------------------------
passbolt_1  | 
passbolt_1  | The following table(s) will be dropped.
passbolt_1  | file_storage
passbolt_1  | Dropping table(s).
passbolt_1  | file_storage updated.
passbolt_1  | 
passbolt_1  | The following table(s) will be created.
passbolt_1  | file_storage
passbolt_1  | Creating table(s).
passbolt_1  | file_storage updated.
passbolt_1  | End create.
passbolt_1  | plugins schemas deployed
passbolt_1  | 
passbolt_1  | Installing data set:default
passbolt_1  | ---------------------------------------------------------------
passbolt_1  | Data for model SchemaMigration inserted (11)
passbolt_1  | Data for model Role inserted (4)
passbolt_1  | Data for model User inserted (1)
passbolt_1  | Data for model Gpgkey inserted (0)
passbolt_1  | Data for model PermissionType inserted (3)
passbolt_1  | Data for model Profile inserted (1)
passbolt_1  | 
passbolt_1  |  Datasource : default
passbolt_1  |  File :/var/www/passbolt/app/tmp/schema/default_default.sql
passbolt_1  |  Success: the database was saved on file!
passbolt_1  | cp: unrecognized option: T
passbolt_1  | BusyBox v1.26.2 (2017-06-11 06:38:32 GMT) multi-call binary.
passbolt_1  | 
passbolt_1  | Usage: cp [OPTIONS] SOURCE... DEST
passbolt_1  | 
passbolt_1  | Copy SOURCE(s) to DEST
passbolt_1  | 
passbolt_1  | 	-a	Same as -dpR
passbolt_1  | 	-R,-r	Recurse
passbolt_1  | 	-d,-P	Preserve symlinks (default if -R)
passbolt_1  | 	-L	Follow all symlinks
passbolt_1  | 	-H	Follow symlinks on command line
passbolt_1  | 	-p	Preserve file attributes if possible
passbolt_1  | 	-f	Overwrite
passbolt_1  | 	-i	Prompt before overwrite
passbolt_1  | 	-l,-s	Create (sym)links
passbolt_1  | 	-u	Copy only newer files
passbolt_1  |  Ooops, something went wrong when trying to set the avatars cache!
passbolt_1  | ---------------------------------------------------------------
passbolt_1  | 
passbolt_1  |  Passbolt installation success! Enjoy! ☮
passbolt_1  | 

Best regards,

@dlen
Copy link
Member

dlen commented Nov 17, 2017

Hi @rgarrigue thanks for your interest in passbolt!

That's right, cp version of busybox doesn't support some of the flags that current passbolt installation uses. We are aware of this problem and there are several solutions here. For instance migrate the installation script of passbolt_api and remove the exec() calls or change the flags that those exec() calls use which might be more elegant way of solving this. However, the team is quite busy migrating the whole passbolt_api to cakephp3 so solution might be to install coreutils package on passbolt_docker image. That should solve the problem until new releases of the api.

@dlen dlen self-assigned this Nov 17, 2017
@dlen dlen closed this as completed in d1c735c Jan 14, 2018
@marcellodesales
Copy link

Commit d1c735c solved my cp -t as well in another unrelated project!!! Thank you! Adding coreutils solves it! Hope it can help others!

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

No branches or pull requests

3 participants