Mingxing Tian | 27 May 11:16 2016

[Trac] TypeError: expected string or buffer

2016-05-27 17:13:24,137 Trac[main] DEBUG: Dispatching <RequestWithSession "POST '/admin/ticket/workflowadmin'">
2016-05-27 17:13:24,139 Trac[session] DEBUG: Retrieving session for ID u'tiaxxxxxx'
2016-05-27 17:13:24,144 Trac[chrome] DEBUG: Prepare chrome data for request
2016-05-27 17:13:24,152 Trac[main] DEBUG: Negotiated locale: None -> zh_CN
>, referrer 'http://xxxx.com/trac/admin/ticket/workflowadmin'
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 562, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 249, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/admin/web_ui.py", line 119, in process_request
    path_info)
  File "build/bdist.linux-x86_64/egg/tracworkflowadmin/web_ui.py", line 137, in render_admin_panel
    self._parse_request(req)
  File "build/bdist.linux-x86_64/egg/tracworkflowadmin/web_ui.py", line 686, in _parse_request
    params = json.loads(req.args.get('params'))
  File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: expected string or buffer
2016-05-27 17:13:24,364 Trac[web_ui] DEBUG: GridModifyModule: filter_stream entered

I emergence of this issue in the use of workflow gui

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Mingxing Tian | 27 May 10:34 2016

[Trac] File lang_js/zh_CN.js not found

An error occurred when the browser requests

http://xxx.xxx.com/trac/chrome/datasaver/lang_js/zh_CN.js Failed to load resource: the server responded with a status of 404 (Not Found)

Information log output
2016-05-27 16:28:02,133 Trac[main] WARNING: [192.168.1.50] HTTPNotFound: 404 Not Found (File lang_js/zh_CN.js not found)
2016-05-27 16:28:02,844 Trac[chrome] WARNING: File lang_js/zh_CN.js not found in any of ['/home/projects/xxx/.egg-cache/DataSaverPlugin-2.0.dev0-py2.6.egg-tmp/datasaver/htdocs']


My guess is no international plug, do not know how to solve it?

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
mx.tian | 26 May 05:40 2016

[Trac] How to migrate data from sqlite to mysql

In order to improve the response speed of the system, I plan to migrate data from sqlite to mysql, this one has no document can refer to?

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Erick D | 25 May 21:06 2016
Picon

[Trac] PeerReviewPlugin - Error

My trac server specs:
Trac 1.0.1
Python 2.7.3 (default, Feb 27 2014, 20:09:21) [GCC 4.6.3]
MySQL server: "5.5.40-0ubuntu0.12.04.1", client: "5.5.47"


I installed PeerReviewPlugin from https://trac-hacks.org/wiki/PeerReviewPlugin

I get the following error when Trac asks to Run "trac-admin /var/path to env/repo upgrade"

PeerReview: running upgrade  db2
The upgrade failed. Please fix the issue and try again.
OperationalError: (1050, "Table 'peer_review' already exists")

The table peer_review does in fact exist on mysql db. How can I bypass this?

Please advice.

Thanks!

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
mx.tian | 25 May 09:07 2016

[Trac] Error with navigation contributor BrowserModule

2016-05-25 14:58:29,750 Trac[chrome] ERROR: Error with navigation contributor BrowserModule: RuntimeError: instance.__dict__ not accessible in restricted mode


I will reduce the logging level, seems to be found about svn bindings, but I can not locate problems, please help me!

2016-05-25 15:05:47,870 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2016-05-25 15:05:47,878 Trac[main] DEBUG: Negotiated locale: None -> zh_CN
2016-05-25 15:05:47,916 Trac[chrome] DEBUG: Prepare chrome data for request
2016-05-25 15:05:47,927 Trac[git_fs] INFO: detected GIT version 1.7.1
2016-05-25 15:05:47,928 Trac[svn_fs] DEBUG: Subversion bindings imported
2016-05-25 15:05:47,928 Trac[chrome] ERROR: Error with navigation contributor BrowserModule: RuntimeError: instance.__dict__ not accessible in restricted mode



--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
mx.tian | 25 May 06:40 2016

[Trac] About configuring mail notification service in question

I refer to the following links to configure the example

https://trac.edgewall.org/wiki/TracNotification

[notification]
smtp_enabled = true
use_tls = true
mime_encoding = base64
smtp_server = smtp.gmail.com
smtp_port = 587
smtp_user = user
smtp_password = password

