Re: [Trac] Re: Trac / MySQL-python on Ubuntu 20.04

2021-03-19 Thread Andreas
Thanks for your hints Ryan; unfortunately, this didn't fix the 
problem...but I finally found a solution!

I copied the file my_config.h from an ubuntu 18.04 installation to my 
ubuntu 20.04 into /usr/include/mysql and then did pip install MySQL-python 
again. The migration script is still not working, so I did the migration in 
Ubuntun 18.04, exported the SQL-file, imported the file into MariaDB / 
Ubuntu 20.04 and changed the Trac-connection string to mysql. Pretty 
complicated, but it's working now ;-)

I attach the my_config.h file here if anyone else tries to use Trac 1.2.x 
with MySQL / MariaDB under Ubuntu 20.04 - the file from stackoverflow 
doesn't work properly in Ubuntu ;-)
RjOllos schrieb am Freitag, 19. März 2021 um 20:56:07 UTC+1:

>
>
> On Thursday, March 18, 2021 at 1:12:53 PM UTC-7 Andreas wrote:
>
>> Hello Ryan,
>>
> >>"To get that header file, you may typically need to install the "source" 
>> version of the package from the package repository."
>> What do you mean with that? That I might have the wrong "my_config.h" 
>> file? Which package do you mean?
>>
>
> What you did may work perfectly fine. I haven't used Fedora in years, so 
> I'm extrapolating off what I know about Debian, but typically you'd get the 
> headers by installing a -devel package:
>
> $ yum install mariadb-devel 
>
> If the extension "-devel" isn't correct, there may be something like "yum 
> search" that could be used to find the MariaDB package that includes the 
> header files.
>
> Ryan
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/e29bb087-fce2-435f-81e9-f731d8f28f1bn%40googlegroups.com.
/* Copyright (c) 2009, 2020, Oracle and/or its affiliates.
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License, version 2.0,
 as published by the Free Software Foundation.

 This program is also distributed with certain software (including
 but not limited to OpenSSL) that is licensed under separate terms,
 as designated in a particular file or component or in included license
 documentation.  The authors of MySQL hereby grant you an additional
 permission to link the program and your derivative works with the
 separately licensed software that they have included with MySQL.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License, version 2.0, for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */

#ifndef MY_CONFIG_H
#define MY_CONFIG_H

/*
 * From configure.cmake, in order of appearance 
 */
/* #undef HAVE_LLVM_LIBCPP */
#define _LARGEFILE_SOURCE 1

/* Libraries */
#define HAVE_LIBM 1
/* #undef HAVE_LIBNSL */
#define HAVE_LIBCRYPT 1
/* #undef HAVE_LIBSOCKET */
#define HAVE_LIBDL 1
#define HAVE_LIBRT 1
#define HAVE_LIBWRAP 1
#define HAVE_LIBWRAP_PROTOTYPES 1

/* Header files */
#define HAVE_ALLOCA_H 1
#define HAVE_ARPA_INET_H 1
#define HAVE_CRYPT_H 1
#define HAVE_DLFCN_H 1
#define HAVE_EXECINFO_H 1
#define HAVE_FPU_CONTROL_H 1
#define HAVE_GRP_H 1
/* #undef HAVE_IEEEFP_H */
#define HAVE_LANGINFO_H 1
#define HAVE_MALLOC_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_POLL_H 1
#define HAVE_PWD_H 1
#define HAVE_STRINGS_H 1
/* #undef HAVE_SYS_CDEFS_H */
#define HAVE_SYS_IOCTL_H 1
#define HAVE_SYS_MMAN_H 1
#define HAVE_SYS_RESOURCE_H 1
#define HAVE_SYS_SELECT_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_TERM_H 1
#define HAVE_TERMIOS_H 1
#define HAVE_TERMIO_H 1
#define HAVE_UNISTD_H 1
#define HAVE_SYS_WAIT_H 1
#define HAVE_SYS_PARAM_H 1
#define HAVE_FNMATCH_H 1
#define HAVE_SYS_UN_H 1
/* #undef HAVE_SASL_SASL_H */

/* Libevent */
/* #undef HAVE_DEVPOLL */
/* #undef HAVE_SYS_DEVPOLL_H */
#define HAVE_SYS_EPOLL_H 1
#define HAVE_TAILQFOREACH 1

