wkaisertexas / tiktok-uploader

Automatically ⬆️ upload TikTok videos
https://pypi.org/project/tiktok-uploader/
360 stars 84 forks source link

Issue with Amazon Linux Systems #28

Closed UnrealDrip closed 11 months ago

UnrealDrip commented 1 year ago

I dont know much but here is the error message

[06:53:43] Authenticating browser with cookies [06:53:43] Create a chrome browser instance in headless mode Traceback (most recent call last): File "/home/ec2-user/.local/bin/tiktok-uploader", line 8, in sys.exit(main()) File "/home/ec2-user/.local/lib/python3.9/site-packages/tiktok_uploader/cli.py", line 20, in main result = upload_video( File "/home/ec2-user/.local/lib/python3.9/site-packages/tiktok_uploader/upload.py", line 48, in upload_video return upload_videos( File "/home/ec2-user/.local/lib/python3.9/site-packages/tiktok_uploader/upload.py", line 94, in upload_videos driver = get_browser(name=browser, headless=headless, *args, **kwargs) File "/home/ec2-user/.local/lib/python3.9/site-packages/tiktok_uploader/browsers.py", line 40, in get_browser driver = driver_to_use(service=service, options=options) File "/home/ec2-user/.local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 49, in init super().init( File "/home/ec2-user/.local/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 51, in init self.service.start() File "/home/ec2-user/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 97, in start self.assert_process_still_running() File "/home/ec2-user/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 110, in assert_process_still_running raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}") selenium.common.exceptions.WebDriverException: Message: Service /home/ec2-user/.wdm/drivers/chromedriver/linux64/114.0.5735.90/chromedriver unexpectedly exited. Status code was: 127

WilliamSadler commented 1 year ago

Have you tried any of the solutions here?:

https://stackoverflow.com/questions/49323099/webdriverexception-message-service-chromedriver-unexpectedly-exited-status-co

UnrealDrip commented 1 year ago

Yes but the issue continues :(

XavierZambrano commented 1 year ago

I'm using EC2 ubuntu, chrome_version: 114.0.5735.90 with headless mode and works

When I found dependencies issues I used sudo apt-get install -f

wkaisertexas commented 1 year ago

Out of curiosity, why are you all using this on a remote server? Just to run cron jobs without worrying about the loader working?

XavierZambrano commented 1 year ago

In my case, the repo was part of a project to create and upload videos (Django, RabbitMQ, etc.)

Out of curiosity, why are you all using this on a remote server?

wkaisertexas commented 1 year ago

That's dope. I really haven't messed around with message brokers. To be honest, manually configuring virtual machines seems a little scary.

Really cool stuff though