I was using Tencent business mail service,So my configuration is as follows:

[notification]
smtp_enabled = false
use_tls = true
mime_encoding = base64
smtp_server = smtp.exmail.qq.com
smtp_port = 465
smtp_user = trac\ <at> xxx.com
smtp_password = xxxx

I guarantee mail service interface information is accurate

receive service:
pop.exmail.qq.com(use SSL,port 995)
send service:
smtp.exmail.qq.com(use SSL,port 465)


Everything I follow the normal process configuration, but mail notification service still does not work, which is reflected in together when creating a job waiting, can not submit data. No task error log




--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
mx.tian | 24 May 09:13 2016

[Trac] UserWarning: /.egg-cache is writable by group/others and vulnerable to attack when used with get_resource_filename

[Tue May 24 14:39:49 2016] [error] /usr/lib/python2.6/site-packages/setuptools-21.2.0-py2.6.egg/pkg_resources/__init__.py:1268: UserWarning: /home/projects/mypro/.egg-cache is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).

[root <at> host105 ~]# echo $PYTHON_EGG_CACHE
/home/python-eggs


drwxrwxrwx. 20 apache apache 4.0K 5月  23 15:08 .egg-cache

I configured the environment variables and the directory can also read and write, but still appeared above mistakes, I can not understand this?

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
Erick D | 23 May 22:18 2016
Picon

[Trac] Trac CodeReviewer Plugin - error

Hello fellow Trac users, 

Trac ver: 1.0.1

I recently installed CodeReviewer plugin: 
https://trac-hacks.org/wiki/CodeReviewerPlugin

After step 4 - "sudo trac-admin /path/to/projenv upgrade" , the install was a success. 

I can login into our test Trac environment mysql db and can see the new tables added by this plugin - "codereviewer" and "codereviewer_map".
Both of the new tables are empty, the instructions state: 

"In order for the Reviewer to know all changesets that reference a given ticket, it needs a reliable ticket-changeset map. The built-in revision table is unfortunately not sufficiently reliable for some version control systems, eg Git. This is a known issue. So this plugin comes with its own changeset listener that manages a new codereviewer_map table. For existing changesets, you can run a provided sync.py utility once to populate the table, but should not need it after that."

I ran Sync.py so it can populate the new tables ... which requires "usage: sync.py <db_path> <repo_dir>"

After running the command "python sync.py /var/lib/location_to_mysql  /var/public/repositories/test_repo"
I get the following error: 

File "sync.py", line 78, in <module>
    sync(db_path, repo_dir)
  File "sync.py", line 22, in sync
    db = sqlite3.connect(db_path)
sqlite3.OperationalError: unable to open database file

Please advice. I did run the command under root user. 

Thanks!

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
mx.tian | 23 May 12:06 2016

[Trac] mod_wsgi (pid=3686): Exception occurred processing WSGI script '/usr/share/trac/cgi-bin/trac.wsgi'.

[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50] mod_wsgi (pid=3686): Exception occurred processing WSGI script '/usr/share/trac/cgi-bin/trac.wsgi'.
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50] Traceback (most recent call last):
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]   File "/usr/share/trac/cgi-bin/trac.wsgi", line 30, in application
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]     from trac.web.main import dispatch_request
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]   File "build/bdist.linux-x86_64/egg/trac/web/__init__.py", line 27, in <module>
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 535, in get_distribution
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]     dist = get_provider(dist)
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 415, in get_provider
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]     return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 943, in require
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]     needed = self.resolve(parse_requirements(requirements))
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]   File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 829, in resolve
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50]     raise DistributionNotFound(req, requirers)
[Mon May 23 18:03:33 2016] [error] [client 192.168.1.50] DistributionNotFound: The 'genshi' distribution was not found and is required by the application


Emergence of this issue after the restart the computer before restarting the trac is normally accessible.

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
mailinglist49 | 16 May 23:35 2016
Picon

[Trac] Expanding the width of the TRAC ticket form

Does anyone know the setting which needs to be changed to expand the width of the actual TRAC ticket form.  I have attached a pic of what I'd like to expand.  There is so much whitespace around the actual ticket.






--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.
blackthorne | 12 May 15:57 2016
Gravatar

[Trac] Remotely creating Trac projects

Hello,

Is it possible to remotely create a project with trac?

So I have a trac server and I want to be able to create a project without having to login to run trac-initproject, maybe through some REST API...

Thank you,

Kind regards,
Francisco Ribeiro

--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to trac-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Gmane