@adam_beers wrote:
How does the official android app do an account creation? Does it use a web interface or does it use the API or some other method? I tried finding the code in the github repo, but was not successful.
Posts: 1
Participants: 1
@adam_beers wrote:
How does the official android app do an account creation? Does it use a web interface or does it use the API or some other method? I tried finding the code in the github repo, but was not successful.
Posts: 1
Participants: 1
@Jay_Patel wrote:
Hi all,
Just installed App droplet on digital ocean. but when i registered with gmail id its not sending me any reply to admin email. is there some specific configuration i need to make.
Email used : user@gmail.com
smtp : smtp.gmail.com
port: tried both 465 and 587and have google less secure app allowed. Or can i turn on email on droplet it self like user@domain.com?
Thanks.
Posts: 1
Participants: 1
@King_Daniel wrote:
Hey Guys, thanks much for the great support thus far. Got Discourse running, everything seems fine from here but when i try making changes as an admin from the admin backend of my forum,most times my website goes blank for a couple of minutes(both frontend and backend) when i attempt making changes from discourse.example..com and the changes i make doesn't save instead i get errors such as >> an error was encountered while trying to save
When i try viewing error logs i get permission error>>> -bash: /var/discourse/shared/standalone/log/rails/production.log: Permission denied
I would be glad if i can get your valuable suggestions and a fix. Thanks
Posts: 5
Participants: 3
@rriemann wrote:
Hello,
so far, when you reply per mail and precede words with the
#
, they will be converted to links like #feature if it is a category, but this does not work for (already existing) tags.It would be nice, if an algorithm would check, if such a hashed word is not a category, if is a #tag and link it in case accordingly.
Posts: 3
Participants: 2
@samnazarko wrote:
Hello
I was on Discourse's 'tests-passed' branch, as that seemed to be the default when I set it up.
I saw I was on 1.7b7 and 1.7b9 was available, but there was no link to upgrade, so I assumed a newer version of the Docker image was available, and ran the usual ./launcher rebuild app.
Then I only had blank pages in Firefox and Chrome, and some Ember errors in Console about
Ember.HandleBars.helper is not a function
. I tried a cache clear and private browsing to rule out outdated JS, but my understanding is Discourse uses versioned assets in the query string to prevent this kind of thing anyway.I see it's not easy to downgrade to 1.7b7 as
container.yml
seems to accept a branch rather than a Git revision. So I changed it tostable
and the forum came back to life.I then tried to rebuild with
tests-passed
again, I was going to try and build with safe mode, and now just get a Postgres error.I, [2016-12-10T17:52:51.456970 #14] INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true 2016-12-10 17:52:51 UTC [73-1] postgres@discourse FATAL: the database system is starting up psql: FATAL: the database system is starting up I, [2016-12-10T17:52:51.514726 #14] INFO -- : I, [2016-12-10T17:52:51.514916 #14] INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' 2016-12-10 17:52:51 UTC [84-1] postgres@discourse FATAL: the database system is starting up psql: FATAL: the database system is starting up I, [2016-12-10T17:52:51.572613 #14] INFO -- : I, [2016-12-10T17:52:51.572859 #14] INFO -- : Terminating async processes I, [2016-12-10T17:52:51.572917 #14] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.5/bin/postmaster -D /etc/postgresql/9.5/main pid: 43 2016-12-10 17:52:51 UTC [43-1] LOG: received fast shutdown request I, [2016-12-10T17:53:01.573730 #14] INFO -- : HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.5/bin/postmaster -D /etc/postgresql/9.5/main pid:43 did not terminate cleanly, forcing termination! FAILED -------------------- Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' failed with return #<Process::Status: pid 74 exit 2> Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn' exec failed with the params "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'" 98fb45263dbe54085e33d839170fdf119a3f203f1db3ff0da48b167c3f1a3d63 ** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
Do I need to restore a database backup? I'm guessing the database is now in a state of disrepair.
Thanks
Sam
Posts: 8
Participants: 3
@Pingless wrote:
I'm trying to strip down the content of emails sent when in mailing list mode to minimise the amount of extraneous visuals.
I found the Customize setting in the admin menu, and changed the content of the following templates:
* User Posted
* User Replied
* User QuotedFor all of these, I've changed the following:
%{header_instructions} %{message} %{context} %{respond_instructions}
It now looks like this:
%{message}
I am attempting to only show the message, no username, avatar, date, or reply footer.
However, my changes seem to have done nothing at all - the email still looks exactly the same.
Am I doing something wrong? Does Discourse have a set of required parameters, and skipping them causes it to ignore the changes?Any help would be much appreciated.
Thanks,
Pingless
Posts: 4
Participants: 3
@jgujgu wrote:
I've just been spitballing ideas to myself today, but I've been thinking about how a lot of the Discourse forums listed here have some element where members might want to trade with each other. Has there been talk or is there desire for (what I think would be a massive) plugin that confirms trades between users?
I've only marginally used this site or researched alternatives, but it is probably the best example of what I'm talking about.
https://www.heatware.com/
Posts: 1
Participants: 1
@jomaxro wrote:
Just noticed this while viewing Meta at half-width on my 1080p monitor. Could this be related to Ember upgrades, a strange resolution issue on my end, or is it a real bug?
Notice that the 1/2 button overlaps the reply button.
It's especially noticeable when likes are expanded:
Posts: 6
Participants: 3
@meglio wrote:
A newly created user reached Trust Level 1. They sent a reply in a public topic, and I, an admin, want to split the messages into a new topic. But I can't — it asks me to wait for 12 hours.
Admins should be able to create as many topics as they want, including by splitting. So this looks like a bug.
Posts: 3
Participants: 2
@ibnesayeed wrote:
Recently, I added support for Urdu language, which, like Arabic, Hebrew, and Persian, is an RTL (right-to-left) language. To make the software aware of it I added
ur
locale inrtl_locales
method of theRTL
model class.However, my site's direction did not change in right-to-left. So, I started investigating what's wrong? I found that there is a helper method
rtl?
in theApplicationHelper
class.There seems some duplication of logic. So, I looked into the
RTL
class further and found it confusing because it's initialization is dependent on aUser
instance.This implementation would make perfect sense if RTL is a property independent of the locale in a way that my Arabic may be RTL, but your Arabic may not. However, this is not the case. RTL (or LTR) is the property of the locale, independent of the user. If the
I18n.locale
is assigned a property calleddirection
which may hold valuesrtl
orltr
, withltr
being the default (let's forget about thettb
direction for now because that is almost always represented asltr
on the web). Alternatively, a methodrtl?
is added to theI18n.locale
that returns false by default, unless the locale is in the array of RTL locales.This way, entire RTL class can go away and wherever a locale object is accessible, its direction is also known. We don't need to know separately if a user's locale has RTL enabled, we just find the effective locale and apply RTL if applicable.
I know that Discourse does not encourage code refactoring for the sake of refactoring, but being a newbie to the code base I would like to hear the rationale behind why it is the way it is?
Posts: 9
Participants: 3
@mbryantms wrote:
I began working towards installing the WP-Discourse plugin when I happened to logout and now I haven't been able to log back in. I was working towards testing and unifying Wordpress and Discourse's sign in systems. Unfortunately, now when I login currently, I get the following error in
log/production.log
==> log/production.log <== Started GET "/session/csrf?_=148144248215" for XX.XX.XX.XX at 2016-12-11 07:45:44 +0000 Processing by SessionController#csrf as */* Parameters: {"_"=>"1481442183487"} Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/session" for XX.XX.XX.XX at 2016-12-11 07:45:44 +0000 Processing by SessionController#create as */* Parameters: {"login"=>"username", "password"=>"[FILTERED]"} Can't verify CSRF token authenticity Rendered text template (0.0ms) Filter chain halted as :verify_authenticity_token rendered or redirected Completed 403 Forbidden in 9ms (Views: 3.4ms | ActiveRecord: 0.0ms)
(I changed the csrf tokens in both areas above manually as I am fairly certain they aren't security risks but didn't want to take any chances with the real thing - the two areas above match in the production log).
I have tried looking on this Discourse, StackOverflow, Google, Ruby on Rails support (b/c I believe it's a Rails issue) and other areas and am not sure how I can restore login functionality.
Things I have tried:
1. Rebuilding app
2. Deleting browser cookies, cache data, etc.
3. Using another browser / InPrivate/Incognito browsers
4. Creating a new user, which gets the same error and can't login
5. Admin rake command to recreate / create admin usersOnline direction so far has been related to API mismatch and recommends pulling the API key through a web address json file and then using that to submit the request. This doesn't seem related to logging in...but it definitely looks like something isn't matching up.
Edit:
I tracked it down finally...this post threw me for a loop:
But it lead me to this post which actually solved it for me:
The resolution involved adding the following line to the nginx discourse config:
proxy_set_header X-Forwarded-Proto https;
Then after that it's a simple:
sudo nginx -t sudo systemctl reload nginx
Posts: 1
Participants: 1
@schlos wrote:
I tried to update my Discourse instance running on Digital Ocean with
git pull
and./launcher rebuild app
.I got this error:
FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 376 exit 1> Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn' exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]} 0965177baaf23a12011e1d9fd212706cee61979f71e99964e095a38737b94718 ** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
I reckon it's because of this errors:
rake aborted! Barber::PrecompilerError: Pre compilation failed for: <div class='container'> {{custom-html "top"}} {{Discourse.globalNotice}} </div>
And/or this error:
ExecJS::ProgramError: Error: Assertion Failed: Using `{{controller}}` or any path based on it ('javascripts/discourse_user_directory/templates/directory' @ L14:C18) has been removed in Ember 2.0 new Error (native) Error.EmberError ((execjs):9091:21) assert ((execjs):6024:13) Object.assert ((execjs):8855:34) assertPath ((execjs):16427:22) assertPaths ((execjs):16422:7) assertHash ((execjs):16411:7) (execjs):16397:7 Walker.visit ((execjs):23457:7) ElementNode ((execjs):23473:16)
Full log: http://pad.okfn.org/p/discourse-failed-to-bootstrap
Tried
restart
, and hen again./launcher rebuild app
(like suggested in this topic), but it didn't help.Any help appreciated. Thanks!
Posts: 3
Participants: 2
@TechnoBear wrote:
Continuing the discussion from "Chopped" Spam in New User Profiles:
As mentioned in the linked topic, we started to get a lot of accounts with 250-character Spam profiles after we switched to SSO. Six days ago, the language of the Spam, and the associated e-mail addresses, changed to Polish, and since then we've had 30 Polish and only one English (with a Polish e-mail address) - 24 of them in the last three days.
In the last few days, we have also had a huge increase in other Spam profiles, all Polish, and all fitting such exact patterns that they look like bots to me. I understand the argument that bots can't click the activation link in an e-mail, but the utter consistency of these looks bot-like to me. In my experience, humans creating multiple accounts invariably have occasional odd discrepancies - inconsistent capitalisation, typos, even clicking the odd post or the welcome message. These do not. Each matches its "type" exactly, and all have read 0 posts and spent less than 1 minute reading. None has a profile picture; all use default system letter. Unfortunately, we have no IP addresses recorded for these, but I would be most interested to know if anybody else recognises these patterns.
In addition to those mentioned above, in the space of three days we had 24 of this pattern:
- Username is a capitalised first name plus four random letters.
- E-mail name is a first name which does not match the username
- E-mail domains: subdomain.securemail.co.pl
- Name: "Proper" name, correctly capitalised. e.g. Kyle Guido, Raisa Seidensticker, Marcus Haefner. Does not match either username or e-mail.
- Profile text: URL plus single sentence. English, but has an air of "spun" about it.
(We have since blocked securemail.co.pl, and had no further sign-ups of that pattern, although we're not sure if blocked e-mail domains work with SSO.)
In the same three days, 27 accounts of this pattern:
- Username is a capitalised first name plus two random letters.
- E-mail name is a name (surname?) which does not match the username, plus two digits
- E-mail domains: 4**.e90.biz
- Name: "Proper" name, correctly capitalised. e.g. Dennis Balle, Lenny Lyas, Todd Lleras. Does not match either username or e-mail.
- Profile text (all posted in "About Me"): URL which redirects. Fake "bio" which appears to be created from stock phrases. Last line is generally a proverb, or spun version thereof, with "new" replacing one word.
English, but has an air of "spun" about it.A further 10 accounts for this pattern, over the same period:
- Username is 9 random lower-case characters plus two digits.
- E-mail name is short word or name followed by two digits, the first of which is 0. Repeating patterns: e,g. risk01@, risk02@, risk05@
- E-mail domains: Multiple; mostly lengthy German or Polish.
- Name: "Proper" name, correctly capitalised. e.g. Maksymilian Sikora, Adrian Wisniewski
- Profile text: 20 - 23 words, including URL; German nonsense text.
And the latecomer to the party - in the past two days, 17 of these:
- Username is 5 random lower-case characters plus two digits.
- E-mail name matches username.
- E-mail domains: wnmail.top, tpmail.top, xtmail.win
- Name: "Proper" name, correctly capitalised. e.g. Blandyn Kwoka
- Profile text: 250 characters, nonsense text with occasional "male sexual health" terms; mixed languages
So that's over 100 Spam accounts in three days (not counting the handful of "normal" Spam accounts I've seen).
So far, thankfully, none of these has posted, but if these are automated or semi-automated accounts, that could get very messy.
As before, I'm interested in these specific patterns of sign-up, and whether anybody else has seen the same or something similar.
Posts: 5
Participants: 4
@mrdiscourse wrote:
Latest upgrade breaks discourse installation. Anyone got an idea what this means?
FAILED -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile' failed with return #<Process::Status: pid 421 exit 1> Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn' exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]} a0732ebd4f83ae4000f1731192b67830c3b5539edf4da47c3d2db73d8850ca23 ** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
Posts: 6
Participants: 2
@barreeeiroo wrote:
Is possible to add an image from URL in the profile section? Where you change your profile image, it could be an option to paste an image URL and use it as an image.
Using this, disk space won't be wasted in lots of pictures
Posts: 2
Participants: 2
@GregoryMatthews wrote:
We've recently upgraded to v1.7.0.beta9 +30. Shortly thereafter, we updated our email settings in app.yml. When trying to rebuild, via sudo ./launcher rebuild app, we get the following error:
Ensuring launcher is up to date
Fetching origin
Updating Launcher
Updating aab5d67..f92ac11
error: Your local changes to the following files would be overwritten by merge:
templates/web.ssl.template.yml
Please, commit your changes or stash them before you can merge.
Aborting
failed to update
The Template referenced here, web.ssl.templates.yml, was modified during our initial installation.
Please advise what we need to do to resolve this issue.
Thanks.
Posts: 3
Participants: 2
@Manfred_Bayer-Lemerz wrote:
Hallo!
When I use the timestamp as admin it works fine.
But as Moderator or User with user level 4 the user sees the menu item as above but when he wants to change the date the error message "There was an error changing the timestamp of the topic." pops up.
As we have a couple oif user which are reenter topics from the old board software we would need this feature also for user with user level 4!
thanks
Manfred
Posts: 3
Participants: 2
@zombieslayer124 wrote:
On our forum, people have read as much as 10k-40k and it seems odd that they have read that much (me myself has read 32.7k) and I'm confused to what that means, does "read" mean the characters? Or the amount of posts if it is the amount of posts, there is something very wrong
Posts: 5
Participants: 4
@tobiaseigen wrote:
Hi all - has anyone else noticed this issue? I think the mobile theme has been changed recently and the presentation on my site is all messed up. It appears the site logo is now stretched to fill the width of the screen, overlapping with the menu on the right hand side.
Below are three screenshots - one from how it used to look (a screenshot I took to illustrate another problem which probably hasn't gone away yet either - I will check it once I get this fixed!) and the next two show how it looks now (notice the logo stretches across, and the rest of the display is all screwy ands impossible to use).
Let me know if you have any suggestions/ideas. I'd appreciate it.
How it looked previously
How it looks now
Posts: 3
Participants: 2
@kgish wrote:
I'm seeing the following deprecation warning and wonder where it's coming from:
ember:6210 DEPRECATION: Support for the
ember-legacy-views
addon will end soon, please remove it from your application. [deprecation id: ember-legacy-views] See http://emberjs.com/deprecations/v1.x/#toc_ember-view for more details
Posts: 3
Participants: 3