Code Monkey home page Code Monkey logo

Comments (6)

koppen avatar koppen commented on June 30, 2024

Others have reported issues getting the plugin running, although I don't know if that was Redmine 4 specific, in #94.

You might have better luck if you run the migrations as well:

Run migrations: bundle exec rake redmine:plugins:migrate RAILS_ENV=production

from redmine_github_hook.

Cmon169 avatar Cmon169 commented on June 30, 2024

Thanks for replying.
I tried migration on both but not getting any luck.
After running migration it says it is using redmine_github_hook 3.0.1 on both.
Again no complain about that from the production.log.
I guess this will be one of the things that will have to wait then.

Thanks again for helping.

from redmine_github_hook.

koppen avatar koppen commented on June 30, 2024

If you issue a POST request to /github_hook, what happens? Does it show up in the logfile?

from redmine_github_hook.

Cmon169 avatar Cmon169 commented on June 30, 2024

The log from Github comes back with:
Headers
Content-Length: 196
Content-Type: text/html; charset=iso-8859-1
Date: Fri, 15 Apr 2022 05:15:36 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN

Body

<title>404 Not Found</title>

Not Found

The requested URL was not found on this server.

The apache2 log gives:
140.82.115.144 - - [15/Apr/2022:01:12:32 -0400] "POST /github_hook?project_ID=12 HTTP/1.1" 404 196
140.82.115.145 - - [15/Apr/2022:01:15:36 -0400] "POST /github_hook HTTP/1.1" 404 196
140.82.115.148 - - [15/Apr/2022:01:18:16 -0400] "POST /github_hook HTTP/1.1" 404 196

I am new to Redmine and I am not quite sure how to debug the problem.
The application(s) are installed on Windows VMs.
Judging by the above maybe apache doesn't know how to respond to the POST request?

from redmine_github_hook.

koppen avatar koppen commented on June 30, 2024

It's been a while since I debugged anything with Redmine, so bear with me here...

  1. If the plugin is installed correctly, sending a GET request to /github_hook (just using your browser), should render an installation confirmation.
  2. When POSTing from GitHub, the URL should include the identifier of your project, which is likely a string (IIRC the same string as is seen in the URL of your Redmine installation). In other words, I'd suspect something like my-project instead of 12 in the first request.
  3. The parameter for the project identifier is project_id, not project_ID - the case of the characters matter.

Outside of that I don't know what you could do, and it's likely that Redmine 4 just isn't compatible, sorry.

from redmine_github_hook.

Cmon169 avatar Cmon169 commented on June 30, 2024

Hi thanks for the suggestion.
I've tried the above and it still comes back with the 404 error.
I guess it is just not able to work with Redmine 4 then.

Thanks for your time help me out.

from redmine_github_hook.

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.