Code Monkey home page Code Monkey logo

Comments (12)

BinBashBanana avatar BinBashBanana commented on July 20, 2024

Can you send the application logs?

from pydodge.

imrileyjones avatar imrileyjones commented on July 20, 2024

The log is never ending - it constantly attempts to "respond worker 1"

I do not know if this has to do anything with deployment error - when ever I try to use the button "deploy to heroku" it fails, and this message is shown: "Item could not be created: We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy."
...
To bypass this, basically I just created a empty app and then later connecting my Github account to upload the proxy. I don't know if it's blocking any files?

from pydodge.

imrileyjones avatar imrileyjones commented on July 20, 2024

I also notice that when deploying Heroku says that no Python version is detected so it automatically uses 3.10.3. Does the code support this version? Is there a certain version of Python I should be using for PyDodge? Or more over does Python 3.10.3 support all of the requirements in https://github.com/BinBashBanana/PyDodge/blob/master/requirements.txt?

from pydodge.

BinBashBanana avatar BinBashBanana commented on July 20, 2024

"Item could not be created: We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy."
There's nothing I can do about this, the easiest way to get around it is to just fork the repository and deploy the fork.

I can't find anything in the logs, possibly try an older version of python (3.6 or 3.7)

Really what you should do is consider an alternative such as Ultraviolet, as pydodge is pretty outdated.

from pydodge.

fhsclock avatar fhsclock commented on July 20, 2024

I used an older version of python-3.7.13, and now got the generic "Internal Server Error". Can you happen to find anything in this new logs?
murmuring-oasis-34315-logs-1648271498060.txt

(I created a txt file named runtime and wrote python-3.7.13 to declare that version.) Here's a list of Heroku's so-called supported python supported versions.

from pydodge.

fhsclock avatar fhsclock commented on July 20, 2024

Here's the heroku link.

from pydodge.

fhsclock avatar fhsclock commented on July 20, 2024

This is @queasydoughnuts, I just hopped accounts ... Heroku blocked my other github account, so I use this one to upload things to Heroku's server

from pydodge.

BinBashBanana avatar BinBashBanana commented on July 20, 2024

Strange... it looks like it wasn't able to detect the application this time. Try running bash run-heroku.sh in the console.

from pydodge.

fhsclock avatar fhsclock commented on July 20, 2024

here's what the console outputted:

[uWSGI] getting INI configuration from uwsgi-heroku.ini
*** Starting uWSGI 2.0.20 (64bit) on [Sat Mar 26 05:26:12 2022] ***
compiled with version: 9.4.0 on 26 March 2022 05:08:51
os: Linux-4.4.0-1101-aws #106-Ubuntu SMP Tue Mar 1 10:51:49 UTC 2022
nodename: fcc9c596-a595-42f5-a785-e049f120ebbe
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /app
detected binary path: /app/.heroku/python/bin/uwsgi
your processes number limit is 256
your memory page size is 4096 bytes
detected max file descriptor number: 10000

  • async cores set to 100 - fd table size: 10000
    lock engine: pthread robust mutexes
    thunder lock: disabled (you can enable it with --thunder-lock)
    uwsgi socket 0 bound to TCP address :38512 fd 3
    Python version: 3.7.13 (default, Mar 16 2022, 21:15:28) [GCC 9.4.0]
    Python main interpreter initialized at 0x559f9ea096b0
    python threads support enabled
    your server socket listen backlog is limited to 100 connections
    your mercy for graceful operations on workers is 60 seconds
    mapped 2216128 bytes (2164 KB) for 100 cores
    *** Operational MODE: async ***
    Traceback (most recent call last):
    File "./pywb/apps/wayback.py", line 2, in
    from pywb.apps.frontendapp import FrontEndApp
    File "./pywb/apps/frontendapp.py", line 23, in
    from pywb.rewrite.templateview import BaseInsertView
    File "./pywb/rewrite/templateview.py", line 8, in
    from jinja2 import Environment, TemplateNotFound, contextfunction, select_autoescape
    File "/app/.heroku/python/lib/python3.7/site-packages/jinja2/init.py", line 12, in
    from .environment import Environment
    File "/app/.heroku/python/lib/python3.7/site-packages/jinja2/environment.py", line 25, in
    from .defaults import BLOCK_END_STRING
    File "/app/.heroku/python/lib/python3.7/site-packages/jinja2/defaults.py", line 3, in
    from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
    File "/app/.heroku/python/lib/python3.7/site-packages/jinja2/filters.py", line 13, in
    from markupsafe import soft_unicode
    ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/app/.heroku/python/lib/python3.7/site-packages/markupsafe/init.py)
    unable to load app 0 (mountpoint='') (callable not found or import error)
    *** no app loaded. going in full dynamic mode ***
    *** uWSGI is running in multiple interpreter mode ***
    spawned uWSGI master process (pid: 9)
    spawned uWSGI worker 1 (pid: 12, cores: 100)
    *** running gevent loop engine [addr:0x559f9db44d50] ***

