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

Image check failed: DigitalOcean directory detected #166

Open
gustavosbarreto opened this issue Oct 28, 2022 · 8 comments
Open

Image check failed: DigitalOcean directory detected #166

gustavosbarreto opened this issue Oct 28, 2022 · 8 comments

Comments

@gustavosbarreto
Copy link

Output log:

digitalocean:
    digitalocean:
    digitalocean: Checking all user-created accounts...
    digitalocean:
    digitalocean:
    digitalocean: Checking the root account...
    digitalocean: [PASS] User root has no password set.
    digitalocean: [ OK ] User root has no SSH keys present
    digitalocean: [PASS] root's Bash History appears to have been cleared
    digitalocean: [FAIL] DigitalOcean directory detected.
    digitalocean: To uninstall the agent and remove the DO directory: 'sudo apt-get purge droplet-agent'
    digitalocean:
    digitalocean:
    digitalocean: ---------------------------------------------------------------------------------------------------
    digitalocean: Scan Complete.
    digitalocean: One or more tests failed.  Please review these items and re-test.
    digitalocean: ---------------------------------------------------------------------------------------------------
    digitalocean: 7 Tests PASSED
    digitalocean: 2 WARNINGS
    digitalocean: 1 Tests FAILED
    digitalocean: ---------------------------------------------------------------------------------------------------

Steps to reproduce:

git clone https://github.com/digitalocean/marketplace-partners.git
export DIGITALOCEAN_TOKEN=...
packer build marketplace-image.json

What is expected?

A successfully build.

Extra information:

Since this PR #156 the build seems to fail.

@gustavosbarreto
Copy link
Author

Related to: #164

@afeiszli
Copy link

afeiszli commented Nov 4, 2022

I'm encountering the same issue.

1 similar comment
@actorTian
Copy link

I'm encountering the same issue.

@Cristy94
Copy link
Contributor

Cristy94 commented Apr 8, 2024

Any updates? Running the recommended command sudo apt-get purge droplet-agent doesn't fix the issue.

@Cristy94
Copy link
Contributor

After adding this to cleanup.sh: rm -rf /opt/digitalocean fixes the error, but I think breaks onboot and MOTD script execution.

@stefanpejcic
Copy link

don't enable

Add improved metrics monitoring and alerting (free)

when starting the droplet

@Cristy94
Copy link
Contributor

Cristy94 commented Jul 8, 2024

don't enable

Add improved metrics monitoring and alerting (free)

when starting the droplet

I use packer to create the build, so I don't enable any alerting.

@stefanpejcic
Copy link

Problem does not occur on build process, but when you run a droplet with this enabled:
2024-09-05_13-57

For me, when I dont enable it I dont have this problem.

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

5 participants