I've setup a local gem server for my group on the internal network, and it serves most gems fine, except annotate which needs the gemspec.rz and my server returns a 404 every time it hits it.
I do have the annotate gem installed on the gem server with its quick/marshal/gemspec under specifications, I even manually setup a quick/marshal in the "root" dir, nothing works.
When I do gem generate_index it simply wipes the quick/marshal dir
When I do a bundle install from a dev machine with the local gem server (x.x.x.x) as source, this is what I get
Fetching source index from http://x.x.x.x:8808/
Resolving dependencies...
Net::HTTPNotFound: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD><TITLE>Not Found</TITLE></HEAD>
<BODY>
<H1>Not Found</H1>
`/quick/Marshal.4.8/annotate-2.4.1.beta1.gemspec.rz' not found.
<HR>
<ADDRESS>
WEBrick/1.3.1 (Ruby/2.0.0/2013-11-22) at
x.x.x.x:8808
</ADDRESS>
</BODY>
</HTML>
# wget http://x.x.x.x:8808/quick/Marshal.4.8/annotate-2.4.1.beta1.gemspec.rz
--2014-02-07 14:53:12-- http://x.x.x.x:8808/quick/Marshal.4.8/annotate-2.4.1.beta1.gemspec.rz
Connecting to x.x.x.x:8808... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-02-07 14:53:12 ERROR 404: Not Found.
# wget http://rubygems.org/quick/Marshal.4.8/annotate-2.4.1.beta1.gemspec.rz
--2014-02-07 14:54:20-- http://rubygems.org/quick/Marshal.4.8/annotate-2.4.1.beta1.gemspec.rz
Location: http://production.cf.rubygems.org/quick/Marshal.4.8/annotate-2.4.1.beta1.gemspec.rz [following]
--2014-02-07 14:54:20-- http://production.cf.rubygems.org/quick/Marshal.4.8/annotate-2.4.1.beta1.gemspec.rz
Length: 471 [binary/octet-stream]
Saving to: “annotate-2.4.1.beta1.gemspec.rz”
2014-02-07 14:54:21 (48.0 MB/s) - “annotate-2.4.1.beta1.gemspec.rz” saved [471/471]
Related
I have upgraded rails 4.2.11.1 to 5.2.8.1, and ActionMailer stopped working within Rspec.
When I run this simple welcome email (described on their page):
UserMailer.with(user: #user).welcome_email.deliver_now
It returns the following internal server error (500):
Unable to find a browser command. If this is unexpected,
Please rerun with environment variable LAUNCHY_DEBUG=true
or the '-d' commandline option and file a bug at
https://github.com/copiousfreetime/launchy/issues/new
I have the following configuration:
config.action_mailer.delivery_method = :test
When running with the env var LAUNCHY_DEBUG=true it returns:
InternalMailer#welcome_email: processed outbound mail in 10.0ms
Sent mail to admin#example.com (18.2ms)
Date: Thu, 26 Jan 2023 18:52:30 +0000
From: example#example.com
To: example#example.com
Message-ID: <63d2cbee2134b_d2ad277028a04983aa#238604b1f73f.mail>
Subject: Welcome to My Awesome Site
Mime-Version: 1.0
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<h1> testing</h1>
</body>
</html>
The same happens if I try to run it within a controller.
Did I miss any breaking changes?
I've been trying to trigger a build via the Jenkins API so far with no success. I configured a job on 'Trigger builds remotely' and set a token, 'abc'.
Then in postman I did a post to:
$jenkinsurl:$port/job/$jobname/build?token=abc
And the response is:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 403 No valid crumb was included in the request</title>
</head>
<body>
<h2>HTTP ERROR 403</h2>
<p>Problem accessing /job/DCD%20Specifications/build. Reason:
<pre> No valid crumb was included in the request</pre>
</p>
<hr>
<i>
<small>Powered by Jetty://</small>
</i>
<hr/>
</body>
I also tried to use basic authentication with a valid username and password, but to no avail.
I can use gets to retrieve whatever information I want from the Jenkins API just fine; it's only this post that gives me this problem.
I had Jenkins 2.7 and updated to 2.19.4 and both versions give me this problem. What am I doing wrong here?
Pass in POST headers, "Jenkins-Crumb:5740ac1b614ca59f5dd5ef151b2895b3".
Your Crumb can be obtained from the URL http://jenkins:8080/crumbIssuer/api/xml
In the POST body, use the appropriate Jenkins XML API request.
Here is my Postman images with parameters:
This worked for me:
Obtain crumb
$ wget -q --auth-no-challenge --user yourUserName --password yourPassword--output-document - 'http://myJenkins:8080/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)'
Now run the Jenkins job
$ curl -I -X POST http://yourUserName:yourPassword#myJenkins:8080/job/JOBName/build -H "Jenkins-Crumb:44e7038af70da95a47403c3bed5q10f8"
HTTP/1.1 201 Created
Date: Fri, 28 July 2017 09:15:45 GMT
X-Content-Type-Options: nosniff
Location: http://myJenkins:8080/queue/item/17/
Content-Length: 0
I'm receiving this error:
Class#new_employee_survey_email failed with ActionView::Template::Error: uninitialized constant ActionView::CompiledTemplates::Liquid ..
The liquid gem is installed. I can use it in views or in the rails console. I can't get it to work in the email template only.
That template have only several html tags and the call to the Liquid class from their example:
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
</head>
<body>
<% #template = Liquid::Template.parse("hi {{name}}") # Parses and compiles the template %>
<%= #template.render( 'name' => 'tobi' ) %>
</body>
</html>
The email is send by delay job if this makes difference.
I will apreciate any help in making this work.
I found the solution:
The jem was successfully found after restarting my box.
Possible reasons - the terminal that had "rake jobs:work" running was not aware of the installation and the addition of the Liquid gem to my gem file.
To not look like complete newby ... :(
I have restarted the rake server and the gem started working on all views/controlers but the mailers
I have restarted the the rake job, but not the console that it is running on ...
I hope this helps others to not waste time ... I'm still feeling newb thought :( ...
I am reading documentation of symfony1.4 becouse I've to learn it due to a legacy code. At some point documentation says:
Then, download the symfony configuration checker script at the following URL:
So I'd tried to run
$ curl -d "" http://sf-to.org/1.4/check.php
I received the message:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved here.</p>
</body></html>
Then, I've tried to run
$ curl -d "" http://svn.symfony-project.com/branches/1.4/data/bin/check_configuration.php
getting this error:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>
In my opinion it's best to use the git repository of symfony:
https://github.com/symfony/symfony1
The check_configuration.php file can be found here:
https://github.com/symfony/symfony1/blob/1.4/data/bin/check_configuration.php
or if you want just the contents of the file:
https://raw.github.com/symfony/symfony1/1.4/data/bin/check_configuration.php
I have a staging server from my client which has passenger(3.0.5 and 3.0.2) installed on it for an rails app(v=2.3.13), but when I start the server using passenger on the console it's getting updated to 3.0.5-x86_64-ruby1.8.7-linux-gcc4.4.3-1002. In my Gemfile I have mentioned
gem 'passenger', '=3.0.5'
Why is it getting updated?
Thanks in advance.
Here's the log....
when I run the command, **`**RAILS_ENV=staging passenger start**.`**
__________________________________________________________
Nginx core 0.8.54 isn't installed
Phusion Passenger Standalone will automatically install it into:
/var/lib/passenger-standalone/3.0.5-x86_64-ruby1.8.7-linux-gcc4.4.3-1002/nginx-0.8.54
This will only be done once. Please sit back and relax while installation is
in progress.
Checking for required software...
GNU C++ compiler... found at `/usr/bin/g++`
GNU make... found at `/usr/bin/make`
A download tool like 'wget' or 'curl'... found at /usr/bin/wget
Ruby development headers... found
OpenSSL support for Ruby... found
RubyGems... found
Rake... found at `/usr/local/bin/rake`
rack... found
Curl development headers with SSL support... found
OpenSSL development headers... found
Zlib development headers... found
file-tail... found
daemon_controller >= 0.2.5... found
Downloading Passenger binaries for your platform, if available...
Resolving standalone-binaries.modrails.com... 97.107.130.55
Connecting to standalone-binaries.modrails.com|97.107.130.55|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-10-09 08:52:00 ERROR 404: Not Found.
Looks like it's not. But don't worry, the necessary binaries will be compiled from source instead.
Downloading Nginx binaries for your platform, if available...
#
Resolving standalone-binaries.modrails.com... 97.107.130.55
Connecting to standalone-binaries.modrails.com|97.107.130.55|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-10-09 08:52:00 ERROR 404: Not Found.
Looks like it's not. But don't worry, the necessary binaries will be compiled from source instead.
Downloading Nginx...
# wget -O /tmp/root-passenger-standalone-21842/nginx-0.8.54.tar.gz http://nginx.org/download/nginx-0.8.54.tar.gz
--2013-10-09 08:52:00-- http://nginx.org/download/nginx-0.8.54.tar.gz
Resolving nginx.org... 206.251.255.63
Connecting to nginx.org|206.251.255.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 650001 (635K) [application/octet-stream]
Saving to: '/tmp/root-passenger-standalone-21842/nginx-0.8.54.tar.gz'
100%
[======================================================================================================>] 650,001 788K/s in 0.8s
2013-10-09 08:52:01 (788 KB/s) - `/tmp/root-passenger-standalone-21842/nginx-0.8.54.tar.gz' saved [650001/650001]
Installing Phusion Passenger Standalone...