GanWeaving / social-cross-post

x-post to Bluesky, Mastodon, Posthaven, Instagram, and, ugh, Twitter
70 stars 4 forks source link

cannot start with gunicorn #1

Open netfiller opened 10 months ago

netfiller commented 10 months ago

I had all steps on a fresh ubuntu 22.04 machine, but on step 7 i will take this error. What can i do?

`(venv) root@ubuntu:~/crosspost/social-cross-post# gunicorn -w 4 app:app [2023-10-06 17:01:33 +0000] [8886] [INFO] Starting gunicorn 20.1.0 [2023-10-06 17:01:33 +0000] [8886] [INFO] Listening at: http://127.0.0.1:8000 (8886) [2023-10-06 17:01:33 +0000] [8886] [INFO] Using worker: sync [2023-10-06 17:01:33 +0000] [8887] [INFO] Booting worker with pid: 8887 [2023-10-06 17:01:33 +0000] [8888] [INFO] Booting worker with pid: 8888 [2023-10-06 17:01:33 +0000] [8889] [INFO] Booting worker with pid: 8889 [2023-10-06 17:01:33 +0000] [8890] [INFO] Booting worker with pid: 8890 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 209, in run self.sleep() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 357, in sleep ready = select.select([self.PIPE[0]], [], [], 1.0) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/gunicorn", line 33, in sys.exit(load_entry_point('gunicorn==20.1.0', 'console_scripts', 'gunicorn')()) File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 67, in run WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run() File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 231, in run super().run() File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 72, in run Arbiter(self).run() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 229, in run self.halt(reason=inst.reason, exit_status=inst.exit_status) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 342, in halt self.stop() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 393, in stop time.sleep(0.1) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 55, in apport_excepthook import apt_pkg File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

Original exception was: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 209, in run self.sleep() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 357, in sleep ready = select.select([self.PIPE[0]], [], [], 1.0) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/gunicorn", line 33, in sys.exit(load_entry_point('gunicorn==20.1.0', 'console_scripts', 'gunicorn')()) File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 67, in run WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run() File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 231, in run super().run() File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 72, in run Arbiter(self).run() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 229, in run self.halt(reason=inst.reason, exit_status=inst.exit_status) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 342, in halt self.stop() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 393, in stop time.sleep(0.1) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> `

GanWeaving commented 10 months ago

Hi, not sure what you mean ... I've not developed it any further there ... I've made it a web app now: www.smcp.pro

On Fri, 6 Oct 2023, at 19:05, netfiller wrote:

I had all steps on a fresh ubuntu 22.04 machine, but on step 7 i will take this error. What can i do?

`(venv) @.***:~/crosspost/social-cross-post# gunicorn -w 4 app:app [2023-10-06 17:01:33 +0000] [8886] [INFO] Starting gunicorn 20.1.0 [2023-10-06 17:01:33 +0000] [8886] [INFO] Listening at: http://127.0.0.1:8000 (8886) [2023-10-06 17:01:33 +0000] [8886] [INFO] Using worker: sync [2023-10-06 17:01:33 +0000] [8887] [INFO] Booting worker with pid: 8887 [2023-10-06 17:01:33 +0000] [8888] [INFO] Booting worker with pid: 8888 [2023-10-06 17:01:33 +0000] [8889] [INFO] Booting worker with pid: 8889 [2023-10-06 17:01:33 +0000] [8890] [INFO] Booting worker with pid: 8890 Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 209, in run self.sleep() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 357, in sleep ready = select.select([self.PIPE[0]], [], [], 1.0) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/gunicorn", line 33, in sys.exit(load_entry_point('gunicorn==20.1.0', 'console_scripts', 'gunicorn')()) File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 67, in run WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run() File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 231, in run super().run() File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 72, in run Arbiter(self).run() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 229, in run self.halt(reason=inst.reason, exit_status=inst.exit_status) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 342, in halt self.stop() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 393, in stop time.sleep(0.1) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 55, in apport_excepthook import apt_pkg File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

Original exception was: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 209, in run self.sleep() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 357, in sleep ready = select.select([self.PIPE[0]], [], [], 1.0) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/gunicorn", line 33, in sys.exit(load_entry_point('gunicorn==20.1.0', 'console_scripts', 'gunicorn')()) File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 67, in run WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run() File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 231, in run super().run() File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 72, in run Arbiter(self).run() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 229, in run self.halt(reason=inst.reason, exit_status=inst.exit_status) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 342, in halt self.stop() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 393, in stop time.sleep(0.1) File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 242, in handle_chld self.reap_workers() File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 525, in reap_workers raise HaltServer(reason, self.WORKER_BOOT_ERROR) gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3> `

— Reply to this email directly, view it on GitHub https://github.com/GanWeaving/social-cross-post/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGYIUHPYVRZIUHZJPKRRZDX6A26XAVCNFSM6AAAAAA5WDKED2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHEZTANRTGEZDCNI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Sent from my superduper whatever

netfiller commented 10 months ago

Oh, okay. I wanted to install the script on my own server, but it didn't work. You have probably already eliminated the errors.

Is there a possibility to host the Crossposter yourself or do you not want that?

Kind regards

GanWeaving commented 10 months ago

I'll publish the whole updated code again on github soonish ...

On Fri, 6 Oct 2023, at 20:28, netfiller wrote:

Oh, okay. I wanted to install the script on my own server, but it didn't work. You have probably already eliminated the errors.

Is there a possibility to host the Crossposter yourself or do you not want that?

Kind regards

— Reply to this email directly, view it on GitHub https://github.com/GanWeaving/social-cross-post/issues/1#issuecomment-1751228663, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGYIUF6BOA42MWJGNZPU7LX6BEVVAVCNFSM6AAAAAA5WDKED2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGIZDQNRWGM. You are receiving this because you commented.Message ID: @.***>

Sent from my superduper whatever

almereyda commented 6 months ago

Is the SMCP code already in a publishable condition?

In comparison to other code basis social-cross-post seems to be reasonable up to date and maybe it could become a good platform, also for other integrations.

I'd be interested in testing cross posting with Mastodon and Instagram, plus evaluating integrations for PixelFed and TikTok, but only if I knew the code base would be maintained. In return I'd contribute bug reports and deployment related works, like a possible Docker (Compose) setup.

GanWeaving commented 6 months ago

Hi, I'm not really maintaining the code anymore. But I can send it to you if you want to? Just gimme an e-mail address?

I'm using it to cross-post to Mastodon and Bluesky. Twitter integration is not working anymore since I have deactivated my account there. FB and Instagram work for me but not for anyone else because third-party and stuff

On Tue, 13 Feb 2024, at 00:01, jon r wrote:

Is the SMCP code already in a publishable condition?

In comparison to other code basis social-cross-post seems to be reasonable up to date and maybe it could become a good platform, also for other integrations.

I'd be interested in testing cross posting with Mastodon and Instagram, plus evaluating integrations for PixelFed and TikTok, but only if I knew the code base would be maintained. In return I'd contribute bug reports and deployment related works, like a possible Docker (Compose) setup.

— Reply to this email directly, view it on GitHub https://github.com/GanWeaving/social-cross-post/issues/1#issuecomment-1939751356, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGYIUFR3LBJIICO4ZL75H3YTKNMJAVCNFSM6AAAAAA5WDKED2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZG42TCMZVGY. You are receiving this because you commented.Message ID: @.***>

Sent from my superduper whatever

almereyda commented 6 months ago

I see. Thanks for the offer. Unfortunately I will not be able to maintain this code base, either, so we can leave things as they are (for me).

On Wed, 14 Feb 2024 at 08:53, GanWeaving @.***> wrote:

Hi, I'm not really maintaining the code anymore. But I can send it to you if you want to? Just gimme an e-mail address?

I'm using it to cross-post to Mastodon and Bluesky. Twitter integration is not working anymore since I have deactivated my account there. FB and Instagram work for me but not for anyone else because third-party and stuff

On Tue, 13 Feb 2024, at 00:01, jon r wrote:

Is the SMCP code already in a publishable condition?

In comparison to other code basis social-cross-post seems to be reasonable up to date and maybe it could become a good platform, also for other integrations.

I'd be interested in testing cross posting with Mastodon and Instagram, plus evaluating integrations for PixelFed and TikTok, but only if I knew the code base would be maintained. In return I'd contribute bug reports and deployment related works, like a possible Docker (Compose) setup.

— Reply to this email directly, view it on GitHub < https://github.com/GanWeaving/social-cross-post/issues/1#issuecomment-1939751356>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABGYIUFR3LBJIICO4ZL75H3YTKNMJAVCNFSM6AAAAAA5WDKED2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZG42TCMZVGY>.

You are receiving this because you commented.Message ID: @.***>

Sent from my superduper whatever

— Reply to this email directly, view it on GitHub https://github.com/GanWeaving/social-cross-post/issues/1#issuecomment-1943239855, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMRV7CCS2E2TXCRAPZYQDLYTRUOLAVCNFSM6AAAAAA5WDKED2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBTGIZTSOBVGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>