#foswiki 2015-02-18,Wed

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)

WhoWhatWhen
RiskRewardHi jmk0, I've got a problem with the curl commands. They login and logout OK, but won't create the topic. Error log just shows the logging in and out. Nothing displayed on console when I run the command. How to debug? [00:04]
jmk0make sure you have the URLs correct. Edit a topic and find out what the "save" action links to. You might need to look at the html code to find out for sure
also check the web server error log and run curl with the option (whatever it is, I forget) that makes it display the results (including error codes) from the web server
[00:07]
RiskRewardOK, thanks. [00:11]
gac410RiskReward: You mentioned just outputting .txt and .txt,v files Just writing out the .txt files is sufficient. You don't need to create ,v files. We don't ship them for any of the System topics.
Only reason to use curl and post to save is if you don't have direct server access. Just writing .txt files is simple enough.
[00:13]
RiskRewardOK. Well, I do have direct server access, so if I make the txt files can I just copy them across (rather than using Curl?). [00:14]
gac410Regarding the _2e question, Are you saying that the username includes a period Joe.User Or are you referring to the dot between webname and wikiname.
RiskReward: yes, foswiki is quite happy without ,v files. Just ftp them over.
or scp or ...
[00:15]
RiskRewardOur usernames include a period, i.e. "joe.blogs". When displayed in the table they look like "joe_2eblogs". [00:16]
gac410Okay. hm It's not a legal character in topic names, since it's a delimiter for Web.Topic, So I suspect something is encoding it.
the "cUID" canonical UID, is the username encoded to be safe internally.
Are you mapping the username joe.blogs over to a WikiName JoeBlogs ?
Which mapper are you using?
[00:17]
RiskRewardYes, I think it's mapped. Don't know which mapper. In our txt files it shows up as: %META:TOPICINFO{author="joe_2eblogs"...}% [00:20]
gac410Default is "TopicUserMapping" ( $Foswiki::cfg{UserMappingManager} = 'Foswiki::Users::TopicUserMapping'; )
Also what's the setting for $Foswiki::cfg{Register}{AllowLoginName}
[00:21]
RiskRewardUserMappingManager is TopicUserMapping
AllowLoginName is ticked
[00:23]
gac410okay. I'm guessing it might be a bug in the Grid plugin. User logs in with joe.blogs If he edits a topic, then the webpage should display something like "Topic revision: r1 - 22 Mar 2010, JoeBlogs" down at the bottom
The Meta author info is joe_2eblogs but that is the cUID which should map to the WikiName and LoginName.
So something is not calling getWikiName( cUID) ... MichaelDaum might know better.
Ping SvenDowideit you around?
[00:26]
....... (idle for 32mn)
GithubBot[distro] gac410 pushed 1 new commit to master: http://git.io/NjX3
distro/master 5c9b2fc George Clark: Item9693: Update favicon to project logo...
[01:04]
***GithubBot has left [01:04]
gac410SvenDowideit: GuilainC is willing to help with Debian packaging. Where are your build scripts. It looks like the scripts in git are quite old. [01:14]
............................ (idle for 2h16mn)
***gac410 has left
ChanServ sets mode: +o gac410
[03:30]
................................ (idle for 2h39mn)
gac410 has left [06:13]
.......... (idle for 48mn)
ChanServ sets mode: +o CDot [07:01]
..... (idle for 20mn)
ChanServ sets mode: +o MichaelDaum [07:21]
.... (idle for 15mn)
GithubBot[distro] MichaelDaum pushed 1 new commit to master: http://git.io/AeFh
distro/master 908c6b4 MichaelDaum: Item9693: restoring previous favicon...
[07:36]
***GithubBot has left [07:36]
...................................... (idle for 3h8mn)
GuilainChi everybody, good morning !
more and more I came into deeper the debian package, more and more I think that the foswiki package system have some lack. For exemple, How an foswiki 1.19 know that it don't have to install zoneplugin which is already fit in ?
[10:44]
MichaelDaumHi GuilainC
well, I am not really a fan of the way the current debian packages are build
either
there is too much guesswork happening
the only way to get around this is to help developers to initiate and maintain a debian/ subdirectory ... being checked in to the repository
so my pov is: instead of auto-generating the debian/ directory - as that's causing the problems - we should improve BuildContrib to bootstrap it.
part of that bootstrap mech could lend ideas coming from the current debian pkg builder
but then once that is done devs should have the chance to fix any guesswork that went wrong
[10:49]
GuilainCThat's my subject, I want to change it. First I've take a look about script making the deb package, but now, I think like you, too many think are guess. But many of guess like obsolete label are just not deal with the original foswiki package [10:53]
MichaelDaumbest would be for the toolchain to flag guesses that weren't 100% sure i.e. failed [10:53]
GuilainCI hear you.
i've to work more on BuildContrib
what it does, how it do
[10:53]
MichaelDaumwe should also agree and docu a directory structure for debian pkgs ... the one currently build into the debs might not be optimal
for instance installing VirtualHostingContrib has a few requirements in addition wrt the directory structure and where net data is located
not sure how to deal with these two different flavors with regards to a debian packaging structure
[10:54]
GuilainCas the debian package management system is more powerfull than the simple tarball, should we first build deb package, and then gen more simple foswiki package ? [10:56]
MichaelDaumno these are two separate targets
the debian building mechs need a tarball anyway
and btw. the currently being used debian/rules is bloatware
and using an old standard
nother thing to take caution of is: what about local perls
[10:57]
GuilainCwhen you speak about local perls ? you speak them provide by the developper ?
and which are local inside foswiki ?
by the way, feel free to put you pov http://foswiki.org/Tasks/Item13263
my aim is simple, first having a usable debian repo
[11:10]
.... (idle for 18mn)
MichaelDaumlocal perl in the sense of plenv or perlbrew installed locally to be used by foswiki
however well, this only affects distros _not_ derived from debian such as suse or redhat. their system perl is hopelessly outdated.
[11:33]
GuilainChave you already use perl-depends ? [11:40]
.... (idle for 18mn)
MichaelDaumy [11:58]
............... (idle for 1h13mn)
CDot(10:40:22) MichaelDaum: so my pov is: instead of auto-generating the debian/ directory - as that's causing the problems - we should improve BuildContrib to bootstrap it.
I'm adding my +1 to that.
GuilainC: if you have any questions about the BuildContrib, just shout.
[13:11]
.... (idle for 18mn)
GuilainCthanks cdot, first i read :) [13:29]
foswiki_irc6Hey all, can someone help with the email error in foswiki? My notifications are not going out.
It says to check the Foswiki warning log but I don't have a warning log.
and nothing is showing up in my error.log
[13:43]
GuilainCfoswiki_irc6, i suppose, you have made the check in bin/configure
e-mail testing
[13:49]
foswiki_irc6yes that's where it is saying to look at the warning log [13:49]
GuilainCand you can receive this test email ? [13:49]
foswiki_irc6no I don't receive it
to look at the Foswiki warning log. Too many failures sending mail
[13:49]
GuilainCok, any error is given in this bin/configure ?
what's you env : tarball install ? package ? under which OS ?
[13:50]
foswiki_irc6I'm running Ubuntu 4.4.3 [13:51]
GuilainCok, install by deb package ? or by uncompressing the tar.gz [13:52]
foswiki_irc6I'm not sure how it was initially installed. [13:52]
GuilainCok,
basically, you host is able to send mail
by simple mail program ?
[13:53]
foswiki_irc6I've set it to use Net::SMTP [13:55]
GuilainChave you check you get net::smtp installed ? [13:55]
foswiki_irc6This worked before
so it's installed.
[13:55]
GuilainCbefore what ? ;) [13:55]
foswiki_irc6before 2 weeks ago [13:55]
GuilainCwhat have you done ?
and you're still able to send e-mail from the linux console ?
[13:55]
foswiki_irc6I'm using Net::SMTP
It says Net::sendEmail() returns error that is in warning log.
There is no warning log in /var/www/foswiki/logs
If I could find this error I could probablty fix it.
[13:57]
GuilainChave you try to set on {SMTP}{Debug} ?
and have you check basicaly in error.log (apache error log ?)
[14:00]
foswiki_irc6It is not logging to error.log in apache2
I can see by timestamp.
I've set debug but I don't know where that's logging either.
[14:02]
GuilainCshould be in debug.log
hum not sure
[14:02]
foswiki_irc6I'm also not sure what command mailnotify runs so I could try to run from console.
I run mailnotify by itself and it just return prompt.
[14:03]
GuilainCfor me if test e-mail doesn't work, mailnotify should not work
but i don't have other idea,
[14:04]
***ChanServ sets mode: +o gac410 [14:04]
GuilainCmailnotify script can give you more information
should be a good start for getting debugging information
[14:04]
foswiki_irc6perl -l mailnotify Can't locate setlib.cfg in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at mailnotify line 30. BEGIN failed--compilation aborted at mailnotify line 31. [14:08]
GuilainCfoswiki_irc6, just return prompt ? without pocessing the web ?
perl -T -I ../bin mailnotify
from command line, and then your argument
take an interesting web like Sandbox
the -I ../bin tell to perl where to read the setlib.cfg
[14:08]
CDotrun mailnotify DEBUG
(IIRC)
[14:10]
GuilainCdon't know this mailnotify option, is it undocumented [14:11]
foswiki_irc6Can't seem to locate the setlib.cfg [14:12]
GuilainChave you call it with the "-I ../bin" option ?
cdot if i well understand, perl dependencies is hand written by developper, there is no (quality) check on this ?
[14:13]
CDotthat's right [14:16]
gac410foswiki_irc6 That is a capital letter I as in India. cd tools perl -I ../bin mailnotify You should not need the -T
GuilainC: There is a "dependencies" target of BuildContrib that attempts to find them and propose a DEPENDENCIES file.
[14:16]
CDotthe writing (and testing) of DEPENDENCIES has always been a bit of a nightmare, but i couldn't work out how to automate it in a platform-portable way
the dependencies target is very rough and quite frankly, not to be trusted.
[14:17]
GuilainCok, the dependencies target is undocumented in http://foswiki.org/Extensions/BuildContrib ?? [14:17]
CDoty, because it's untrusted
I'd call it "experimental". Or maybe just "crap".
[14:17]
foswiki_irc6I've resolved the setlib.cfg issue [14:18]
GuilainCcdot, this morning i was speaking about perl-depends [14:18]
foswiki_irc6By copying it from foswiki to /bin
It looks like it runs successfully but I'm still nto getting test email
[14:18]
GuilainCyou don't think it could be useful? [14:18]
CDoty, I tried perl-depends but not recently. When I tried it, it was worse than perl build.pl dependencies [14:18]
foswiki_irc6It processes all webs [14:18]
CDotit may well have improved since then [14:19]
foswiki_irc6Still get t says Net::sendEmail() returns error that is in warning log but there is no warning log in /var/www/foswiki/logs [14:19]
GuilainCok, I've made some test this morning, and he find some dependencies, accurately don't know ! [14:19]
gac410I think TimotheLitt contributed a dependencies finder as well not sure where it is. [14:19]
GuilainCsorry foswiki_irc6, I don't have other idea,
if mailnotify give error without detail... If i remember well, mailnotify was very verbose
[14:20]
gac410foswiki_irc6: What did you copy, from where to where [14:21]
foswiki_irc6I copied setlib.cfg
to /bin from foswiki
because mailnotify was complaining
[14:21]
GuilainCI tel something wrong, dependencie target is very quickly documented in BuildContrib web page [14:21]
gac410foswiki_irc6: Something seems very broken. setlib.cfg should always have been in the bin directory. How did you install. [14:22]
foswiki_irc6I don't recall how it was installed it was long ago and has worked until about 2 weeks ago. [14:23]
gac410Wait a moment. You copied it to the system root level /bin or into the foswiki/bin directory [14:23]
foswiki_irc6not foswiki [14:23]
GuilainCGuilainC need to repair his car, see you ! [14:24]
CDotfoswiki_irc6: that isn't going to work :-( [14:25]
foswiki_irc6I moved it to foswiki/bin
and mailnotify triggers okay but no email sent. Net::sendEmail() returned the following error: ...look at Foswiki warning log
where is foswiki warning log?
[14:25]
gac410depending on your foswiki version, it might be in foswiki/data or in foswiki/working/logs Name is configurable.
Are you able to send an email using the configure Test Email button?. ... Does your user registrations successfully send email?
[14:26]
foswiki_irc6That's the test email I'm using that throws that error. [14:28]
gac410gac410 is getting more confused. You point your browser at bin/configure, navigate to the Mail tab, and the Email Test sub tab,. press the test button. It just says to look at Foswiki warning log? [14:36]
foswiki_irc6yes
It says a few things on the page but the error is that
please ask you %WEBMASTER% to look at the Foswiki warning log
because Net::sendEmail() returned an error
I've checked foswiki/data and foswiki/working/logs but see no warning log.
I see two wranings in error.log
SMTP auth: 500: Command unknown: 'AUTH' - Trying to send without authentication
and Badly formatted page list at USER: ...
[14:41]
gac410okay. Well if the test email button is not working, then no sense looking at mailnotify. We need to figure out why foswiki can't send email. [14:45]
foswiki_irc6right [14:45]
gac410Do you know anything about the email server you are trying to connect to?
Is it internal, or your ISP?
[14:46]
foswiki_irc6not much. From the test email page it shows that it can EHLO to the mail relay
I've tested credentials and they work.
[14:46]
gac410lets step back a bit. What OS are you running on? [14:50]
foswiki_irc6I just telnet to mail server and sent a message to myself that delivered.
from the foswiki server
to rule that out.
I'm running on Ubuntu
[14:52]
gac410okay. Can the server itself send messages. ie output from cron jobs, etc.
is it's local MTA configured correctly.
[14:53]
foswiki_irc6what does Foswiki use to send messages ffrom the server [14:54]
gac410It can use perl, or it can use the sendmail command that most mta packages install
Depends on how it is configured
[14:54]
foswiki_irc6It's using perl I think.
The cronjob shows perl invoking mailnotify
sendmail is not on the srver
[14:55]
gac410Right. Ignore foswiki completely. So no MTA at all, sendmail, sSMTP, postfix, exim, qmail, etc. [14:56]
foswiki_irc6I don't see any of those on this server. [14:56]
gac410from your normal login, if you type "sendmail" and hit enter, what does it say
It should either complain about no recipients, or tell you something needs to be installed, or maybe just sit there waiting for input. Don't install anything. I'm just asking
[14:57]
foswiki_irc6It says The program 'sendmail' can be found in the following packages: [15:01]
gac410okay. That confirms what I wanted to know. We must use perl to send email. Back to Foswiki. [15:02]
foswiki_irc6k [15:02]
gac410When you sent your email with telnet, you did not need to provide any AUTH credentials, it just acceptd and sent an email directly
correct?
[15:03]
foswiki_irc6yes [15:03]
gac410okay, review settings. Mail Tab, Email General sub-tab, you have a valid email address and name specified for {WebMasterEmail} and {WebMasterName} [15:04]
foswiki_irc6yes it's my emial [15:04]
gac410On Email Server tab, {Email}{MailMethod} should be set to Net::SMTP, [15:05]
foswiki_irc6yes
mailhost and user/pass are ok
[15:05]
gac410{SMTP}{MAILHOST} should be set to your.mail.host:25 [15:05]
foswiki_irc6port is not specified. [15:05]
gac410And clear out user and pass. If you sent a message without AUTH, you don't want them [15:06]
foswiki_irc6ahhh that explains the warning... [15:06]
gac410Port should default to 25, but might be safer to specify it. [15:06]
foswiki_irc6in error.log [15:06]
gac410SENDERHOST can be left empty as well [15:06]
foswiki_irc6As an aside, why does Ldap BindPassword clear everytime I save config? [15:06]
gac410I have no idea. I don't use ldap. [15:07]
foswiki_irc6k
nvm then :)
[15:07]
gac410On to next tab, S/MIMIE checkbox shuould be un-checked, so that feature is disabled. [15:07]
foswiki_irc6right
it worked
So it was because authentication was specified?
how bizzarre
Thank you so much!
[15:07]
gac410yw [15:09]
hey jast ... any progress on the translation server so we can get the translators running?
MichaelDaum: Did you see http://foswiki.org/Support/Question1561 It looks like something isn't being mapped from cUID back to WikiName
II think I was helping him on IRC. He is using TopicUserMapping, login name is joe.user metadata becomes joe_2euser WikiName mapping is working elsewhere.
[15:21]
We need to decide what to do with IngoKappler's dependency installer for 1.2. It has not been updated since 2010. And uses cpanplus which I believe has been removed from recent perl
and having a dependency installer that needs around 14 non-core cpan modules doesn't make much sense.
[15:34]
Guest7147Hi guys, I'm trying to get foswiki running on ubuntu 14.04 server. I used the debian package, but a postinstallation script fails (/var/lib/dpkg/info/foswiki.postinst) in line 136 ($HTPASSWDCMD -bd /var/lib/foswiki/data/.htpasswd "$configuser" "$configpassword"
)
(error message says: "/var/lib/dpkg/info/foswiki.postinst: 136: /var/lib/dpkg/info/foswiki.postinst: -bd: not found" )
[15:38]
gac410I think that the syntax of the htpasswd command has changed. Not really sure. LTS 14.04 has moved to Apache 2.4, and the debian packages have several issues on the new apache [15:42]
Guest7147yeah i have apache 2.4.7 and apperently -b is not an option for htpasswd anymore [15:43]
gac410Unfortunately the dev. who was doing the debian packaging has moved onto other employment. There are new volunteers, but just getting started. [15:44]
Guest7147However my knowledge of apache is too limited so I couldn't fix it
hm ok
[15:44]
gac410the -b option is "Use password from the command line"
hm.. That's strange. I just checked a bsd system with Apache 2.4, -b option is still there. I wonder if this is an ubuntu local patch
[15:45]
Guest7147hmm might be: apache2 -v --> Server version: Apache/2.4.7 (Ubuntu) [15:47]
gac410I've got an ubuntu system vm I can try ... booting it now. [15:47]
Guest7147wait sorry
i solved it
[15:49]
gac410Ah... what is it. I have a fresh 14.04.1 system and it has -b and -d as well. [15:49]
Guest7147ok that was stupid apache2-utils wasn't installed... so htpasswd was not available it wasn't an issue with the -b option [15:49]
gac410Ah. missing dependency [15:49]
Guest7147yes sorry [15:50]
gac410Well the package should call that out. Okay I'll get that in a task. [15:50]
Guest7147i just thought that is was an issue with -b because i read about that in a forum about a similar issue...
ok thank you anyways
[15:50]
gac410Guest7147: I opened a task: http://foswiki.org/Tasks/Item13265
This has been reported a couple of times on IRC, but nobody has identified the solution. Thank you!
[15:54]
Guest7147no problem.. happy I could help [15:56]
gac410Guest7147: Also make sure you do an "a2enmod access_compat"
The configuration files in the .deb packages are not compatible with Apache 2.4 without mod_access_compat
Other known issues are listed here: http://foswiki.org/Tasks/DebianPackage
[15:56]
Guest7147hm ok. it didn't complain anymore and a2enmod access_compat gives me that the modules are already enabled [15:57]
gac410okay good. [15:57]
Guest7147ok thank you [15:57]
..... (idle for 20mn)
MichaelDaumgac410, thanks for pointing me to http://foswiki.org/Support/Question1561. Added my 2cent there. [16:17]
gac410MichaelDaum: If it's the same user, AllowLoginName was enabled.
RiskReward from yesterday and today's irc log.
Anyone know if IngoKapplar is still around? Would be nice to get his thoughts on the dependency installer. It was part of http://foswiki.org/Development/ScanForMissingPerlModules
But it seems to have stalled there in 2010.
With cpanplus deprecated in 5.18 and removed from 5.20, it won't do much good.
[16:18]
MichaelDaumcpanm is it today
well integrated into plenv and perlbrew
[16:30]
gac410yes. So either someone needs to rewrite dependencies_installer.pl, or we should remove it from the package
Opened http://foswiki.org/Tasks/Item13266
Blocker for 1.2. As I've never used dependencies_installer.pl, I'm happy to just remove it.
[16:30]
........ (idle for 38mn)
GithubBot[GridLayoutPlugin] MichaelDaum pushed 1 new commit to master: http://git.io/AUnl
GridLayoutPlugin/master 11e532c MichaelDaum: Item13267: moving css from NatSkin in here
[17:12]
***GithubBot has left [17:12]
CDotgac410: keep the ice dams, buy some crampons and go ice-climbing instead! [17:12]
....... (idle for 34mn)
GithubBot[GridLayoutPlugin] MichaelDaum pushed 1 new commit to master: http://git.io/AUKp
GridLayoutPlugin/master 361bc12 MichaelDaum: Item13267: docu
[17:46]
***GithubBot has left [17:46]
.......... (idle for 45mn)
jmk0it looks like foswiki is rejecting valid anchor tag characters when processing #BlahBlah stuff
specifically both - and _ are not being considered part of the tag though they should be valid as anchor names
rather, IN anchor names
[18:31]
......... (idle for 41mn)
gac410From EditingShorthand: To define an anchor write #AnchorName at the beginning of a line. The anchor name must be a WikiWord of no more than 32 characters. [19:14]
jmk0fair enough :) I'm going to use html directly [19:17]
gac410Links should work regardless of the anchor layout, it's only the render picking up topic markup links #AnchorName [19:18]
......................................... (idle for 3h22mn)
RiskRewardHi, I need a little help with %SEARCH. I'm trying to search for topics where the date entered in a formfield is within a given date range. Anyone have any ideas? [22:40]
GuilainCRiskReward, query search
on this formfield, and use this type of command : %SEARCH{"info.date >= %CALC{"$TIMEADD($TIME(), -7, day)"}%" type="query"}%
which come from the query search help page : http://foswiki.org/System/QuerySearch
in your case, info.date should be change by your formfield[name...
[22:52]
RiskRewardGreat, thanks for the tip! [22:55]
............ (idle for 55mn)
For some strange reason that %SEARCH doesn't work. It returns topics where info.date is 2014!
More on it's strange behaviour: it filters out a topic with info.date=1 Aug 2014, but display topics 24 Sep 2014 and 23 Oct 2014!
[23:50]

↑back Search ←Prev date Next date→ Show only urls(Click on time to select a line by its url)