/* Functions */
/* #undef HAVE_ALIGNED_MALLOC */
#define HAVE_BACKTRACE 1
/* #undef HAVE_PRINTSTACK */
#define HAVE_INDEX 1
#define HAVE_CLOCK_GETTIME 1
#define HAVE_CUSERID 1
/* #undef HAVE_DIRECTIO */
#define HAVE_FTRUNCATE 1
#define HAVE_COMPRESS 1
#define HAVE_CRYPT 1
#define HAVE_DLOPEN 1
#define HAVE_FCHMOD 1
#define HAVE_FCNTL 1
#define HAVE_FDATASYNC 1
#define HAVE_DECL_FDATASYNC 1 
#define HAVE_FEDISABLEEXCEPT 1
#define HAVE_FSEEKO 1
#define HAVE_FSYNC 1
#define HAVE_GETHOSTBYADDR_R 1
/* #undef HAVE_GETHRTIME */
#define HAVE_GETNAMEINFO 1
#define HAVE_GETPASS 1
/* #undef HAVE_GETPASSPHRASE */
#define HAVE_GETPWNAM 1
#define HAVE_GETPWUID 1
#define HAVE_GETRLIMIT 1
#define HAVE_GETRUSAGE 1
#define HAVE_INITGROUPS 1
/* #undef 

Re: [Trac] Re: Trac / MySQL-python on Ubuntu 20.04

2021-03-19 Thread RjOllos


On Thursday, March 18, 2021 at 1:12:53 PM UTC-7 Andreas wrote:

> Hello Ryan,
> >>"To get that header file, you may typically need to install the "source" 
> version of the package from the package repository."
> What do you mean with that? That I might have the wrong "my_config.h" 
> file? Which package do you mean?
>

What you did may work perfectly fine. I haven't used Fedora in years, so 
I'm extrapolating off what I know about Debian, but typically you'd get the 
headers by installing a -devel package:

$ yum install mariadb-devel 

If the extension "-devel" isn't correct, there may be something like "yum 
search" that could be used to find the MariaDB package that includes the 
header files.

Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/bc910925-eff9-43ca-bbef-05f79738cf0en%40googlegroups.com.


RE: [Trac] Re: Unwanted Trac Notifications

2021-03-19 Thread Patty Cottrill
Thank you all for your feedback.
The problem appears to be resolved.

The problem was with a spam filter I had created a while back and forgot about 
it.
An extended Exchange message trace helped me figure this out!!

I had checked every Exchange configuration I could think about, but totally 
forgot about checking the spam filter. ☹


-- Patty

-Original Message-
From: trac-users@googlegroups.com  On Behalf Of 
Cooke, Mark
Sent: Wednesday, March 17, 2021 3:47 AM
To: trac-users@googlegroups.com
Subject: RE: [Trac] Re: Unwanted Trac Notifications

> Original Message-
> From: trac-users@googlegroups.com On Behalf Of Clemens Feige
> Sent: 17 March 2021 07:36
> Subject: Re: [Trac] Re: Unwanted Trac Notifications
>
> > Patty Cottrill wrote on 16.03.2021 at 22:55:
> > Apparently, I spoke too soon.
> > 
> > Changing the email sender from SmtpEmailSender to SendmailEmailSender 
> > did NOT resolve the problem.
> > 
> > I continue to get these notifications.
> > 
> > Yes, I have checked the email headers and my email address IS NOT in the 
> > headers.
> > 
> > I'm totally stumped by this problem.
> > 
> > I now have a case open with our Exchange online support to see if they 
> > can figure out what is happening.
> > 
> > Per the mail log on the Trac server, the message is leaving without my 
> > email address, but the message trace on Exchange shows my email address 
> > on the message, even though it is not in the message headers.
> > 
> > Thanks for the feedback.
> > 
> > -- Patty
>
> Hello Patty
>
> As an idea to isolate the problem, have you tried to manually send test 
> e-mails (without TRAC) to the same mail server?
>
> You would use any other e-mail client (preferably on the same machine 
> where TRAC is running) and send test e-mails with same sender address, 
> same recipient address, same port number, same credentials, same mail 
> server etc. like TRAC.
>
> If this experiment should trigger unwanted e-mail copies then it would 
> prove that this is not an issue with TRAC.
>
> Clemens

Hi Patty,

I have only skimmed the threads so sorry if you have already discounted these 
but I had a few thoughts:

- we had a similar issue a while back we traced to the trac.ini email settings 
e.g. `smtp_always_bcc`
https://trac.edgewall.org/wiki/TracIni#notification-smtp_always_bcc-option

- I wonder if your address is being used as the "from" address and therefore 
the emails are appearing in your outbox?

- perhaps you are the default address on your email server and one of the other 
addresses is invalid?

Cheers,

~ Mark C

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/AM7PR05MB6851B797A10DBADA3AE82920BE6A9%40AM7PR05MB6851.eurprd05.prod.outlook.com.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/MN2PR15MB31682D6945C1F645FD794DBCC2689%40MN2PR15MB3168.namprd15.prod.outlook.com.