Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42408

HTTP ERROR 404 Problem accessing /jenkins/job/myproject/configure. Reason: Not Found

    XMLWordPrintable

    Details

    • Sprint:
      1.0
    • Similar Issues:

      Description

      in blue ocean when i click configure project i get this url

      http://ci.mydomain.com/jenkins/job/myproject/configure
      

      but this error comes up. nothing in the jenkins log file

      HTTP ERROR 404
      
      Problem accessing /jenkins/job/myproject/configure. Reason:
      
          Not Found
      Powered by Jetty://
      

      my jenkins is on nginx with this config

      server {
        listen          80;       # Listen on port 80 for IPv4 requests
      
        server_name     ci.mydomain.com;
      
        #this is the jenkins web root directory (mentioned in the /etc/default/jenkins file)
        root            /var/run/jenkins/war/;
      
        access_log      /var/log/nginx/jenkins/access.log;
        error_log       /var/log/nginx/jenkins/error.log;
        ignore_invalid_headers off; #pass through headers from Jenkins which are considered invalid by Nginx server.
        location ~ "^/static/[0-9a-fA-F]{8}\/(.*)$" {
      
          #rewrite all static files into requests to the root
          #E.g /static/12345678/css/something.css will become /css/something.css
          rewrite "^/static/[0-9a-fA-F]{8}\/(.*)" /$1 last;
        }
      
        location /userContent {
              #have nginx handle all the static requests to the userContent folder files
              #note : This is the $JENKINS_HOME dir
      	root /var/lib/jenkins/;
              if (!-f $request_filename){
                 #this file does not exist, might be a directory or a /**view** url
                 rewrite (.*) /$1 last;
      	   break;
              }
      	sendfile on;
        }
      
        location @jenkins {
            sendfile off;
            proxy_pass         http://127.0.0.1:8080;
            proxy_redirect     default;
      
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_max_temp_file_size 0;
      
            #this is the maximum upload size
            client_max_body_size       10m;
            client_body_buffer_size    128k;
      
            proxy_connect_timeout      90;
            proxy_send_timeout         90;
            proxy_read_timeout         90;
      
            proxy_buffer_size          4k;
            proxy_buffers              4 32k;
            proxy_busy_buffers_size    64k;
            proxy_temp_file_write_size 64k;
      }
      
        location / {
      
           # Optional configuration to detect and redirect iPhones
            if ($http_user_agent ~* '(iPhone|iPod)') {
                rewrite ^/$ /view/iphone/ redirect;
            }
      
            try_files $uri @jenkins;
         }
      }
      

        Attachments

          Issue Links

            Activity

            tawanda tawanda minya created issue -
            tawanda tawanda minya made changes -
            Field Original Value New Value
            Description in blue ocean when i click configure project i get this url


            http://mydomain/jenkins/job/myproject/configure


            but this error comes up. nothing in the jenkins log file

            HTTP ERROR 404

            Problem accessing /jenkins/job/myproject/configure. Reason:

                Not Found
            Powered by Jetty://


            my jenkins is on nginx with this config


            server {
              listen 80; # Listen on port 80 for IPv4 requests

              server_name ci.mydomain.ai;

              #this is the jenkins web root directory (mentioned in the /etc/default/jenkins file)
              root /var/run/jenkins/war/;

              access_log /var/log/nginx/jenkins/access.log;
              error_log /var/log/nginx/jenkins/error.log;
              ignore_invalid_headers off; #pass through headers from Jenkins which are considered invalid by Nginx server.
              location ~ "^/static/[0-9a-fA-F]{8}\/(.*)$" {

                #rewrite all static files into requests to the root
                #E.g /static/12345678/css/something.css will become /css/something.css
                rewrite "^/static/[0-9a-fA-F]{8}\/(.*)" /$1 last;
              }

              location /userContent {
                    #have nginx handle all the static requests to the userContent folder files
                    #note : This is the $JENKINS_HOME dir
            root /var/lib/jenkins/;
                    if (!-f $request_filename){
                       #this file does not exist, might be a directory or a /**view** url
                       rewrite (.*) /$1 last;
            break;
                    }
            sendfile on;
              }

              location @jenkins {
                  sendfile off;
                  proxy_pass http://127.0.0.1:8080;
                  proxy_redirect default;

                  proxy_set_header Host $host;
                  proxy_set_header X-Real-IP $remote_addr;
                  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                  proxy_max_temp_file_size 0;

                  #this is the maximum upload size
                  client_max_body_size 10m;
                  client_body_buffer_size 128k;

                  proxy_connect_timeout 90;
                  proxy_send_timeout 90;
                  proxy_read_timeout 90;

                  proxy_buffer_size 4k;
                  proxy_buffers 4 32k;
                  proxy_busy_buffers_size 64k;
                  proxy_temp_file_write_size 64k;
            }

              location / {

                 # Optional configuration to detect and redirect iPhones
                  if ($http_user_agent ~* '(iPhone|iPod)') {
                      rewrite ^/$ /view/iphone/ redirect;
                  }

                  try_files $uri @jenkins;
               }
            }
            in blue ocean when i click configure project i get this url


            `http://mydomain/jenkins/job/myproject/configure`


            but this error comes up. nothing in the jenkins log file

            HTTP ERROR 404

            Problem accessing /jenkins/job/myproject/configure. Reason:

                Not Found
            Powered by Jetty://


            my jenkins is on nginx with this config


            server {
              listen 80; # Listen on port 80 for IPv4 requests

              server_name ci.mydomain.ai;

              #this is the jenkins web root directory (mentioned in the /etc/default/jenkins file)
              root /var/run/jenkins/war/;

              access_log /var/log/nginx/jenkins/access.log;
              error_log /var/log/nginx/jenkins/error.log;
              ignore_invalid_headers off; #pass through headers from Jenkins which are considered invalid by Nginx server.
              location ~ "^/static/[0-9a-fA-F]{8}\/(.*)$" {

                #rewrite all static files into requests to the root
                #E.g /static/12345678/css/something.css will become /css/something.css
                rewrite "^/static/[0-9a-fA-F]{8}\/(.*)" /$1 last;
              }

              location /userContent {
                    #have nginx handle all the static requests to the userContent folder files
                    #note : This is the $JENKINS_HOME dir
            root /var/lib/jenkins/;
                    if (!-f $request_filename){
                       #this file does not exist, might be a directory or a /**view** url
                       rewrite (.*) /$1 last;
            break;
                    }
            sendfile on;
              }

              location @jenkins {
                  sendfile off;
                  proxy_pass http://127.0.0.1:8080;
                  proxy_redirect default;

                  proxy_set_header Host $host;
                  proxy_set_header X-Real-IP $remote_addr;
                  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                  proxy_max_temp_file_size 0;

                  #this is the maximum upload size
                  client_max_body_size 10m;
                  client_body_buffer_size 128k;

                  proxy_connect_timeout 90;
                  proxy_send_timeout 90;
                  proxy_read_timeout 90;

                  proxy_buffer_size 4k;
                  proxy_buffers 4 32k;
                  proxy_busy_buffers_size 64k;
                  proxy_temp_file_write_size 64k;
            }

              location / {

                 # Optional configuration to detect and redirect iPhones
                  if ($http_user_agent ~* '(iPhone|iPod)') {
                      rewrite ^/$ /view/iphone/ redirect;
                  }

                  try_files $uri @jenkins;
               }
            }
            tawanda tawanda minya made changes -
            Description in blue ocean when i click configure project i get this url


            `http://mydomain/jenkins/job/myproject/configure`


            but this error comes up. nothing in the jenkins log file

            HTTP ERROR 404

            Problem accessing /jenkins/job/myproject/configure. Reason:

                Not Found
            Powered by Jetty://


            my jenkins is on nginx with this config


            server {
              listen 80; # Listen on port 80 for IPv4 requests

              server_name ci.mydomain.ai;

              #this is the jenkins web root directory (mentioned in the /etc/default/jenkins file)
              root /var/run/jenkins/war/;

              access_log /var/log/nginx/jenkins/access.log;
              error_log /var/log/nginx/jenkins/error.log;
              ignore_invalid_headers off; #pass through headers from Jenkins which are considered invalid by Nginx server.
              location ~ "^/static/[0-9a-fA-F]{8}\/(.*)$" {

                #rewrite all static files into requests to the root
                #E.g /static/12345678/css/something.css will become /css/something.css
                rewrite "^/static/[0-9a-fA-F]{8}\/(.*)" /$1 last;
              }

              location /userContent {
                    #have nginx handle all the static requests to the userContent folder files
                    #note : This is the $JENKINS_HOME dir
            root /var/lib/jenkins/;
                    if (!-f $request_filename){
                       #this file does not exist, might be a directory or a /**view** url
                       rewrite (.*) /$1 last;
            break;
                    }
            sendfile on;
              }

              location @jenkins {
                  sendfile off;
                  proxy_pass http://127.0.0.1:8080;
                  proxy_redirect default;

                  proxy_set_header Host $host;
                  proxy_set_header X-Real-IP $remote_addr;
                  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                  proxy_max_temp_file_size 0;

                  #this is the maximum upload size
                  client_max_body_size 10m;
                  client_body_buffer_size 128k;

                  proxy_connect_timeout 90;
                  proxy_send_timeout 90;
                  proxy_read_timeout 90;

                  proxy_buffer_size 4k;
                  proxy_buffers 4 32k;
                  proxy_busy_buffers_size 64k;
                  proxy_temp_file_write_size 64k;
            }

              location / {

                 # Optional configuration to detect and redirect iPhones
                  if ($http_user_agent ~* '(iPhone|iPod)') {
                      rewrite ^/$ /view/iphone/ redirect;
                  }

                  try_files $uri @jenkins;
               }
            }
            in blue ocean when i click configure project i get this url



            {code:java}
            http://mydomain/jenkins/job/myproject/configure
            {code}



            but this error comes up. nothing in the jenkins log file


            {code:java}
            HTTP ERROR 404

            Problem accessing /jenkins/job/myproject/configure. Reason:

                Not Found
            Powered by Jetty://
            {code}



            my jenkins is on nginx with this config



            {code:java}
            server {
              listen 80; # Listen on port 80 for IPv4 requests

              server_name ci.mydomain.ai;

              #this is the jenkins web root directory (mentioned in the /etc/default/jenkins file)
              root /var/run/jenkins/war/;

              access_log /var/log/nginx/jenkins/access.log;
              error_log /var/log/nginx/jenkins/error.log;
              ignore_invalid_headers off; #pass through headers from Jenkins which are considered invalid by Nginx server.
              location ~ "^/static/[0-9a-fA-F]{8}\/(.*)$" {

                #rewrite all static files into requests to the root
                #E.g /static/12345678/css/something.css will become /css/something.css
                rewrite "^/static/[0-9a-fA-F]{8}\/(.*)" /$1 last;
              }

              location /userContent {
                    #have nginx handle all the static requests to the userContent folder files
                    #note : This is the $JENKINS_HOME dir
            root /var/lib/jenkins/;
                    if (!-f $request_filename){
                       #this file does not exist, might be a directory or a /**view** url
                       rewrite (.*) /$1 last;
            break;
                    }
            sendfile on;
              }

              location @jenkins {
                  sendfile off;
                  proxy_pass http://127.0.0.1:8080;
                  proxy_redirect default;

                  proxy_set_header Host $host;
                  proxy_set_header X-Real-IP $remote_addr;
                  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                  proxy_max_temp_file_size 0;

                  #this is the maximum upload size
                  client_max_body_size 10m;
                  client_body_buffer_size 128k;

                  proxy_connect_timeout 90;
                  proxy_send_timeout 90;
                  proxy_read_timeout 90;

                  proxy_buffer_size 4k;
                  proxy_buffers 4 32k;
                  proxy_busy_buffers_size 64k;
                  proxy_temp_file_write_size 64k;
            }

              location / {

                 # Optional configuration to detect and redirect iPhones
                  if ($http_user_agent ~* '(iPhone|iPod)') {
                      rewrite ^/$ /view/iphone/ redirect;
                  }

                  try_files $uri @jenkins;
               }
            }
            {code}

            tawanda tawanda minya made changes -
            Description in blue ocean when i click configure project i get this url



            {code:java}
            http://mydomain/jenkins/job/myproject/configure
            {code}



            but this error comes up. nothing in the jenkins log file


            {code:java}
            HTTP ERROR 404

            Problem accessing /jenkins/job/myproject/configure. Reason:

                Not Found
            Powered by Jetty://
            {code}



            my jenkins is on nginx with this config



            {code:java}
            server {
              listen 80; # Listen on port 80 for IPv4 requests

              server_name ci.mydomain.ai;

              #this is the jenkins web root directory (mentioned in the /etc/default/jenkins file)
              root /var/run/jenkins/war/;

              access_log /var/log/nginx/jenkins/access.log;
              error_log /var/log/nginx/jenkins/error.log;
              ignore_invalid_headers off; #pass through headers from Jenkins which are considered invalid by Nginx server.
              location ~ "^/static/[0-9a-fA-F]{8}\/(.*)$" {

                #rewrite all static files into requests to the root
                #E.g /static/12345678/css/something.css will become /css/something.css
                rewrite "^/static/[0-9a-fA-F]{8}\/(.*)" /$1 last;
              }

              location /userContent {
                    #have nginx handle all the static requests to the userContent folder files
                    #note : This is the $JENKINS_HOME dir
            root /var/lib/jenkins/;
                    if (!-f $request_filename){
                       #this file does not exist, might be a directory or a /**view** url
                       rewrite (.*) /$1 last;
            break;
                    }
            sendfile on;
              }

              location @jenkins {
                  sendfile off;
                  proxy_pass http://127.0.0.1:8080;
                  proxy_redirect default;

                  proxy_set_header Host $host;
                  proxy_set_header X-Real-IP $remote_addr;
                  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                  proxy_max_temp_file_size 0;

                  #this is the maximum upload size
                  client_max_body_size 10m;
                  client_body_buffer_size 128k;

                  proxy_connect_timeout 90;
                  proxy_send_timeout 90;
                  proxy_read_timeout 90;

                  proxy_buffer_size 4k;
                  proxy_buffers 4 32k;
                  proxy_busy_buffers_size 64k;
                  proxy_temp_file_write_size 64k;
            }

              location / {

                 # Optional configuration to detect and redirect iPhones
                  if ($http_user_agent ~* '(iPhone|iPod)') {
                      rewrite ^/$ /view/iphone/ redirect;
                  }

                  try_files $uri @jenkins;
               }
            }
            {code}

            in blue ocean when i click configure project i get this url



            {code:java}
            http://ci.mydomain.com/jenkins/job/myproject/configure
            {code}



            but this error comes up. nothing in the jenkins log file


            {code:java}
            HTTP ERROR 404

            Problem accessing /jenkins/job/myproject/configure. Reason:

                Not Found
            Powered by Jetty://
            {code}



            my jenkins is on nginx with this config



            {code:java}
            server {
              listen 80; # Listen on port 80 for IPv4 requests

              server_name ci.mydomain.com;

              #this is the jenkins web root directory (mentioned in the /etc/default/jenkins file)
              root /var/run/jenkins/war/;

              access_log /var/log/nginx/jenkins/access.log;
              error_log /var/log/nginx/jenkins/error.log;
              ignore_invalid_headers off; #pass through headers from Jenkins which are considered invalid by Nginx server.
              location ~ "^/static/[0-9a-fA-F]{8}\/(.*)$" {

                #rewrite all static files into requests to the root
                #E.g /static/12345678/css/something.css will become /css/something.css
                rewrite "^/static/[0-9a-fA-F]{8}\/(.*)" /$1 last;
              }

              location /userContent {
                    #have nginx handle all the static requests to the userContent folder files
                    #note : This is the $JENKINS_HOME dir
            root /var/lib/jenkins/;
                    if (!-f $request_filename){
                       #this file does not exist, might be a directory or a /**view** url
                       rewrite (.*) /$1 last;
            break;
                    }
            sendfile on;
              }

              location @jenkins {
                  sendfile off;
                  proxy_pass http://127.0.0.1:8080;
                  proxy_redirect default;

                  proxy_set_header Host $host;
                  proxy_set_header X-Real-IP $remote_addr;
                  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                  proxy_max_temp_file_size 0;

                  #this is the maximum upload size
                  client_max_body_size 10m;
                  client_body_buffer_size 128k;

                  proxy_connect_timeout 90;
                  proxy_send_timeout 90;
                  proxy_read_timeout 90;

                  proxy_buffer_size 4k;
                  proxy_buffers 4 32k;
                  proxy_busy_buffers_size 64k;
                  proxy_temp_file_write_size 64k;
            }

              location / {

                 # Optional configuration to detect and redirect iPhones
                  if ($http_user_agent ~* '(iPhone|iPod)') {
                      rewrite ^/$ /view/iphone/ redirect;
                  }

                  try_files $uri @jenkins;
               }
            }
            {code}

            Hide
            michaelneale Michael Neale added a comment -

            Is the problem due to it adding /jenkins in? If so - this is a duplicate of https://issues.jenkins-ci.org/browse/JENKINS-42291 which has been fixed in master but not released yet.

            Show
            michaelneale Michael Neale added a comment - Is the problem due to it adding /jenkins in? If so - this is a duplicate of https://issues.jenkins-ci.org/browse/JENKINS-42291 which has been fixed in master but not released yet.
            imeredith Ivan Meredith made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            imeredith Ivan Meredith made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            michaelneale Michael Neale made changes -
            Link This issue duplicates JENKINS-42291 [ JENKINS-42291 ]
            Hide
            michaelneale Michael Neale added a comment -

            yes this is the same problem. The reason was a rather embarrassing javascript error that happened in most recent beta. Will be fixed in next release shipped.

            Show
            michaelneale Michael Neale added a comment - yes this is the same problem. The reason was a rather embarrassing javascript error that happened in most recent beta. Will be fixed in next release shipped.
            Hide
            tawanda tawanda minya added a comment -

            Awesome thanks guys

            I had furiously tried googling for solutions to this but was stuck

            I can still access the config from the administration side so will do that for now

            Show
            tawanda tawanda minya added a comment - Awesome thanks guys I had furiously tried googling for solutions to this but was stuck I can still access the config from the administration side so will do that for now
            Hide
            tawanda tawanda minya added a comment -

            Thank You Ivan

            Show
            tawanda tawanda minya added a comment - Thank You Ivan
            tawanda tawanda minya made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            Hide
            michaelneale Michael Neale added a comment -

            tawanda minya yes sorry about this - snuck into the last beta. I'll see if we can cut one tomorrow as a few people have been bitten by this.

            Show
            michaelneale Michael Neale added a comment - tawanda minya yes sorry about this - snuck into the last beta. I'll see if we can cut one tomorrow as a few people have been bitten by this.
            Hide
            tawanda tawanda minya added a comment -

            sweet, thanks for the heads up

            Show
            tawanda tawanda minya added a comment - sweet, thanks for the heads up

              People

              • Assignee:
                imeredith Ivan Meredith
                Reporter:
                tawanda tawanda minya
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: