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 start browser properly in server environment without graphics card and monitor #229

Open
zerzhier opened this issue Feb 6, 2025 · 2 comments

Comments

@zerzhier
Copy link

zerzhier commented Feb 6, 2025

chromium --disable-blink-features=AutomationControlled --disable-web-security --no-sandbox --disable-dev-shm-usage --disable-features=site-per-process --disable-features=IsolateOrigins --disable-extensions --disable-infobars --enable-unsafe-swiftshader --disable-gpu --disable-setuid-sandbox --headless

[381281:381367:0206/211837.593015:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.ListActivatableNames: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.163" (uid=0 pid=381281 comm="/snap/chromium/3032/usr/lib/chromium-browser/chrom" label="snap.chromium.chromium (enforce)") interface="org.freedesktop.DBus" member="ListActivatableNames" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
[381281:381367:0206/211837.621460:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.ListActivatableNames: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.165" (uid=0 pid=381281 comm="/snap/chromium/3032/usr/lib/chromium-browser/chrom" label="snap.chromium.chromium (enforce)") interface="org.freedesktop.DBus" member="ListActivatableNames" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
[381281:381458:0206/211837.717470:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[381281:381458:0206/211837.717627:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[381281:381458:0206/211837.718106:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files

@gohoski
Copy link
Contributor

gohoski commented Feb 6, 2025

It looks like you are using suno-api on a Linux machine. AFAIK, on Linux, you need to have at least one video output, regardless of the browser being headless or not. Will document this in the docs, thanks for notifying.

@gohoski
Copy link
Contributor

gohoski commented Feb 6, 2025

Maybe you can set up a simple XServer and start suno-api from there.

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

2 participants