from pydodge.

BinBashBanana avatar BinBashBanana commented on July 20, 2024

Looks like there were missing dependencies. Try pip install -r requirements.txt and then bash run-heroku.sh

from pydodge.

fhsclock avatar fhsclock commented on July 20, 2024

Unfortunately still getting a 500 error, and here is my log now:

murmuring-oasis-34315-logs-1648273615738.txt

here's the console:

[uWSGI] getting INI configuration from uwsgi-heroku.ini
*** Starting uWSGI 2.0.20 (64bit) on [Sat Mar 26 05:44:13 2022] ***
compiled with version: 9.4.0 on 26 March 2022 05:08:51
os: Linux-4.4.0-1101-aws #106-Ubuntu SMP Tue Mar 1 10:51:49 UTC 2022
nodename: 48864397-4bba-40da-93fa-64d10e1a95f4
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /app
detected binary path: /app/.heroku/python/bin/uwsgi
your processes number limit is 256
your memory page size is 4096 bytes
detected max file descriptor number: 10000

  • async cores set to 100 - fd table size: 10000
    lock engine: pthread robust mutexes
    thunder lock: disabled (you can enable it with --thunder-lock)
    uwsgi socket 0 bound to TCP address :28011 fd 3
    Python version: 3.7.13 (default, Mar 16 2022, 21:15:28) [GCC 9.4.0]
    Python main interpreter initialized at 0x559bb4ab56b0
    python threads support enabled
    your server socket listen backlog is limited to 100 connections
    your mercy for graceful operations on workers is 60 seconds
    mapped 2216128 bytes (2164 KB) for 100 cores
    *** Operational MODE: async ***
    Traceback (most recent call last):
    File "./pywb/apps/wayback.py", line 2, in
    from pywb.apps.frontendapp import FrontEndApp
    File "./pywb/apps/frontendapp.py", line 23, in
    from pywb.rewrite.templateview import BaseInsertView
    File "./pywb/rewrite/templateview.py", line 8, in
    from jinja2 import Environment, TemplateNotFound, contextfunction, select_autoescape
    File "/app/.heroku/python/lib/python3.7/site-packages/jinja2/init.py", line 12, in
    from .environment import Environment
    File "/app/.heroku/python/lib/python3.7/site-packages/jinja2/environment.py", line 25, in
    from .defaults import BLOCK_END_STRING
    File "/app/.heroku/python/lib/python3.7/site-packages/jinja2/defaults.py", line 3, in
    from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
    File "/app/.heroku/python/lib/python3.7/site-packages/jinja2/filters.py", line 13, in
    from markupsafe import soft_unicode
    ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/app/.heroku/python/lib/python3.7/site-packages/markupsafe/init.py)
    unable to load app 0 (mountpoint='') (callable not found or import error)
    *** no app loaded. going in full dynamic mode ***
    *** uWSGI is running in multiple interpreter mode ***
    spawned uWSGI master process (pid: 9)
    spawned uWSGI worker 1 (pid: 12, cores: 100)
    *** running gevent loop engine [addr:0x559bb2f7ed50] ***

from pydodge.

fhsclock avatar fhsclock commented on July 20, 2024

Well my heroku account just got banned so I'm unfortunately this whole process has gone to waste

from pydodge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.